Conditions | 9 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 11 |
CRAP Score | 9 |
Changes | 0 |
1 | <?php |
||
33 | 8 | public function check(array $properties, string $message) : void |
|
34 | { |
||
35 | 8 | if (array_key_exists('Device_Name', $properties) |
|
36 | 7 | || array_key_exists('Device_Maker', $properties) |
|
37 | 7 | || array_key_exists('Device_Type', $properties) |
|
38 | 7 | || array_key_exists('Device_Pointing_Method', $properties) |
|
39 | 7 | || array_key_exists('Device_Code_Name', $properties) |
|
40 | 7 | || array_key_exists('Device_Brand_Name', $properties) |
|
41 | 7 | || array_key_exists('isMobileDevice', $properties) |
|
42 | 7 | || array_key_exists('isTablet', $properties) |
|
43 | ) { |
||
44 | 1 | throw new \LogicException($message); |
|
45 | } |
||
46 | 7 | } |
|
47 | } |
||
48 |