Completed
Push — master ( 1f9c9a...dbd6f1 )
by Nate
04:38
created
src/Internal/TypeAdapter/ArrayTypeAdapter.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      * @throws \LogicException If the wrong number of generics exist
60 60
      * @throws \RuntimeException If the value is not valid
61 61
      */
62
-    public function read(JsonReadable $reader): ?array
62
+    public function read(JsonReadable $reader): ? array
63 63
     {
64 64
         if ($reader->peek() === JsonToken::NULL) {
65 65
             return $reader->nextNull();
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
                 // no generics specified
190 190
                 case 0:
191 191
                     if ($arrayIsObject) {
192
-                        $writer->name((string)$key);
192
+                        $writer->name((string) $key);
193 193
                     }
194 194
 
195 195
                     $adapter = $this->typeAdapterProvider->getAdapter(DefaultPhpType::createFromVariable($item));
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
                 // generic for value specified
200 200
                 case 1:
201 201
                     if ($arrayIsObject) {
202
-                        $writer->name((string)$key);
202
+                        $writer->name((string) $key);
203 203
                     }
204 204
 
205 205
                     $adapter = $this->typeAdapterProvider->getAdapter($generics[0]);
Please login to merge, or discard this patch.
src/Internal/DefaultPhpType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
      *
201 201
      * @return string
202 202
      */
203
-    public function getType(): ?string
203
+    public function getType(): ? string
204 204
     {
205 205
         return $this->isObject() ? $this->class : $this->fullType;
206 206
     }
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
     {
316 316
         return [] === $this->options
317 317
             ? $this->fullType
318
-            : $this->fullType.serialize($this->options);
318
+            : $this->fullType . serialize($this->options);
319 319
     }
320 320
 
321 321
     /**
Please login to merge, or discard this patch.
src/PhpType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      *
29 29
      * @return string
30 30
      */
31
-    public function getType(): ?string;
31
+    public function getType(): ? string;
32 32
 
33 33
     /**
34 34
      * Returns true if this is a string
Please login to merge, or discard this patch.