Completed
Pull Request — master (#133)
by Simone
02:04
created
src/Sensorario/Resources/MagicResource.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
         foreach ($properties as $k => $v) {
66 66
             if ('object' === gettype($v) && !isset($this->rules()[$k])) {
67 67
                 throw new \Sensorario\Resources\Exceptions\PropertyWithoutRuleException(
68
-                    'When property `' . $k . '` is an object class, must be defined in Resources::rules()'.
68
+                    'When property `' . $k . '` is an object class, must be defined in Resources::rules()' .
69 69
                     ' but rules here are equals to ' . var_export($this->rules(), true)
70 70
                     . ' And properties are ' . var_export($this->properties, true)
71 71
                 );
Please login to merge, or discard this patch.
src/Sensorario/Resources/Validators/Validators/AllowedProperties.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
                 if (!$isAllowed) {
37 37
                     throw new \Sensorario\Resources\Exceptions\NotAllowedKeyException(
38 38
                         "Key `" . get_class($resource)
39
-                        . "::\$$key` with value `" .  $value
39
+                        . "::\$$key` with value `" . $value
40 40
                         . "` is not allowed"
41 41
                     );
42 42
                 }
Please login to merge, or discard this patch.
src/Sensorario/Resources/Rulers/Ruler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
         if ($this->typeMismatch()) {
74 74
             if ($this->resource->isFieldNumericButString($this->fieldName)) {
75 75
                 throw new \Sensorario\Resources\Exceptions\WrongPropertyValueException(
76
-                    'Property `'.$this->fieldName.'` must be an integer!'
76
+                    'Property `' . $this->fieldName . '` must be an integer!'
77 77
                 );
78 78
             }
79 79
 
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
 
106 106
         if ($this->rule->isNotMail()) {
107 107
             throw new \Sensorario\Resources\Exceptions\InvalidCustomValidatorException(
108
-                'Oops! `'. $this->rule->getRuleType() .'` custom validator is not available. Only email is.'
108
+                'Oops! `' . $this->rule->getRuleType() . '` custom validator is not available. Only email is.'
109 109
             );
110 110
         }
111 111
     }
Please login to merge, or discard this patch.