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