Completed
Push — master ( 033c1a...a9d2a1 )
by Nate
03:23
created
src/JsonWritable.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -94,6 +94,7 @@
 block discarded – undo
94 94
      * Sets whether nulls are serialized
95 95
      *
96 96
      * @param bool $serializeNull
97
+     * @return void
97 98
      */
98 99
     public function setSerializeNull(bool $serializeNull): void;
99 100
 }
Please login to merge, or discard this patch.
src/Internal/Data/PropertyCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
      * @param string $name
52 52
      * @return Property|null
53 53
      */
54
-    public function getBySerializedName(string $name): ?Property
54
+    public function getBySerializedName(string $name): ? Property
55 55
     {
56 56
         if (!isset($this->elements[$name])) {
57 57
             return null;
Please login to merge, or discard this patch.
src/Internal/JsonObjectIterator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     public function __construct(JsonObject $jsonObject)
25 25
     {
26 26
         $this->queue = new SplQueue();
27
-        foreach($jsonObject as $key => $value) {
27
+        foreach ($jsonObject as $key => $value) {
28 28
             $this->queue[] = [$key, $value];
29 29
             $this->total++;
30 30
         }
Please login to merge, or discard this patch.
src/Internal/JsonElementReader.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -374,7 +374,7 @@
 block discarded – undo
374 374
     /**
375 375
      * Pop the last element off the stack and return it
376 376
      *
377
-     * @return JsonElement|Iterator
377
+     * @return JsonObject
378 378
      */
379 379
     private function pop()
380 380
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -354,11 +354,11 @@
 block discarded – undo
354 354
         $result = '$';
355 355
         foreach ($this->stack as $index => $item) {
356 356
             if ($item instanceof ArrayIterator && isset($this->pathIndices[$index])) {
357
-                $result .= '['.$this->pathIndices[$index].']';
357
+                $result .= '[' . $this->pathIndices[$index] . ']';
358 358
             }
359 359
 
360 360
             if ($item instanceof JsonObjectIterator && isset($this->pathNames[$index])) {
361
-                $result .= '.'.$this->pathNames[$index];
361
+                $result .= '.' . $this->pathNames[$index];
362 362
             }
363 363
         }
364 364
 
Please login to merge, or discard this patch.
src/Internal/TypeAdapter/DateTimeTypeAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
      * @param JsonReadable $reader
50 50
      * @return DateTime|null
51 51
      */
52
-    public function read(JsonReadable $reader): ?DateTime
52
+    public function read(JsonReadable $reader): ? DateTime
53 53
     {
54 54
         if ($reader->peek() === JsonToken::NULL) {
55 55
             return $reader->nextNull();
Please login to merge, or discard this patch.
src/Internal/TypeAdapter/IntegerTypeAdapter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
      * @param JsonReadable $reader
25 25
      * @return int|null
26 26
      */
27
-    public function read(JsonReadable $reader): ?int
27
+    public function read(JsonReadable $reader): ? int
28 28
     {
29 29
         if ($reader->peek() === JsonToken::NULL) {
30 30
             return $reader->nextNull();
@@ -48,6 +48,6 @@  discard block
 block discarded – undo
48 48
             return;
49 49
         }
50 50
 
51
-        $writer->writeInteger((int)$value);
51
+        $writer->writeInteger((int) $value);
52 52
     }
53 53
 }
Please login to merge, or discard this patch.
src/Internal/TypeAdapter/FloatTypeAdapter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
      * @param JsonReadable $reader
25 25
      * @return float|null
26 26
      */
27
-    public function read(JsonReadable $reader): ?float
27
+    public function read(JsonReadable $reader): ? float
28 28
     {
29 29
         if ($reader->peek() === JsonToken::NULL) {
30 30
             return $reader->nextNull();
@@ -48,6 +48,6 @@  discard block
 block discarded – undo
48 48
             return;
49 49
         }
50 50
 
51
-        $writer->writeFloat((float)$value);
51
+        $writer->writeFloat((float) $value);
52 52
     }
53 53
 }
Please login to merge, or discard this patch.
src/Internal/JsonDecodeReader.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
     {
162 162
         $this->expect(JsonToken::BOOLEAN);
163 163
 
164
-        $result = (bool)$this->pop();
164
+        $result = (bool) $this->pop();
165 165
 
166 166
         $this->incrementPathIndex();
167 167
 
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
     {
179 179
         $this->expect(JsonToken::NUMBER);
180 180
 
181
-        $result = (float)$this->pop();
181
+        $result = (float) $this->pop();
182 182
 
183 183
         $this->incrementPathIndex();
184 184
 
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
     {
196 196
         $this->expect(JsonToken::NUMBER);
197 197
 
198
-        $result = (int)$this->pop();
198
+        $result = (int) $this->pop();
199 199
 
200 200
         $this->incrementPathIndex();
201 201
 
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
 
218 218
         $this->expect(JsonToken::STRING);
219 219
 
220
-        $result = (string)$this->pop();
220
+        $result = (string) $this->pop();
221 221
 
222 222
         $this->incrementPathIndex();
223 223
 
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
 
262 262
         $this->push($value);
263 263
 
264
-        return (string)$key;
264
+        return (string) $key;
265 265
     }
266 266
 
267 267
     /**
@@ -350,11 +350,11 @@  discard block
 block discarded – undo
350 350
         $result = '$';
351 351
         foreach ($this->stack as $index => $item) {
352 352
             if ($item instanceof ArrayIterator && isset($this->pathIndices[$index])) {
353
-                $result .= '['.$this->pathIndices[$index].']';
353
+                $result .= '[' . $this->pathIndices[$index] . ']';
354 354
             }
355 355
 
356 356
             if ($item instanceof StdClassIterator && isset($this->pathNames[$index])) {
357
-                $result .= '.'.$this->pathNames[$index];
357
+                $result .= '.' . $this->pathNames[$index];
358 358
             }
359 359
         }
360 360
 
Please login to merge, or discard this patch.
src/Internal/TypeAdapter/JsonElementTypeAdapter.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      * Read the next value, convert it to its type and return it
29 29
      *
30 30
      * @param JsonReadable $reader
31
-     * @return mixed
31
+     * @return JsonElement
32 32
      * @throws \LogicException
33 33
      */
34 34
     public function read(JsonReadable $reader): JsonElement
Please login to merge, or discard this patch.