From: Vincent Vanwaelscappel Date: Tue, 19 Oct 2021 17:53:39 +0000 (+0200) Subject: wip #4804 @0.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=38a9673f6a246c1b157d89b98d0cf6d7cbc20273;p=cubist_minisearch.git wip #4804 @0.5 --- diff --git a/src/Index.php b/src/Index.php index 083c4e6..70fa6ee 100644 --- a/src/Index.php +++ b/src/Index.php @@ -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) . ';'; }