File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 55use 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 */
1414class 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+ }
You can’t perform that action at this time.
0 commit comments