Conditions | 5 |
Paths | 4 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | public function of($value, $checker): bool |
||
21 | { |
||
22 | if (!is_array($value) || empty($value)) { |
||
23 | return false; |
||
24 | } |
||
25 | |||
26 | foreach ($value as $item) { |
||
27 | if (!$this->validation->validate(compact('item'), ['item' => [$checker]])->isValid()) { |
||
28 | return false; |
||
29 | } |
||
30 | } |
||
31 | |||
32 | return true; |
||
33 | } |
||
35 |