Completed
Push — master ( 4379c4...5259cc )
by Simone
02:19
created
src/Sensorario/Resources/Validators/Validators/AllowedProperties.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
                 if (!$isAllowed) {
38 38
                     throw new RuntimeException(
39 39
                         "Key `" . get_class($resource)
40
-                        . "::\$$key` with value `" .  $value
40
+                        . "::\$$key` with value `" . $value
41 41
                         . "` is not allowed"
42 42
                     );
43 43
                 }
Please login to merge, or discard this patch.
src/Sensorario/Resources/MagicResource.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
         foreach ($properties as $k => $v) {
58 58
             if ('object' === gettype($v) && !isset($this->rules()[$k])) {
59 59
                 throw new RuntimeException(
60
-                    'When property `' . $k . '` is an object class, must be defined in Resources::rules()'.
60
+                    'When property `' . $k . '` is an object class, must be defined in Resources::rules()' .
61 61
                     ' but rules here are equals to ' . var_export($this->rules(), true)
62 62
                     . ' And properties are ' . var_export($this->properties, true)
63 63
                 );
Please login to merge, or discard this patch.
src/Sensorario/Resources/Resource.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -11,9 +11,6 @@
 block discarded – undo
11 11
 
12 12
 namespace Sensorario\Resources;
13 13
 
14
-use RuntimeException;
15
-use Sensorario\Resources\Validators\ResourcesValidator;
16
-
17 14
 class Resource
18 15
     extends MagicResource
19 16
     implements Interfaces\ResourceInterface
Please login to merge, or discard this patch.
src/Sensorario/Resources/Configurator.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -18,9 +18,9 @@
 block discarded – undo
18 18
 
19 19
     public function __call($method, $bar)
20 20
     {
21
-         return $this->container->$method(
22
-             $this->resourceName
23
-         );
21
+            return $this->container->$method(
22
+                $this->resourceName
23
+            );
24 24
     }
25 25
 
26 26
     public function resourceName()
Please login to merge, or discard this patch.
src/Sensorario/Resources/Validators/Validators/RightType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 
49 49
                     if (is_numeric($resource->get($key)) && is_string($resource->get($key))) {
50 50
                         throw new \RuntimeException(
51
-                            'Property `'.$key.'` must be an integer!'
51
+                            'Property `' . $key . '` must be an integer!'
52 52
                         );
53 53
                     }
54 54
 
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
                 if (key($rule) == 'custom-validator') {
77 77
                     if ('email' != current($rule)) {
78 78
                         throw new \RuntimeException(
79
-                            'Oops! `'.key($rule).'` custom validator is not available. Only email are.'
79
+                            'Oops! `' . key($rule) . '` custom validator is not available. Only email are.'
80 80
                         );
81 81
                     }
82 82
 
Please login to merge, or discard this patch.