Passed
Push — master ( 1173f0...070f3f )
by Nate
13:41
created
src/Annotation/Accessor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      *
61 61
      * @return string
62 62
      */
63
-    public function getter(): ?string
63
+    public function getter(): ? string
64 64
     {
65 65
         return $this->get;
66 66
     }
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      *
71 71
      * @return string
72 72
      */
73
-    public function setter(): ?string
73
+    public function setter(): ? string
74 74
     {
75 75
         return $this->set;
76 76
     }
Please login to merge, or discard this patch.
src/Element/JsonArray.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      *
32 32
      * @param string $value
33 33
      */
34
-    public function addString(?string $value): void
34
+    public function addString(? string $value) : void
35 35
     {
36 36
         $this->addJsonElement(JsonPrimitive::create($value));
37 37
     }
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
      *
42 42
      * @param int $value
43 43
      */
44
-    public function addInteger(?int $value): void
44
+    public function addInteger(? int $value) : void
45 45
     {
46 46
         $this->addJsonElement(JsonPrimitive::create($value));
47 47
     }
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
      *
52 52
      * @param float $value
53 53
      */
54
-    public function addFloat(?float $value): void
54
+    public function addFloat(? float $value) : void
55 55
     {
56 56
         $this->addJsonElement(JsonPrimitive::create($value));
57 57
     }
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
      *
62 62
      * @param bool $value
63 63
      */
64
-    public function addBoolean(?bool $value): void
64
+    public function addBoolean(? bool $value) : void
65 65
     {
66 66
         $this->addJsonElement(JsonPrimitive::create($value));
67 67
     }
Please login to merge, or discard this patch.
src/Element/JsonObject.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
      * @param string $property
35 35
      * @param string $value
36 36
      */
37
-    public function addString(string $property, ?string $value)
37
+    public function addString(string $property, ? string $value)
38 38
     {
39 39
         $this->add($property, JsonPrimitive::create($value));
40 40
     }
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      * @param string $property
46 46
      * @param int $value
47 47
      */
48
-    public function addInteger(string $property, ?int $value)
48
+    public function addInteger(string $property, ? int $value)
49 49
     {
50 50
         $this->add($property, JsonPrimitive::create($value));
51 51
     }
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      * @param string $property
57 57
      * @param float $value
58 58
      */
59
-    public function addFloat(string $property, ?float $value)
59
+    public function addFloat(string $property, ? float $value)
60 60
     {
61 61
         $this->add($property, JsonPrimitive::create($value));
62 62
     }
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      * @param string $property
68 68
      * @param bool $value
69 69
      */
70
-    public function addBoolean(string $property, ?bool $value)
70
+    public function addBoolean(string $property, ? bool $value)
71 71
     {
72 72
         $this->add($property, JsonPrimitive::create($value));
73 73
     }
Please login to merge, or discard this patch.
src/GsonBuilder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
      */
315 315
     public function setCacheDir(string $cacheDir): GsonBuilder
316 316
     {
317
-        $this->cacheDir = $cacheDir.'/gson';
317
+        $this->cacheDir = $cacheDir . '/gson';
318 318
 
319 319
         return $this;
320 320
     }
@@ -335,14 +335,14 @@  discard block
 block discarded – undo
335 335
         $propertyNamingStrategy = $this->propertyNamingStrategy ?? new SnakePropertyNamingStrategy();
336 336
         $methodNamingStrategy = $this->methodNamingStrategy ?? new UpperCaseMethodNamingStrategy();
337 337
 
338
-        $doctrineAnnotationCache = false === $this->enableCache ? new ArrayCache(): new ChainCache([new ArrayCache(), new FilesystemCache($this->cacheDir)]);
338
+        $doctrineAnnotationCache = false === $this->enableCache ? new ArrayCache() : new ChainCache([new ArrayCache(), new FilesystemCache($this->cacheDir)]);
339 339
         $doctrineAnnotationCache->setNamespace('doctrine_annotation_cache');
340 340
         $reader = new CachedReader(new AnnotationReader(), $doctrineAnnotationCache);
341 341
 
342 342
         $cache = false === $this->enableCache ? new ArrayCache() : new ChainCache([new ArrayCache(), new FilesystemCache($this->cacheDir)]);
343 343
         $cache->setNamespace('property_collection_cache');
344 344
 
345
-        $annotationCache = false === $this->enableCache ? new ArrayCache(): new ChainCache([new ArrayCache(), new FilesystemCache($this->cacheDir)]);
345
+        $annotationCache = false === $this->enableCache ? new ArrayCache() : new ChainCache([new ArrayCache(), new FilesystemCache($this->cacheDir)]);
346 346
         $annotationCache->setNamespace('annotation_cache');
347 347
 
348 348
         $typeAdapterCache = new ArrayCache();
Please login to merge, or discard this patch.
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 the type matches the class, parent, full type, or one of the interfaces
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/JsonDecodeReader.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
             );
174 174
         }
175 175
 
176
-        return (float)$this->pop();
176
+        return (float) $this->pop();
177 177
     }
178 178
 
179 179
     /**
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
             );
191 191
         }
192 192
 
193
-        return (int)$this->pop();
193
+        return (int) $this->pop();
194 194
     }
195 195
 
196 196
     /**
Please login to merge, or discard this patch.