File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -158,8 +158,6 @@ class ValidIban implements Rule
158158
159159 /**
160160 * Country code from outside.
161- *
162- * @var string|null
163161 */
164162 private string |null $ country ;
165163
@@ -171,20 +169,20 @@ public function __construct(string|null $country = null) // TODO: Add $country i
171169 /**
172170 * Check IBAN.
173171 *
174- * @param string $attribute
175- * @param mixed $value
172+ * @param string $attribute
173+ * @param mixed $value
176174 * @return bool
177175 */
178176 public function passes ($ attribute , $ value )
179177 {
180- if (!$ this ->isIbanValid ($ value )) {
178+ if (! $ this ->isIbanValid ($ value )) {
181179 return false ;
182180 }
183181
184182 /*
185183 * Connect Iban title with value (code) ex: 8330001234567NO .
186184 */
187- $ parsedIban = substr ($ value , 4 ) . substr ($ value , 0 , 4 );
185+ $ parsedIban = substr ($ value , 4 ). substr ($ value , 0 , 4 );
188186
189187 /*
190188 * Replace iban value with character map.
@@ -207,7 +205,6 @@ public function message()
207205 /**
208206 * Check iban is valid.
209207 *
210- * @param string $iban
211208 * @return bool
212209 */
213210 private function isIbanValid (string $ iban )
You can’t perform that action at this time.
0 commit comments