@@ -12,17 +12,17 @@ discard block |
||
12 | 12 | private function setCountries(?array $countries) |
13 | 13 | { |
14 | 14 | if (empty($countries)) { |
15 | - $this->countries = []; |
|
15 | + $this->countries = [ ]; |
|
16 | 16 | |
17 | 17 | return; |
18 | 18 | } |
19 | 19 | |
20 | - if (is_array($countries[0])) { |
|
21 | - $countries = $countries[0]; |
|
20 | + if (is_array($countries[ 0 ])) { |
|
21 | + $countries = $countries[ 0 ]; |
|
22 | 22 | } |
23 | 23 | |
24 | 24 | foreach ($countries as $country) { |
25 | - $this->countries[] = $country; |
|
25 | + $this->countries[ ] = $country; |
|
26 | 26 | } |
27 | 27 | } |
28 | 28 | |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | */ |
34 | 34 | private function isIbanValid(string $iban) |
35 | 35 | { |
36 | - if (! $this->checkIbanFormat($iban)) { |
|
36 | + if ( ! $this->checkIbanFormat($iban)) { |
|
37 | 37 | return false; |
38 | 38 | } |
39 | 39 | |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | private function isCountryValid(string $country, string $ibanCountryCode) |
128 | 128 | { |
129 | 129 | return ! empty($country) |
130 | - && isset($this->ibanLengthByCountry[$country]) |
|
130 | + && isset($this->ibanLengthByCountry[ $country ]) |
|
131 | 131 | && $ibanCountryCode === $country; |
132 | 132 | } |
133 | 133 | |
@@ -138,6 +138,6 @@ discard block |
||
138 | 138 | */ |
139 | 139 | private function isIbanLengthValid(string $iban, string $ibanCountryCode) |
140 | 140 | { |
141 | - return strlen($iban) === $this->ibanLengthByCountry[$ibanCountryCode]; |
|
141 | + return strlen($iban) === $this->ibanLengthByCountry[ $ibanCountryCode ]; |
|
142 | 142 | } |
143 | 143 | } |