Passed
Branch master (c5c3fa)
by Nate
03:35
created
src/Internal/JsonElementReader.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -166,7 +166,7 @@
 block discarded – undo
166 166
                 $token = JsonToken::BEGIN_ARRAY;
167 167
                 break;
168 168
             case JsonNull::class:
169
-                $token = JsonToken::NULL;
169
+                $token = JsonToken::null;
170 170
                 break;
171 171
             case JsonObject::class:
172 172
                 $token = JsonToken::BEGIN_OBJECT;
Please login to merge, or discard this patch.
src/Internal/JsonReader.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -160,7 +160,7 @@
 block discarded – undo
160 160
      */
161 161
     public function nextNull()
162 162
     {
163
-        $this->expect(JsonToken::NULL);
163
+        $this->expect(JsonToken::null);
164 164
 
165 165
         $this->pop();
166 166
 
Please login to merge, or discard this patch.
src/Internal/JsonDecodeReader.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -211,11 +211,11 @@
 block discarded – undo
211 211
         $result = '$';
212 212
         foreach ($this->stack as $index => $item) {
213 213
             if ($item instanceof ArrayIterator && isset($this->pathIndices[$index])) {
214
-                $result .= '['.$this->pathIndices[$index].']';
214
+                $result .= '[' . $this->pathIndices[$index] . ']';
215 215
             }
216 216
 
217 217
             if ($item instanceof StdClassIterator && isset($this->pathNames[$index])) {
218
-                $result .= '.'.$this->pathNames[$index];
218
+                $result .= '.' . $this->pathNames[$index];
219 219
             }
220 220
         }
221 221
 
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -170,7 +170,7 @@
 block discarded – undo
170 170
             case 'boolean':
171 171
                 return JsonToken::BOOLEAN;
172 172
             case 'NULL':
173
-                $token = JsonToken::NULL;
173
+                $token = JsonToken::null;
174 174
                 break;
175 175
             case StdClassIterator::class:
176 176
                 /** @var StdClassIterator $element */
Please login to merge, or discard this patch.