Test Failed
Pull Request — develop (#41)
by Nuno
06:56 queued 04:00
created
src/Engines/AlgoliaEngine.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
     {
78 78
         $index = $this->algolia->initIndex($models->first()->searchableAs());
79 79
 
80
-        $result = $index->deleteObjects($models->map(function ($model) {
80
+        $result = $index->deleteObjects($models->map(function($model) {
81 81
             return ObjectIdEncrypter::encrypt($model);
82 82
         })->values()->all());
83 83
 
Please login to merge, or discard this patch.
src/Settings/LocalFactory.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -248,8 +248,7 @@
 block discarded – undo
248 248
 
249 249
             try {
250 250
                 $instance = @factory($searchable)->make() ?? $searchable::first();
251
-                $attributes = method_exists($instance, 'toSearchableArray') ? $instance->toSearchableArray() :
252
-                    $instance->toArray();
251
+                $attributes = method_exists($instance, 'toSearchableArray') ? $instance->toSearchableArray() : $instance->toArray();
253 252
             } catch (InvalidArgumentException | QueryException $e) {
254 253
             }
255 254
         }
Please login to merge, or discard this patch.
src/Console/Commands/OptimizeCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
         foreach ($searchableFinder->fromCommand($this) as $searchable) {
46 46
             $this->output->text('
Please login to merge, or discard this patch.