Passed
Pull Request — master (#26)
by Nate
07:26
created
src/Internal/TypeAdapter/JsonElementTypeAdapter.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
                 return JsonPrimitive::create($reader->nextDouble());
60 60
             case JsonToken::BOOLEAN:
61 61
                 return JsonPrimitive::create($reader->nextBoolean());
62
-            case JsonToken::NULL:
62
+            case JsonToken::null:
63 63
                 $reader->nextNull();
64 64
 
65 65
                 return new JsonNull();
Please login to merge, or discard this patch.
src/JsonToken.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,6 +25,6 @@
 block discarded – undo
25 25
     public const STRING = 'string';
26 26
     public const BOOLEAN = 'boolean';
27 27
     public const NUMBER = 'number';
28
-    public const NULL = 'null';
28
+    public const null = 'null';
29 29
     public const NAME = 'name';
30 30
 }
Please login to merge, or discard this patch.
src/Internal/TypeAdapter/BooleanTypeAdapter.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      */
29 29
     public function read(JsonReadable $reader): ?bool
30 30
     {
31
-        if ($reader->peek() === JsonToken::NULL) {
31
+        if ($reader->peek() === JsonToken::null) {
32 32
             $reader->nextNull();
33 33
             return null;
34 34
         }
Please login to merge, or discard this patch.
src/Internal/TypeAdapter/IntegerTypeAdapter.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      */
29 29
     public function read(JsonReadable $reader): ?int
30 30
     {
31
-        if ($reader->peek() === JsonToken::NULL) {
31
+        if ($reader->peek() === JsonToken::null) {
32 32
             $reader->nextNull();
33 33
             return null;
34 34
         }
Please login to merge, or discard this patch.
src/Internal/TypeAdapter/FloatTypeAdapter.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      */
29 29
     public function read(JsonReadable $reader): ?float
30 30
     {
31
-        if ($reader->peek() === JsonToken::NULL) {
31
+        if ($reader->peek() === JsonToken::null) {
32 32
             $reader->nextNull();
33 33
             return null;
34 34
         }
Please login to merge, or discard this patch.
src/Internal/TypeAdapter/StringTypeAdapter.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      */
29 29
     public function read(JsonReadable $reader): ?string
30 30
     {
31
-        if ($reader->peek() === JsonToken::NULL) {
31
+        if ($reader->peek() === JsonToken::null) {
32 32
             $reader->nextNull();
33 33
             return null;
34 34
         }
Please login to merge, or discard this patch.
src/Internal/TypeAdapter/DateTimeTypeAdapter.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
      */
56 56
     public function read(JsonReadable $reader): ?DateTimeInterface
57 57
     {
58
-        if ($reader->peek() === JsonToken::NULL) {
58
+        if ($reader->peek() === JsonToken::null) {
59 59
             $reader->nextNull();
60 60
             return null;
61 61
         }
Please login to merge, or discard this patch.
src/Internal/JsonElementReader.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
             $this->stackTypes[$this->stackSize++] = JsonToken::BOOLEAN;
64 64
         } else {
65 65
             $this->stack[$this->stackSize] = null;
66
-            $this->stackTypes[$this->stackSize++] = JsonToken::NULL;
66
+            $this->stackTypes[$this->stackSize++] = JsonToken::null;
67 67
         }
68 68
     }
69 69
 
Please login to merge, or discard this patch.
src/Internal/TypeAdapter/ArrayTypeAdapter.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
     public function read(JsonReadable $reader): ?array
77 77
     {
78 78
         $token = $reader->peek();
79
-        if ($token === JsonToken::NULL) {
79
+        if ($token === JsonToken::null) {
80 80
             $reader->nextNull();
81 81
             return null;
82 82
         }
Please login to merge, or discard this patch.