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