@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | */ |
| 13 | 13 | public static function ambiguous($parameter) |
| 14 | 14 | { |
| 15 | - return new static('Ambiguous phone validation parameter: "' . $parameter . '". This parameter is recognized as an input field and as a phone type. Please rename the input field.'); |
|
| 15 | + return new static('Ambiguous phone validation parameter: "'.$parameter.'". This parameter is recognized as an input field and as a phone type. Please rename the input field.'); |
|
| 16 | 16 | } |
| 17 | 17 | |
| 18 | 18 | /** |
@@ -25,6 +25,6 @@ discard block |
||
| 25 | 25 | { |
| 26 | 26 | $parameters = Collection::make($parameters); |
| 27 | 27 | |
| 28 | - return new static('Invalid phone validation parameters: "' . $parameters->implode(',') . '".'); |
|
| 28 | + return new static('Invalid phone validation parameters: "'.$parameters->implode(',').'".'); |
|
| 29 | 29 | } |
| 30 | 30 | } |
| 31 | 31 | \ No newline at end of file |
@@ -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::$types)) { |
| 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::$types, 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::$types) { |
|
| 76 | + if (!static::$types) { |
|
| 77 | 77 | static::$types = with(new ReflectionClass(PhoneNumberType::class))->getConstants(); |
| 78 | 78 | } |
| 79 | 79 | } |