Passed
Pull Request — master (#26)
by Nate
07:26
created
src/Internal/AccessorStrategy/SetByClosure.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
     public function set($object, $value): void
54 54
     {
55 55
         if (null === $this->setter) {
56
-            $this->setter = Closure::bind(function ($object, $value, string $propertyName) {
56
+            $this->setter = Closure::bind(function($object, $value, string $propertyName) {
57 57
                 $object->{$propertyName} = $value;
58 58
             }, null, $this->className);
59 59
         }
Please login to merge, or discard this patch.
src/Internal/AccessorStrategy/GetByClosure.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
     public function get($object)
61 61
     {
62 62
         if (null === $this->getter) {
63
-            $this->getter = Closure::bind(function ($object, string $propertyName) {
63
+            $this->getter = Closure::bind(function($object, string $propertyName) {
64 64
                 return $object->{$propertyName};
65 65
             }, null, $this->className);
66 66
         }
Please login to merge, or discard this patch.
src/Element/JsonPrimitive.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
      */
105 105
     public function asString(): string
106 106
     {
107
-        return (string) $this->value;
107
+        return (string)$this->value;
108 108
     }
109 109
 
110 110
     /**
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
      */
115 115
     public function asInteger(): int
116 116
     {
117
-        return (int) $this->value;
117
+        return (int)$this->value;
118 118
     }
119 119
 
120 120
     /**
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
      */
125 125
     public function asFloat(): float
126 126
     {
127
-        return (float) $this->value;
127
+        return (float)$this->value;
128 128
     }
129 129
 
130 130
     /**
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
      */
135 135
     public function asBoolean(): bool
136 136
     {
137
-        return (bool) $this->value;
137
+        return (bool)$this->value;
138 138
     }
139 139
 
140 140
     /**
Please login to merge, or discard this patch.
src/TypeAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
 
79 79
         $this->write($writer, $var);
80 80
 
81
-        return (string) $writer;
81
+        return (string)$writer;
82 82
     }
83 83
 
84 84
     /**
Please login to merge, or discard this patch.
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.