Conditions | 3 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php namespace Arcanesoft\Media\Entities; |
||
25 | public function exclude(array $patterns) |
||
26 | { |
||
27 | 15 | return $this->reject(function ($file) use ($patterns) { |
|
28 | 15 | foreach ($patterns as $pattern) { |
|
29 | 15 | if (Str::is($pattern, $file['name'])) return true; |
|
30 | 5 | } |
|
31 | |||
32 | 15 | return false; |
|
33 | 15 | }); |
|
34 | } |
||
35 | } |
||
36 |