@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | * @param string $code The country codes to validate against. String can be separated by comma |
12 | 12 | * @param string|null $attribute |
13 | 13 | */ |
14 | - public function __construct(private mixed $value, private string $code, string|null $attribute = null) |
|
14 | + public function __construct(private mixed $value, private string $code, string | null $attribute = null) |
|
15 | 15 | { |
16 | 16 | } |
17 | 17 | |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | */ |
127 | 127 | public function callPhoneValidator(): array |
128 | 128 | { |
129 | - $results = []; |
|
129 | + $results = [ ]; |
|
130 | 130 | $codes = explode(',', $this->code); |
131 | 131 | $codes = array_map('strtoupper', $codes); |
132 | 132 | |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | $methodName = 'validate'.$code; |
135 | 135 | |
136 | 136 | if (method_exists($this, $methodName)) { |
137 | - $results[$code] = $this->{$methodName}(); |
|
137 | + $results[ $code ] = $this->{$methodName}(); |
|
138 | 138 | } else { |
139 | 139 | throw new \BadMethodCallException("Validator method '{$methodName}' does not exist."); |
140 | 140 | } |