@@ -20,7 +20,7 @@ |
||
20 | 20 | { |
21 | 21 | foreach ($attributes as $attribute) { |
22 | 22 | if (!filter_var($BaseObject->$attribute, FILTER_VALIDATE_URL)) { |
23 | - $BaseObject->addError($attribute, $attribute . ' must be valid url'); |
|
23 | + $BaseObject->addError($attribute, $attribute.' must be valid url'); |
|
24 | 24 | } |
25 | 25 | } |
26 | 26 | } |
@@ -19,8 +19,8 @@ |
||
19 | 19 | public function validate(BaseObject $BaseObject, array $attributes, array $options = []): void |
20 | 20 | { |
21 | 21 | foreach ($attributes as $attribute) { |
22 | - if (trim((string)$BaseObject->$attribute) === '') { |
|
23 | - $BaseObject->addError($attribute, $attribute . ' cannot be empty'); |
|
22 | + if (trim((string) $BaseObject->$attribute) === '') { |
|
23 | + $BaseObject->addError($attribute, $attribute.' cannot be empty'); |
|
24 | 24 | } |
25 | 25 | } |
26 | 26 | } |
@@ -72,7 +72,7 @@ |
||
72 | 72 | throw new IncorrectRuleException('Rule name must be a string'); |
73 | 73 | } |
74 | 74 | |
75 | - $class = '\\iamsaint\\yml\\validators\\' . $rule[1]; |
|
75 | + $class = '\\iamsaint\\yml\\validators\\'.$rule[1]; |
|
76 | 76 | |
77 | 77 | if (!class_exists($class)) { |
78 | 78 | throw new IncorrectRuleException('Validator not found'); |