Passed
Push — master ( 3a6720...972705 )
by Alexey
01:52
created
src/validators/url.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/validators/required.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,8 +19,8 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/BaseObject.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.