@@ -161,9 +161,9 @@ discard block |
||
161 | 161 | * |
162 | 162 | * @var string|null |
163 | 163 | */ |
164 | - private string|null $country; |
|
164 | + private string | null $country; |
|
165 | 165 | |
166 | - public function __construct(string|null $country = null) // TODO: Add $country into the progress |
|
166 | + public function __construct(string | null $country = null) // TODO: Add $country into the progress |
|
167 | 167 | { |
168 | 168 | $this->country = $country; |
169 | 169 | } |
@@ -177,14 +177,14 @@ discard block |
||
177 | 177 | */ |
178 | 178 | public function passes($attribute, $value) |
179 | 179 | { |
180 | - if (!$this->isIbanValid($value)) { |
|
180 | + if ( ! $this->isIbanValid($value)) { |
|
181 | 181 | return false; |
182 | 182 | } |
183 | 183 | |
184 | 184 | /* |
185 | 185 | * Connect Iban title with value (code) ex: 8330001234567NO . |
186 | 186 | */ |
187 | - $parsedIban = substr($value, 4) . substr($value, 0, 4); |
|
187 | + $parsedIban = substr($value, 4).substr($value, 0, 4); |
|
188 | 188 | |
189 | 189 | /* |
190 | 190 | * Replace iban value with character map. |
@@ -217,6 +217,6 @@ discard block |
||
217 | 217 | return ! empty($iban) |
218 | 218 | || function_exists('bcmod') // Check `bcmod` is exists |
219 | 219 | || ctype_alpha(substr($iban, 0, 2)) // |
220 | - || strlen($iban) !== $this->ibanLengthByCountry[$countryCode]; |
|
220 | + || strlen($iban) !== $this->ibanLengthByCountry[ $countryCode ]; |
|
221 | 221 | } |
222 | 222 | } |