Conditions | 5 |
Paths | 4 |
Total Lines | 15 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 5 |
Changes | 0 |
1 | <?php |
||
68 | 18 | public static function isValidIdArray($value) |
|
69 | { |
||
70 | 18 | if (is_array($value) === false || count($value) === 0) { |
|
71 | 4 | return false; |
|
72 | } |
||
73 | |||
74 | /** @var array $value */ |
||
75 | 14 | foreach ($value as $id) { |
|
76 | 14 | if (self::isValidIdString($id) === false) { |
|
77 | 14 | return false; |
|
78 | } |
||
79 | } |
||
80 | |||
81 | 9 | return true; |
|
82 | } |
||
83 | |||
96 |