Conditions | 3 |
Paths | 4 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 12 |
Ratio | 100 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
21 | View Code Duplication | protected function prepare() |
|
22 | { |
||
23 | if ($this->service !== null) { |
||
24 | $this->vacancies->forService($this->service); |
||
25 | } |
||
26 | |||
27 | if ($this->date !== null) { |
||
28 | $this->vacancies->forDate($this->date()); |
||
29 | } |
||
30 | |||
31 | return $this; |
||
32 | } |
||
33 | } |
||
34 |
Methods can only be called on objects. This check looks for methods being called on variables that have been inferred to never be objects.