@@ -17,7 +17,7 @@ discard block |
||
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 |
||
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 | } |