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