Passed
Pull Request — 1.x (#44)
by Milwad
03:20
created
src/Rules/ValidIban.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -161,9 +161,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.