Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
20 | public function passes($attribute, $value) |
||
21 | { |
||
22 | $values = Arr::wrap($value); |
||
23 | |||
24 | foreach ($values as $value) { |
||
|
|||
25 | if (! $this->isBase64($value)) { |
||
26 | return false; |
||
27 | } |
||
28 | } |
||
29 | |||
30 | // All base64 strings are valid. Now we only need to verify if there |
||
31 | // where any base64 strings at all. |
||
32 | return count($values) > 0; |
||
33 | } |
||
70 |