| Conditions | 2 |
| Paths | 1 |
| Total Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php namespace Propaganistas\LaravelPhone\Traits; |
||
| 33 | 120 | protected function parseCountries($countries) |
|
| 34 | { |
||
| 35 | 120 | return Collection::make(is_array($countries) ? $countries : func_get_args()) |
|
| 36 | ->map(function ($country) { |
||
| 37 | 117 | return strtoupper($country); |
|
| 38 | 120 | }) |
|
| 39 | ->filter(function ($value) { |
||
| 40 | 117 | return static::isValidCountryCode($value); |
|
| 41 | 120 | })->toArray(); |
|
| 42 | } |
||
| 43 | } |