@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | */ |
23 | 23 | public static function isValidType($type) |
24 | 24 | { |
25 | - return ! empty(static::parseTypes($type)); |
|
25 | + return !empty(static::parseTypes($type)); |
|
26 | 26 | } |
27 | 27 | |
28 | 28 | /** |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | static::loadTypes(); |
37 | 37 | |
38 | 38 | return Collection::make(is_array($types) ? $types : func_get_args()) |
39 | - ->map(function ($type) { |
|
39 | + ->map(function($type) { |
|
40 | 40 | // If the type equals a constant's value, just return it. |
41 | 41 | if (is_numeric($type) && in_array($type, static::$resolvedTypes)) { |
42 | 42 | return (int) $type; |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | // Otherwise we'll assume the type is the constant's name. |
46 | 46 | return Arr::get(static::$resolvedTypes, strtoupper($type)); |
47 | 47 | }) |
48 | - ->reject(function ($value) { |
|
48 | + ->reject(function($value) { |
|
49 | 49 | return is_null($value) || $value === false; |
50 | 50 | })->toArray(); |
51 | 51 | } |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | */ |
74 | 74 | private static function loadTypes() |
75 | 75 | { |
76 | - if (! static::$resolvedTypes) { |
|
76 | + if (!static::$resolvedTypes) { |
|
77 | 77 | static::$resolvedTypes = with(new ReflectionClass(PhoneNumberType::class))->getConstants(); |
78 | 78 | } |
79 | 79 | } |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | */ |
173 | 173 | public function formatForCountry($country) |
174 | 174 | { |
175 | - if (! static::isValidCountryCode($country)) { |
|
175 | + if (!static::isValidCountryCode($country)) { |
|
176 | 176 | throw CountryCodeException::invalid($country); |
177 | 177 | } |
178 | 178 | |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | */ |
193 | 193 | public function formatForMobileDialingInCountry($country, $removeFormatting = false) |
194 | 194 | { |
195 | - if (! static::isValidCountryCode($country)) { |
|
195 | + if (!static::isValidCountryCode($country)) { |
|
196 | 196 | throw CountryCodeException::invalid($country); |
197 | 197 | } |
198 | 198 | |
@@ -210,7 +210,7 @@ discard block |
||
210 | 210 | */ |
211 | 211 | public function getCountry() |
212 | 212 | { |
213 | - if (! $this->country) { |
|
213 | + if (!$this->country) { |
|
214 | 214 | $this->country = $this->filterValidCountry($this->countries); |
215 | 215 | } |
216 | 216 | |
@@ -240,7 +240,7 @@ discard block |
||
240 | 240 | protected function filterValidCountry($countries) |
241 | 241 | { |
242 | 242 | $result = Collection::make($countries) |
243 | - ->filter(function ($country) { |
|
243 | + ->filter(function($country) { |
|
244 | 244 | try { |
245 | 245 | $instance = $this->lib->parse($this->number, $country); |
246 | 246 |