Passed
Push — master ( 3375d1...35dc7e )
by bader
02:55
created
src/Traits/Lists.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
         $visitsIds = $this->getVisitsIds($limit, $this->keys->visits, $orderByAsc);
21 21
         $cachedIds = array_map('strval', $cachedList->pluck($this->keys->primary)->toArray());
22 22
 
23
-        if($visitsIds === $cachedIds && ! $this->fresh) {
23
+        if ($visitsIds === $cachedIds && !$this->fresh) {
24 24
             return $cachedList;
25 25
         }
26 26
 
@@ -102,9 +102,9 @@  discard block
 block discarded – undo
102 102
 
103 103
             return ($this->subject)::whereIn($this->keys->primary, $visitsIds)
104 104
                 ->get()
105
-                ->sortBy(function ($subject) use ($visitsIds) {
105
+                ->sortBy(function($subject) use ($visitsIds) {
106 106
                     return array_search($subject->{$this->keys->primary}, $visitsIds);
107
-                })->each(function ($subject) use ($cacheKey) {
107
+                })->each(function($subject) use ($cacheKey) {
108 108
                     $this->connection->addToFlatList($cacheKey, serialize($subject));
109 109
                 });
110 110
         }
Please login to merge, or discard this patch.