Skip to content

Commit b89f0d8

Browse files
milwad-devgithub-actions[bot]
authored andcommitted
Fix styling
1 parent 461df05 commit b89f0d8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Rules/ValidIban.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)