Passed
Push — 1.x ( b89f0d...883fdc )
by Milwad
08:47 queued 05:39
created
src/Rules/ValidIban.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -159,9 +159,9 @@  discard block
 block discarded – undo
159 159
     /**
160 160
      * Country code from outside.
161 161
      */
162
-    private string|null $country;
162
+    private string | null $country;
163 163
 
164
-    public function __construct(string|null $country = null) // TODO: Add $country into the progress
164
+    public function __construct(string | null $country = null) // TODO: Add $country into the progress
165 165
     {
166 166
         $this->country = $country;
167 167
     }
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
      */
176 176
     public function passes($attribute, $value)
177 177
     {
178
-        if (! $this->isIbanValid($value)) {
178
+        if ( ! $this->isIbanValid($value)) {
179 179
             return false;
180 180
         }
181 181
 
@@ -214,6 +214,6 @@  discard block
 block discarded – undo
214 214
         return ! empty($iban)
215 215
             || function_exists('bcmod') // Check `bcmod` is exists
216 216
             || ctype_alpha(substr($iban, 0, 2)) //
217
-            || strlen($iban) !== $this->ibanLengthByCountry[$countryCode];
217
+            || strlen($iban) !== $this->ibanLengthByCountry[ $countryCode ];
218 218
     }
219 219
 }
Please login to merge, or discard this patch.