Passed
Push — master ( 5f8f04...a4db9e )
by Nelson
05:01
created
src/IntString.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@
 block discarded – undo
115 115
             throw new InvalidArgumentException($msg, 1, $e);
116 116
         }
117 117
 
118
-        $stringValue = ltrim($obj, "${intValue}");
118
+        $stringValue = ltrim($obj, "${intvalue}");
119 119
 
120 120
         // Validate that 0 (zero) is not interpreted as '' (empty string)
121 121
         if ($stringValue === $obj) {
Please login to merge, or discard this patch.
tests/DataProviders/TypeTestProvider.php 1 patch
Spacing   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -169,18 +169,18 @@  discard block
 block discarded – undo
169 169
     public function methodIsProvider() : array
170 170
     {
171 171
         return [
172
-            [true,  (bool) true,    [true, false]],
173
-            [false, (bool) false,   [true, false, 0]],
174
-            [true,  (int) 123,      [11, 0, -34]],
175
-            [false, (int) 123,      [11, 0, -34.456]],
176
-            [true,  (float) 1.23,   [11.0, 0.0, -34.6]],
177
-            [false, (float) 1.23,   [11.0, 0, -34.4]],
178
-            [true,  (string) '',    ['', '0', 'i am not a string']],
179
-            [false, (string) '',    [11.2, '0', true]],
180
-            [true,  null,           [null, null]],
181
-            [false, null,           [[], null, false]],
182
-            [true,  new stdClass,   [new stdClass, new stdClass]],
183
-            [false, new stdClass,   [[], new stdClass, true]],
172
+            [true, (bool) true, [true, false]],
173
+            [false, (bool) false, [true, false, 0]],
174
+            [true, (int) 123, [11, 0, -34]],
175
+            [false, (int) 123, [11, 0, -34.456]],
176
+            [true, (float) 1.23, [11.0, 0.0, -34.6]],
177
+            [false, (float) 1.23, [11.0, 0, -34.4]],
178
+            [true, (string) '', ['', '0', 'i am not a string']],
179
+            [false, (string) '', [11.2, '0', true]],
180
+            [true, null, [null, null]],
181
+            [false, null, [[], null, false]],
182
+            [true, new stdClass, [new stdClass, new stdClass]],
183
+            [false, new stdClass, [[], new stdClass, true]],
184 184
         ];
185 185
     }
186 186
 
@@ -195,18 +195,18 @@  discard block
 block discarded – undo
195 195
     public function methodIsInProvider() : array
196 196
     {
197 197
         return [
198
-            [true,  (bool) true,    [true, false, 1, 'string']],
199
-            [false, (bool) false,   ['true', 'false', 0, 1]],
200
-            [true,  (int) 123,      [11, 0, -34]],
201
-            [false, (int) 123,      [11.2, '0', true]],
202
-            [true,  (float) 1.23,   [11, 0.5, -34]],
203
-            [false, (float) 1.23,   [11, '0', true]],
204
-            [true,  (string) '',    [11, '0', -34]],
205
-            [false, (string) '',    [11.2, 0, true]],
206
-            [true,  null,           [null, true, 4]],
207
-            [false, null,           [[], 'null', false]],
208
-            [true,  new stdClass,   [new stdClass, new A, 0]],
209
-            [false, new stdClass,   [[], 'stdClass', true]],
198
+            [true, (bool) true, [true, false, 1, 'string']],
199
+            [false, (bool) false, ['true', 'false', 0, 1]],
200
+            [true, (int) 123, [11, 0, -34]],
201
+            [false, (int) 123, [11.2, '0', true]],
202
+            [true, (float) 1.23, [11, 0.5, -34]],
203
+            [false, (float) 1.23, [11, '0', true]],
204
+            [true, (string) '', [11, '0', -34]],
205
+            [false, (string) '', [11.2, 0, true]],
206
+            [true, null, [null, true, 4]],
207
+            [false, null, [[], 'null', false]],
208
+            [true, new stdClass, [new stdClass, new A, 0]],
209
+            [false, new stdClass, [[], 'stdClass', true]],
210 210
         ];
211 211
     }
212 212
 
Please login to merge, or discard this patch.
tests/DataProviders/ExampleClass/WithoutMagicPropertiesClass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
 
31 31
     public function __construct()
32 32
     {
33
-        $this->magic_   = 'magic';
33
+        $this->magic_ = 'magic';
34 34
         $this->noMagicProperty = 'no magic';
35 35
     }
36 36
 
Please login to merge, or discard this patch.