Passed
Branch master (87aff0)
by Nate
03:48 queued 50s
created
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.
src/Internal/TypeAdapter/ArrayTypeAdapter.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
      * @throws \Tebru\Gson\Exception\JsonSyntaxException If trying to read from non object/array
55 55
      * @throws \Tebru\PhpType\Exception\MalformedTypeException If the type cannot be parsed
56 56
      */
57
-    public function read(JsonReadable $reader): ?array
57
+    public function read(JsonReadable $reader): ? array
58 58
     {
59 59
         if ($reader->peek() === JsonToken::NULL) {
60 60
             return $reader->nextNull();
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
      */
57 57
     public function read(JsonReadable $reader): ?array
58 58
     {
59
-        if ($reader->peek() === JsonToken::NULL) {
59
+        if ($reader->peek() === JsonToken::null) {
60 60
             return $reader->nextNull();
61 61
         }
62 62
 
Please login to merge, or discard this patch.
src/Internal/TypeAdapter/WildcardTypeAdapter.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,8 +66,8 @@
 block discarded – undo
66 66
             case JsonToken::NUMBER:
67 67
                 $type = new TypeToken(TypeToken::FLOAT);
68 68
                 break;
69
-            case JsonToken::NULL:
70
-                $type = new TypeToken(TypeToken::NULL);
69
+            case JsonToken::null:
70
+                $type = new TypeToken(TypeToken::null);
71 71
                 break;
72 72
             default:
73 73
                 throw new JsonSyntaxException(
Please login to merge, or discard this patch.