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