Passed
Push — master ( 53c5a5...52ff6a )
by bader
05:01
created
src/BareqServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
     public function register()
27 27
     {
28 28
         $this->mergeConfigFrom(
29
-            __DIR__.'/config/visits.php', 'bareq'
29
+            __DIR__ . '/config/visits.php', 'bareq'
30 30
         );
31 31
     }
32 32
 }
Please login to merge, or discard this patch.
src/Visits.php 1 patch
Spacing   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -213,8 +213,7 @@  discard block
 block discarded – undo
213 213
 
214 214
         return intval(
215 215
             (!$this->keys->instanceOfModel) ?
216
-                Redis::get($this->keys->visits . '_total') :
217
-                Redis::zscore($this->keys->visits, $this->keys->id)
216
+                Redis::get($this->keys->visits . '_total') : Redis::zscore($this->keys->visits, $this->keys->id)
218 217
         );
219 218
     }
220 219
 
@@ -325,10 +324,10 @@  discard block
 block discarded – undo
325 324
 
326 325
             return ($this->subject)::whereIn($this->keys->primary, $visitsIds)
327 326
                 ->get()
328
-                ->sortBy(function ($subject) use ($visitsIds) {
327
+                ->sortBy(function($subject) use ($visitsIds) {
329 328
                     return array_search($subject->{$this->keys->primary}, $visitsIds);
330 329
                 })
331
-                ->each(function ($subject) use ($cacheKey) {
330
+                ->each(function($subject) use ($cacheKey) {
332 331
                     Redis::rpush($cacheKey, serialize($subject));
333 332
                 });
334 333
         }
Please login to merge, or discard this patch.
src/helpers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (! function_exists('visits'))
3
+if (!function_exists('visits'))
4 4
 {
5 5
     function visits($subject, $tag = 'visits')
6 6
     {
Please login to merge, or discard this patch.