Test Setup Failed
Branch master (28dae0)
by Nate
03:12
created
src/GsonBuilder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
      */
297 297
     public function setCacheDir(string $cacheDir): GsonBuilder
298 298
     {
299
-        $this->cacheDir = $cacheDir.'/gson';
299
+        $this->cacheDir = $cacheDir . '/gson';
300 300
 
301 301
         return $this;
302 302
     }
@@ -312,14 +312,14 @@  discard block
 block discarded – undo
312 312
         $propertyNamingStrategy = $this->propertyNamingStrategy ?? new SnakePropertyNamingStrategy();
313 313
         $methodNamingStrategy = $this->methodNamingStrategy ?? new UpperCaseMethodNamingStrategy();
314 314
 
315
-        $doctrineAnnotationCache = null === $this->cacheDir ? new ArrayCache(): new ChainCache([new ArrayCache(), new FilesystemCache($this->cacheDir)]);
315
+        $doctrineAnnotationCache = null === $this->cacheDir ? new ArrayCache() : new ChainCache([new ArrayCache(), new FilesystemCache($this->cacheDir)]);
316 316
         $doctrineAnnotationCache->setNamespace('doctrine_annotation_cache');
317 317
         $reader = new CachedReader(new AnnotationReader(), $doctrineAnnotationCache);
318 318
 
319 319
         $cache = null === $this->cacheDir ? new ArrayCache() : new ChainCache([new ArrayCache(), new FilesystemCache($this->cacheDir)]);
320 320
         $cache->setNamespace('property_collection_cache');
321 321
 
322
-        $annotationCache = null === $this->cacheDir ? new ArrayCache(): new ChainCache([new ArrayCache(), new FilesystemCache($this->cacheDir)]);
322
+        $annotationCache = null === $this->cacheDir ? new ArrayCache() : new ChainCache([new ArrayCache(), new FilesystemCache($this->cacheDir)]);
323 323
         $annotationCache->setNamespace('annotation_cache');
324 324
 
325 325
         $annotationCollectionFactory = new AnnotationCollectionFactory($reader, $annotationCache);
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.