Passed
Push — master ( 7cfbae...68b000 )
by bader
02:11
created
src/Traits/Lists.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
         $cachedList = $this->cachedList($limit, $cacheKey);
18 18
         $visitsIds = $this->getVisitsIds($limit, $this->keys->visits, $isLow);
19 19
 
20
-        if($visitsIds === $cachedList->pluck($this->keys->primary)->toArray() && ! $this->fresh) {
20
+        if ($visitsIds === $cachedList->pluck($this->keys->primary)->toArray() && !$this->fresh) {
21 21
             return $cachedList;
22 22
         }
23 23
 
@@ -90,9 +90,9 @@  discard block
 block discarded – undo
90 90
 
91 91
             return ($this->subject)::whereIn($this->keys->primary, $visitsIds)
92 92
                 ->get()
93
-                ->sortBy(function ($subject) use ($visitsIds) {
93
+                ->sortBy(function($subject) use ($visitsIds) {
94 94
                     return array_search($subject->{$this->keys->primary}, $visitsIds);
95
-                })->each(function ($subject) use ($cacheKey) {
95
+                })->each(function($subject) use ($cacheKey) {
96 96
                     $this->redis->rpush($cacheKey, serialize($subject));
97 97
                 });
98 98
         }
Please login to merge, or discard this patch.