@@ -155,12 +155,12 @@ discard block |
||
155 | 155 | */ |
156 | 156 | public function passes($attribute, $value) |
157 | 157 | { |
158 | - if (!$this->isIbanValid($value)) { |
|
158 | + if ( ! $this->isIbanValid($value)) { |
|
159 | 159 | |
160 | 160 | return false; |
161 | 161 | } |
162 | 162 | |
163 | - $parsedIban = substr($value, 4) . substr($value, 0, 4); |
|
163 | + $parsedIban = substr($value, 4).substr($value, 0, 4); |
|
164 | 164 | $parsedIban = strtr($parsedIban, $this->characterMap); |
165 | 165 | |
166 | 166 | return bcmod($parsedIban, '97') === '1'; |
@@ -180,7 +180,7 @@ discard block |
||
180 | 180 | { |
181 | 181 | $countryCode = substr($iban, 0, 2); |
182 | 182 | |
183 | - return !(!function_exists('bcmod') || empty($iban) || !ctype_alpha(substr($iban, 0, 2)) || |
|
184 | - strlen($iban) != $this->ibanLengthByCountry[$countryCode]); |
|
183 | + return ! ( ! function_exists('bcmod') || empty($iban) || ! ctype_alpha(substr($iban, 0, 2)) || |
|
184 | + strlen($iban) != $this->ibanLengthByCountry[ $countryCode ]); |
|
185 | 185 | } |
186 | 186 | } |