Completed
Push — master ( bc20b4...b7ce52 )
by Nate
03:15
created
src/Internal/Data/PropertyCollectionFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@
 block discarded – undo
121 121
     public function create(TypeToken $phpType): PropertyCollection
122 122
     {
123 123
         $class = $phpType->getRawType();
124
-        $key = 'properties:'.$class;
124
+        $key = 'properties:' . $class;
125 125
 
126 126
         $data = $this->cache->fetch($key);
127 127
         if (false !== $data) {
Please login to merge, or discard this patch.
src/GsonBuilder.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -331,7 +331,7 @@  discard block
 block discarded – undo
331 331
      */
332 332
     public function setCacheDir(string $cacheDir): GsonBuilder
333 333
     {
334
-        $this->cacheDir = $cacheDir.'/gson';
334
+        $this->cacheDir = $cacheDir . '/gson';
335 335
 
336 336
         return $this;
337 337
     }
@@ -352,7 +352,7 @@  discard block
 block discarded – undo
352 352
         $propertyNamingStrategy = $this->propertyNamingStrategy ?? new SnakePropertyNamingStrategy();
353 353
         $methodNamingStrategy = $this->methodNamingStrategy ?? new UpperCaseMethodNamingStrategy();
354 354
 
355
-        $doctrineAnnotationCache = false === $this->enableCache ? new ArrayCache(): new ChainCache([new ArrayCache(), new FilesystemCache($this->cacheDir)]);
355
+        $doctrineAnnotationCache = false === $this->enableCache ? new ArrayCache() : new ChainCache([new ArrayCache(), new FilesystemCache($this->cacheDir)]);
356 356
         $doctrineAnnotationCache->setNamespace('doctrine_annotation_cache');
357 357
         $reader = new CachedReader(new AnnotationReader(), $doctrineAnnotationCache);
358 358
 
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
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
      */
23 23
     public function __construct(JsonObject $jsonObject)
24 24
     {
25
-        foreach($jsonObject as $key => $value) {
25
+        foreach ($jsonObject as $key => $value) {
26 26
             $this->queue[] = [$key, $value];
27 27
             $this->total++;
28 28
         }
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/PhpTypeFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,12 +48,12 @@
 block discarded – undo
48 48
         if (null !== $setterMethod && [] !== $setterMethod->getParameters()) {
49 49
             $parameter = $setterMethod->getParameters()[0];
50 50
             if (null !== $parameter->getType()) {
51
-                return new TypeToken((string) $parameter->getType());
51
+                return new TypeToken((string)$parameter->getType());
52 52
             }
53 53
         }
54 54
 
55 55
         if (null !== $getterMethod && null !== $getterMethod->getReturnType()) {
56
-            return new TypeToken((string) $getterMethod->getReturnType());
56
+            return new TypeToken((string)$getterMethod->getReturnType());
57 57
         }
58 58
 
59 59
         if (null !== $setterMethod && [] !== $setterMethod->getParameters()) {
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
@@ -211,11 +211,11 @@
 block discarded – undo
211 211
         $result = '$';
212 212
         foreach ($this->stack as $index => $item) {
213 213
             if ($item instanceof ArrayIterator && isset($this->pathIndices[$index])) {
214
-                $result .= '['.$this->pathIndices[$index].']';
214
+                $result .= '[' . $this->pathIndices[$index] . ']';
215 215
             }
216 216
 
217 217
             if ($item instanceof StdClassIterator && isset($this->pathNames[$index])) {
218
-                $result .= '.'.$this->pathNames[$index];
218
+                $result .= '.' . $this->pathNames[$index];
219 219
             }
220 220
         }
221 221
 
Please login to merge, or discard this patch.
src/Internal/TypeAdapter/ArrayTypeAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
      * @throws \Tebru\Gson\Exception\JsonSyntaxException If trying to read from non object/array
55 55
      * @throws \Tebru\PhpType\Exception\MalformedTypeException If the type cannot be parsed
56 56
      */
57
-    public function read(JsonReadable $reader): ?array
57
+    public function read(JsonReadable $reader): ? array
58 58
     {
59 59
         if ($reader->peek() === JsonToken::NULL) {
60 60
             return $reader->nextNull();
Please login to merge, or discard this patch.
src/Internal/TypeAdapter/StringTypeAdapter.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
      * @param JsonReadable $reader
25 25
      * @return string|null
26 26
      */
27
-    public function read(JsonReadable $reader): ?string
27
+    public function read(JsonReadable $reader): ? string
28 28
     {
29 29
         if ($reader->peek() === JsonToken::NULL) {
30 30
             return $reader->nextNull();
Please login to merge, or discard this patch.