Conditions | 3 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 3.4746 |
Changes | 0 |
1 | <?php |
||
9 | 1 | protected function validateJobTimingManager() |
|
10 | { |
||
11 | 1 | if ($this->container->hasParameter('dtc_queue.manager.job_timing')) { |
|
12 | $this->validateManagerType('dtc_queue.manager.job_timing'); |
||
13 | 1 | } elseif ($this->container->hasParameter('dtc_queue.manager.job_timing')) { |
|
|
|||
14 | $this->validateManagerType('dtc_queue.manager.run'); |
||
15 | } else { |
||
16 | 1 | $this->validateManagerType('dtc_queue.manager.job'); |
|
17 | } |
||
18 | 1 | } |
|
19 | |||
49 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: