Total Complexity | 5 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
7 | trait Record |
||
8 | { |
||
9 | /** |
||
10 | * @param $inc |
||
11 | */ |
||
12 | protected function recordCountry($inc) |
||
13 | { |
||
14 | $this->redis->zincrby($this->keys->visits . "_countries:{$this->keys->id}", $inc, $this->getVisitorCountry()); |
||
15 | } |
||
16 | |||
17 | /** |
||
18 | * @param $inc |
||
19 | */ |
||
20 | protected function recordRefer($inc) |
||
24 | } |
||
25 | |||
26 | /** |
||
27 | * @param $inc |
||
28 | */ |
||
29 | protected function recordPeriods($inc) |
||
36 | } |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * Gets visitor country code |
||
41 | * @return mixed|string |
||
42 | */ |
||
43 | protected function getVisitorCountry() |
||
48 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.