Skip to content

Commit 430f9fc

Browse files
committed
#MOD - StyleCI fixes
1 parent 6dd3c84 commit 430f9fc

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/Rules/PostCodeRule.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,19 @@
55
use Illuminate\Contracts\Validation\Rule;
66

77
/**
8-
* Class PostCodeRule
8+
* Class PostCodeRule.
99
*
1010
* @author Wiktor Pacer <kontakt@pacerit.pl>
1111
*
1212
* @since 09/09/2020
1313
*/
1414
class PostCodeRule implements Rule
1515
{
16-
1716
/**
1817
* Determine if the validation rule passes.
1918
*
2019
* @param string $attribute
21-
* @param mixed $value
20+
* @param mixed $value
2221
*
2322
* @return bool
2423
*/
@@ -44,7 +43,7 @@ private function checkPostCode(?string $string): bool
4443
return false;
4544
}
4645

47-
if (!preg_match('/^[0-9]{2}-?[0-9]{3}$/Du', $string) ) {
46+
if (!preg_match('/^[0-9]{2}-?[0-9]{3}$/Du', $string)) {
4847
return false;
4948
}
5049

@@ -60,4 +59,4 @@ public function message()
6059
{
6160
return trans('polish-validation::validation.post_code');
6261
}
63-
}
62+
}

0 commit comments

Comments
 (0)