Conditions | 4 |
Paths | 4 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 4 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
37 | 3 | private function isCommandPropertyValid(JobEntity $oJobEntity) |
|
38 | { |
||
39 | 3 | if (is_null($oJobEntity->container)) |
|
40 | 3 | { |
|
41 | 3 | return (!empty($oJobEntity->command) && is_string($oJobEntity->command)); |
|
42 | } |
||
43 | |||
44 | 1 | return (empty($oJobEntity->command) || is_string($oJobEntity->command)); |
|
45 | } |
||
46 | } |