Passed
Push — master ( cbd80f...48b33e )
by Nelson
03:38
created
src/IntString.php 2 patches
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.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
         if (!(is_integer($intValue) || $intValue === null)) {
49 49
             $args = [
50 50
                 'position' => '1st',
51
-                'expected' => typeof(0) . '" or "' . typeof(null),
51
+                'expected' => typeof(0).'" or "'.typeof(null),
52 52
                 'actual'   => typeof($intValue),
53 53
             ];
54 54
 
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
         if (!typeof($stringValue)->canBeString()) {
67 67
             $args = [
68 68
                 'position' => '2nd',
69
-                'expected' => typeof('string') . '", "' . typeof(null) . '" or "any object convertible to string',
69
+                'expected' => typeof('string').'", "'.typeof(null).'" or "any object convertible to string',
70 70
                 'actual'   => typeof($stringValue),
71 71
             ];
72 72
 
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
      */
171 171
     public function toString(): string
172 172
     {
173
-        return $this->getIntValue() . $this->getStringValue();
173
+        return $this->getIntValue().$this->getStringValue();
174 174
     }
175 175
 
176 176
     /**
Please login to merge, or discard this patch.
tests/DataProviders/TypeTestProvider.php 1 patch
Spacing   +28 added lines, -28 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,18 +171,18 @@  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,  (int) 123,      [11, 0, -34]],
177
-            [false, (int) 123,      [11, 0, -34.456]],
178
-            [true,  (float) 1.23,   [11.0, 0.0, -34.6]],
179
-            [false, (float) 1.23,   [11.0, 0, -34.4]],
180
-            [true,  (string) '',    ['', '0', 'i am not a string']],
181
-            [false, (string) '',    [11.2, '0', true]],
182
-            [true,  null,           [null, null]],
183
-            [false, null,           [[], null, false]],
184
-            [true,  new stdClass(),   [new stdClass(), new stdClass()]],
185
-            [false, new stdClass(),   [[], new stdClass(), true]],
174
+            [true, (bool) true, [true, false]],
175
+            [false, (bool) false, [true, false, 0]],
176
+            [true, (int) 123, [11, 0, -34]],
177
+            [false, (int) 123, [11, 0, -34.456]],
178
+            [true, (float) 1.23, [11.0, 0.0, -34.6]],
179
+            [false, (float) 1.23, [11.0, 0, -34.4]],
180
+            [true, (string) '', ['', '0', 'i am not a string']],
181
+            [false, (string) '', [11.2, '0', true]],
182
+            [true, null, [null, null]],
183
+            [false, null, [[], null, false]],
184
+            [true, new stdClass(), [new stdClass(), new stdClass()]],
185
+            [false, new stdClass(), [[], new stdClass(), true]],
186 186
         ];
187 187
     }
188 188
 
@@ -197,18 +197,18 @@  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,  (int) 123,      [11, 0, -34]],
203
-            [false, (int) 123,      [11.2, '0', true]],
204
-            [true,  (float) 1.23,   [11, 0.5, -34]],
205
-            [false, (float) 1.23,   [11, '0', true]],
206
-            [true,  (string) '',    [11, '0', -34]],
207
-            [false, (string) '',    [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
-            [false, new stdClass(),   [[], 'stdClass', true]],
200
+            [true, (bool) true, [true, false, 1, 'string']],
201
+            [false, (bool) false, ['true', 'false', 0, 1]],
202
+            [true, (int) 123, [11, 0, -34]],
203
+            [false, (int) 123, [11.2, '0', true]],
204
+            [true, (float) 1.23, [11, 0.5, -34]],
205
+            [false, (float) 1.23, [11, '0', true]],
206
+            [true, (string) '', [11, '0', -34]],
207
+            [false, (string) '', [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
+            [false, new stdClass(), [[], 'stdClass', true]],
212 212
         ];
213 213
     }
214 214
 
Please login to merge, or discard this patch.
tests/DataProviders/ExampleClass/ToString.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,6 +57,6 @@
 block discarded – undo
57 57
      */
58 58
     public function toString()
59 59
     {
60
-        return $this->x . ', ' . $this->y;
60
+        return $this->x.', '.$this->y;
61 61
     }
62 62
 }
Please login to merge, or discard this patch.
tests/DataProviders/ExampleClass/WithSomeMethodsClass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,6 +57,6 @@
 block discarded – undo
57 57
             return 'string';
58 58
         }
59 59
 
60
-        throw new BadMethodCallException($name . ' method do not exists.');
60
+        throw new BadMethodCallException($name.' method do not exists.');
61 61
     }
62 62
 }
Please login to merge, or discard this patch.
tests/Helpers/ImplementsIConvertibleToString.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,6 +78,6 @@
 block discarded – undo
78 78
         /** @var TestCase $this */
79 79
         $this->assertSame($expected, $obj->toString(), 'Failed explicit conversion to string');
80 80
 
81
-        $this->assertSame($expected, $obj . '', 'Failed implicit conversion to string');
81
+        $this->assertSame($expected, $obj.'', 'Failed implicit conversion to string');
82 82
     }
83 83
 }
Please login to merge, or discard this patch.
tests/Helpers/ExporterPlugin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
                         if (is_object($value)) {
81 81
                             $sclass = static::getClass($value, $short);
82 82
 
83
-                            $sVal = $sclass . '({...})';
83
+                            $sVal = $sclass.'({...})';
84 84
                         } elseif (is_array($value)) {
85 85
                             $sVal = '[...]';
86 86
                         } else {
Please login to merge, or discard this patch.
tests/TestCase/VersionTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@
 block discarded – undo
93 93
             ]
94 94
         );
95 95
 
96
-        $this->assertIsBool($actual, $message . ' # Should return a boolean #');
96
+        $this->assertIsBool($actual, $message.' # Should return a boolean #');
97 97
 
98 98
         if ($expected === true) {
99 99
             $this->assertTrue($actual, $message);
Please login to merge, or discard this patch.
tests/TestCase/VersionComponentTest.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -108,20 +108,20 @@  discard block
 block discarded – undo
108 108
 
109 109
         foreach ($actuals as $method => $actual) {
110 110
             // Pre-tests for returning type
111
-            $this->assertIsBool($actual, $messages[$method] . ' # Should return a boolean #');
111
+            $this->assertIsBool($actual, $messages[$method].' # Should return a boolean #');
112 112
         }
113 113
 
114 114
         // Pre-tests for different values
115 115
         $this->assertNotEquals(
116 116
             $actuals['isDefault'],
117 117
             $actuals['isNotDefault'],
118
-            $messages['isDefault'] . PHP_EOL . $messages['isNotDefault']
118
+            $messages['isDefault'].PHP_EOL.$messages['isNotDefault']
119 119
         );
120 120
 
121 121
         $this->assertNotEquals(
122 122
             $actuals['isNull'],
123 123
             $actuals['isNotNull'],
124
-            $messages['isNull'] . PHP_EOL . $messages['isNotNull']
124
+            $messages['isNull'].PHP_EOL.$messages['isNotNull']
125 125
         );
126 126
 
127 127
 
@@ -133,8 +133,8 @@  discard block
 block discarded – undo
133 133
             $this->assertNotEquals(
134 134
                 $actuals['isNull'],
135 135
                 $actuals['isDefault'],
136
-                '#Can\'t be both, DEFAULT and NULL, at the same time' . PHP_EOL .
137
-                $messages['isDefault'] . PHP_EOL .
136
+                '#Can\'t be both, DEFAULT and NULL, at the same time'.PHP_EOL.
137
+                $messages['isDefault'].PHP_EOL.
138 138
                 $messages['isNull']
139 139
             );
140 140
         } elseif ($expected === 'null') {
@@ -144,8 +144,8 @@  discard block
 block discarded – undo
144 144
             $this->assertNotEquals(
145 145
                 $actuals['isNull'],
146 146
                 $actuals['isDefault'],
147
-                '#Can\'t be both, NULL and DEFAULT, at the same time' . PHP_EOL .
148
-                $messages['isNull'] . PHP_EOL .
147
+                '#Can\'t be both, NULL and DEFAULT, at the same time'.PHP_EOL.
148
+                $messages['isNull'].PHP_EOL.
149 149
                 $messages['isDefault']
150 150
             );
151 151
         } else {
Please login to merge, or discard this patch.
config/bootstrap.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,4 +19,4 @@
 block discarded – undo
19 19
  * */
20 20
 
21 21
 // Set the path of translations
22
-bindtextdomain(NML_GETTEXT_DOMAIN, __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'Locale');
22
+bindtextdomain(NML_GETTEXT_DOMAIN, __DIR__.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'Locale');
Please login to merge, or discard this patch.