Passed
Push — analysis-q25r7A ( 352644 )
by Nuno
10:25 queued 02:49
created
src/Searchable/AggregatorCollection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
     {
43 43
         $this->aggregator = get_class($this->first());
44 44
 
45
-        $this->items = $this->getSerializedPropertyValue(EloquentCollection::make($this->map(function ($aggregator) {
45
+        $this->items = $this->getSerializedPropertyValue(EloquentCollection::make($this->map(function($aggregator) {
46 46
             return $aggregator->getModel();
47 47
         })));
48 48
 
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      */
57 57
     public function __wakeup()
58 58
     {
59
-        $this->items = $this->getRestoredPropertyValue($this->items)->map(function ($model) {
59
+        $this->items = $this->getRestoredPropertyValue($this->items)->map(function($model) {
60 60
             return $this->aggregator::create($model);
61 61
         })->toArray();
62 62
     }
Please login to merge, or discard this patch.