]> _ Git - cubist_minisearch.git/commitdiff
wip #4804 @0.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 19 Oct 2021 17:53:39 +0000 (19:53 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 19 Oct 2021 17:53:39 +0000 (19:53 +0200)
src/Index.php

index 083c4e6191684ba4af22bc5c3afac0cadef5c786..70fa6ee133b03bf7fe1b7064d7f07eeaf33b2b8c 100644 (file)
@@ -56,14 +56,14 @@ class Index implements ShouldQueue, ShouldBeUnique
 
     public function handle()
     {
-        file_put_contents($this->generateCode(), $this->getOutput());
+        file_put_contents($this->getOutput(), $this->generateCode());
     }
 
     public function generateCode()
     {
         $res = [];
         foreach ($this->documents as $document) {
-            $res = array_merge($res,$document->process());
+            $res = array_merge($res, $document->process());
         }
         return 'const documents = ' . json_encode($res) . ';';
     }