Passed
Pull Request — master (#28)
by
unknown
02:28
created
src/Traits/Record.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
      */
12 12
     protected function recordCountry($inc)
13 13
     {
14
-        $this->redis->zincrby($this->keys->visits."_countries:{$this->keys->id}", $inc, $this->getVisitorCountry());
14
+        $this->redis->zincrby($this->keys->visits . "_countries:{$this->keys->id}", $inc, $this->getVisitorCountry());
15 15
     }
16 16
 
17 17
     /**
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
      */
20 20
     protected function recordRefer($inc)
21 21
     {
22
-        $this->redis->zincrby($this->keys->visits."_referers:{$this->keys->id}", $inc, $this->getVisitorReferer());
22
+        $this->redis->zincrby($this->keys->visits . "_referers:{$this->keys->id}", $inc, $this->getVisitorReferer());
23 23
     }
24 24
 
25 25
     /**
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      */
28 28
     protected function recordOperatingSystem($inc)
29 29
     {
30
-        $this->redis->zincrby($this->keys->visits."_OSes:{$this->keys->id}", $inc, $this->getVisitorOperatingSystem());
30
+        $this->redis->zincrby($this->keys->visits . "_OSes:{$this->keys->id}", $inc, $this->getVisitorOperatingSystem());
31 31
     }
32 32
 
33 33
     /**
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
      */
36 36
     protected function recordLanguage($inc)
37 37
     {
38
-        $this->redis->zincrby($this->keys->visits."_languages:{$this->keys->id}", $inc, $this->getVisitorLanguage());
38
+        $this->redis->zincrby($this->keys->visits . "_languages:{$this->keys->id}", $inc, $this->getVisitorLanguage());
39 39
     }
40 40
 
41 41
     /**
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
             $periodKey = $this->keys->period($period);
48 48
 
49 49
             $this->redis->zincrby($periodKey, $inc, $this->keys->id);
50
-            $this->redis->incrby($periodKey.'_total', $inc);
50
+            $this->redis->incrby($periodKey . '_total', $inc);
51 51
         }
52 52
     }
53 53
 
Please login to merge, or discard this patch.