File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -149,18 +149,18 @@ class ValidIban implements Rule
149149 /**
150150 * Check IBAN.
151151 *
152- * @param string $attribute
153- * @param mixed $value
152+ * @param string $attribute
153+ * @param mixed $value
154154 * @return bool
155155 */
156156 public function passes ($ attribute , $ value )
157157 {
158- if (!$ this ->isIbanValid ($ value )) {
158+ if (! $ this ->isIbanValid ($ value )) {
159159
160160 return false ;
161161 }
162162
163- $ parsedIban = substr ($ value , 4 ) . substr ($ value , 0 , 4 );
163+ $ parsedIban = substr ($ value , 4 ). substr ($ value , 0 , 4 );
164164 $ parsedIban = strtr ($ parsedIban , $ this ->characterMap );
165165
166166 return bcmod ($ parsedIban , '97 ' ) === '1 ' ;
@@ -180,7 +180,7 @@ private function isIbanValid($iban)
180180 {
181181 $ countryCode = substr ($ iban , 0 , 2 );
182182
183- return !(! function_exists ('bcmod ' ) || empty ($ iban ) || !ctype_alpha (substr ($ iban , 0 , 2 )) ||
183+ return ! (! function_exists ('bcmod ' ) || empty ($ iban ) || ! ctype_alpha (substr ($ iban , 0 , 2 )) ||
184184 strlen ($ iban ) != $ this ->ibanLengthByCountry [$ countryCode ]);
185185 }
186186}
You can’t perform that action at this time.
0 commit comments