Passed
Pull Request — 1.x (#43)
by
unknown
02:56
created
src/Rules/ValidIban.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -155,12 +155,12 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.