Passed
Pull Request — master (#154)
by
unknown
10:08
created
src/PropertiesHandler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -286,7 +286,7 @@  discard block
 block discarded – undo
286 286
         PropertyExtension::ensureIsDefined($name, $class, is_subclass_of($class, IMagicPropertiesContainer::class));
287 287
 
288 288
         try {
289
-            $setter = MethodExtension::ensureIsDefined($prefix . $name, $class);
289
+            $setter = MethodExtension::ensureIsDefined($prefix.$name, $class);
290 290
         } catch (InvalidArgumentException $error) {
291 291
             if ($useCustom && is_subclass_of($class, ICustomPrefixedPropertiesContainer::class)) {
292 292
                 // If not available standard setter, check if custom available
@@ -328,7 +328,7 @@  discard block
 block discarded – undo
328 328
         PropertyExtension::ensureIsDefined($name, $class, is_subclass_of($class, IMagicPropertiesContainer::class));
329 329
 
330 330
         try {
331
-            $getter = MethodExtension::ensureIsDefined($prefix . $name, $class);
331
+            $getter = MethodExtension::ensureIsDefined($prefix.$name, $class);
332 332
         } catch (InvalidArgumentException $error) {
333 333
             if ($useCustom && is_subclass_of($class, ICustomPrefixedPropertiesContainer::class)) {
334 334
                 // If not available standard getter, check if custom available
Please login to merge, or discard this patch.
src/StrictObject.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
             }
85 85
         }
86 86
 
87
-        return '{ ' . $type . ' }';
87
+        return '{ '.$type.' }';
88 88
     }
89 89
 
90 90
     /**
Please login to merge, or discard this patch.
tests/DataProviders/TypeTestProvider.php 1 patch
Spacing   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -92,8 +92,8 @@  discard block
 block discarded – undo
92 92
             'stdClass'                   => [new \stdClass()],
93 93
             __CLASS__                    => [$this],
94 94
 
95
-            'string: ' . ToString::class => [ToString::class, true],
96
-            'string: ' . stdClass::class => [stdClass::class, true],
95
+            'string: '.ToString::class => [ToString::class, true],
96
+            'string: '.stdClass::class => [stdClass::class, true],
97 97
             'non string as `$obj` arg'   => [new stdClass(), true],
98 98
         ];
99 99
     }
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
             'double'                     => [1.9999],
127 127
             'string'                     => ['str'],
128 128
             ToString::class              => [new ToString()],
129
-            'string: ' . ToString::class => [ToString::class, true],
129
+            'string: '.ToString::class => [ToString::class, true],
130 130
         ];
131 131
     }
132 132
 
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
             'array'                      => [[]],
137 137
             'stdClass'                   => [new \stdClass()],
138 138
             __CLASS__                    => [$this],
139
-            'string: ' . stdClass::class => [stdClass::class, true],
139
+            'string: '.stdClass::class => [stdClass::class, true],
140 140
         ];
141 141
     }
142 142
 
@@ -171,17 +171,17 @@  discard block
 block discarded – undo
171 171
     public function methodIsProvider(): array
172 172
     {
173 173
         return [
174
-            [true,  (bool) true,    [true, false]],
175
-            [false, (bool) false,   [true, false, 0]],
176
-            [true,  123,            [11, 0, -34]],
177
-            [false, 123,            [11, 0, -34.456]],
178
-            [true,  1.23,           [11.0, 0.0, -34.6]],
179
-            [false, 1.23,           [11.0, 0, -34.4]],
180
-            [true,  '',             ['', '0', 'i am not a string']],
181
-            [false, '',             [11.2, '0', true]],
182
-            [true,  null,           [null, null]],
183
-            [false, null,           [[], null, false]],
184
-            [true,  new stdClass(), [new stdClass(), new stdClass()]],
174
+            [true, (bool) true, [true, false]],
175
+            [false, (bool) false, [true, false, 0]],
176
+            [true, 123, [11, 0, -34]],
177
+            [false, 123, [11, 0, -34.456]],
178
+            [true, 1.23, [11.0, 0.0, -34.6]],
179
+            [false, 1.23, [11.0, 0, -34.4]],
180
+            [true, '', ['', '0', 'i am not a string']],
181
+            [false, '', [11.2, '0', true]],
182
+            [true, null, [null, null]],
183
+            [false, null, [[], null, false]],
184
+            [true, new stdClass(), [new stdClass(), new stdClass()]],
185 185
             [false, new stdClass(), [[], new stdClass(), true]],
186 186
         ];
187 187
     }
@@ -197,17 +197,17 @@  discard block
 block discarded – undo
197 197
     public function methodIsInProvider(): array
198 198
     {
199 199
         return [
200
-            [true,  (bool) true,    [true, false, 1, 'string']],
201
-            [false, (bool) false,   ['true', 'false', 0, 1]],
202
-            [true,  123,            [11, 0, -34]],
203
-            [false, 123,            [11.2, '0', true]],
204
-            [true,  1.23,           [11, 0.5, -34]],
205
-            [false, 1.23,           [11, '0', true]],
206
-            [true,  '',             [11, '0', -34]],
207
-            [false, '',             [11.2, 0, true]],
208
-            [true,  null,           [null, true, 4]],
209
-            [false, null,           [[], 'null', false]],
210
-            [true,  new stdClass(), [new stdClass(), new A(), 0]],
200
+            [true, (bool) true, [true, false, 1, 'string']],
201
+            [false, (bool) false, ['true', 'false', 0, 1]],
202
+            [true, 123, [11, 0, -34]],
203
+            [false, 123, [11.2, '0', true]],
204
+            [true, 1.23, [11, 0.5, -34]],
205
+            [false, 1.23, [11, '0', true]],
206
+            [true, '', [11, '0', -34]],
207
+            [false, '', [11.2, 0, true]],
208
+            [true, null, [null, true, 4]],
209
+            [false, null, [[], 'null', false]],
210
+            [true, new stdClass(), [new stdClass(), new A(), 0]],
211 211
             [false, new stdClass(), [[], 'stdClass', true]],
212 212
         ];
213 213
     }
Please login to merge, or discard this patch.
src/Type.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
 
77 77
             case 'resource':
78 78
                 $shortName = get_resource_type($obj);
79
-                $name      = 'resource: ' . $shortName;
79
+                $name      = 'resource: '.$shortName;
80 80
                 break;
81 81
 
82 82
             default:
Please login to merge, or discard this patch.