Passed
Push — master ( 24cd0f...3a3149 )
by Nate
03:26
created
src/Annotation/Type.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
  * Distributed under the MIT License (http://opensource.org/licenses/MIT)
5 5
  */
6 6
 
7
-declare(strict_types=1);
7
+declare(strict_types = 1);
8 8
 
9 9
 namespace Tebru\Gson\Annotation;
10 10
 
Please login to merge, or discard this patch.
src/Annotation/Accessor.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
  * Distributed under the MIT License (http://opensource.org/licenses/MIT)
5 5
  */
6 6
 
7
-declare(strict_types=1);
7
+declare(strict_types = 1);
8 8
 
9 9
 namespace Tebru\Gson\Annotation;
10 10
 
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      *
63 63
      * @return string
64 64
      */
65
-    public function getter(): ?string
65
+    public function getter(): ? string
66 66
     {
67 67
         return $this->get;
68 68
     }
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
      *
73 73
      * @return string
74 74
      */
75
-    public function setter(): ?string
75
+    public function setter(): ? string
76 76
     {
77 77
         return $this->set;
78 78
     }
Please login to merge, or discard this patch.
src/MethodNamingStrategy.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
  * Distributed under the MIT License (http://opensource.org/licenses/MIT)
5 5
  */
6 6
 
7
-declare(strict_types=1);
7
+declare(strict_types = 1);
8 8
 
9 9
 namespace Tebru\Gson;
10 10
 
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
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
  * Distributed under the MIT License (http://opensource.org/licenses/MIT)
5 5
  */
6 6
 
7
-declare(strict_types=1);
7
+declare(strict_types = 1);
8 8
 
9 9
 namespace Tebru\Gson;
10 10
 
@@ -333,7 +333,7 @@  discard block
 block discarded – undo
333 333
      */
334 334
     public function setCacheDir(string $cacheDir): GsonBuilder
335 335
     {
336
-        $this->cacheDir = $cacheDir.'/gson';
336
+        $this->cacheDir = $cacheDir . '/gson';
337 337
 
338 338
         return $this;
339 339
     }
@@ -355,7 +355,7 @@  discard block
 block discarded – undo
355 355
         $propertyNamingStrategy = $this->propertyNamingStrategy ?? new SnakePropertyNamingStrategy();
356 356
         $methodNamingStrategy = $this->methodNamingStrategy ?? new UpperCaseMethodNamingStrategy();
357 357
 
358
-        $doctrineAnnotationCache = false === $this->enableCache ? new ArrayCache(): new ChainCache([new ArrayCache(), new FilesystemCache($this->cacheDir)]);
358
+        $doctrineAnnotationCache = false === $this->enableCache ? new ArrayCache() : new ChainCache([new ArrayCache(), new FilesystemCache($this->cacheDir)]);
359 359
         $doctrineAnnotationCache->setNamespace('doctrine_annotation_cache');
360 360
         $reader = new CachedReader(new AnnotationReader(), $doctrineAnnotationCache);
361 361
 
Please login to merge, or discard this patch.
src/ClassMetadata.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
  * Distributed under the MIT License (http://opensource.org/licenses/MIT)
5 5
  */
6 6
 
7
-declare(strict_types=1);
7
+declare(strict_types = 1);
8 8
 
9 9
 namespace Tebru\Gson;
10 10
 
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
      * @param string $annotationClass
42 42
      * @return null|AbstractAnnotation
43 43
      */
44
-    public function getAnnotation(string $annotationClass): ?AbstractAnnotation;
44
+    public function getAnnotation(string $annotationClass): ? AbstractAnnotation;
45 45
 
46 46
     /**
47 47
      * Returns an array of [@see PropertyMetadata] objects
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      * @param string $propertyName
57 57
      * @return PropertyMetadata|null
58 58
      */
59
-    public function getProperty(string $propertyName): ?PropertyMetadata;
59
+    public function getProperty(string $propertyName): ? PropertyMetadata;
60 60
 
61 61
     /**
62 62
      * Add [@see PropertyMetadata] link
Please login to merge, or discard this patch.
src/PropertyMetadata.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
  * Distributed under the MIT License (http://opensource.org/licenses/MIT)
5 5
  */
6 6
 
7
-declare(strict_types=1);
7
+declare(strict_types = 1);
8 8
 
9 9
 namespace Tebru\Gson;
10 10
 
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
      * @param string $annotationName
84 84
      * @return null|AbstractAnnotation
85 85
      */
86
-    public function getAnnotation(string $annotationName): ?AbstractAnnotation;
86
+    public function getAnnotation(string $annotationName): ? AbstractAnnotation;
87 87
 
88 88
     /**
89 89
      * Returns true if the property is virtual
Please login to merge, or discard this patch.
src/Element/JsonObject.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
  * Distributed under the MIT License (http://opensource.org/licenses/MIT)
5 5
  */
6 6
 
7
-declare(strict_types=1);
7
+declare(strict_types = 1);
8 8
 
9 9
 namespace Tebru\Gson\Element;
10 10
 
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
      * @param string $property
37 37
      * @param string $value
38 38
      */
39
-    public function addString(string $property, ?string $value)
39
+    public function addString(string $property, ? string $value)
40 40
     {
41 41
         $this->add($property, JsonPrimitive::create($value));
42 42
     }
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      * @param string $property
48 48
      * @param int $value
49 49
      */
50
-    public function addInteger(string $property, ?int $value)
50
+    public function addInteger(string $property, ? int $value)
51 51
     {
52 52
         $this->add($property, JsonPrimitive::create($value));
53 53
     }
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      * @param string $property
59 59
      * @param float $value
60 60
      */
61
-    public function addFloat(string $property, ?float $value)
61
+    public function addFloat(string $property, ? float $value)
62 62
     {
63 63
         $this->add($property, JsonPrimitive::create($value));
64 64
     }
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      * @param string $property
70 70
      * @param bool $value
71 71
      */
72
-    public function addBoolean(string $property, ?bool $value)
72
+    public function addBoolean(string $property, ? bool $value)
73 73
     {
74 74
         $this->add($property, JsonPrimitive::create($value));
75 75
     }
Please login to merge, or discard this patch.
src/Element/JsonPrimitive.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
  * Distributed under the MIT License (http://opensource.org/licenses/MIT)
5 5
  */
6 6
 
7
-declare(strict_types=1);
7
+declare(strict_types = 1);
8 8
 
9 9
 namespace Tebru\Gson\Element;
10 10
 
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
      */
107 107
     public function asString(): string
108 108
     {
109
-        return (string) $this->value;
109
+        return (string)$this->value;
110 110
     }
111 111
 
112 112
     /**
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
      */
117 117
     public function asInteger(): int
118 118
     {
119
-        return (int) $this->value;
119
+        return (int)$this->value;
120 120
     }
121 121
 
122 122
     /**
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
      */
127 127
     public function asFloat(): float
128 128
     {
129
-        return (float) $this->value;
129
+        return (float)$this->value;
130 130
     }
131 131
 
132 132
     /**
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
      */
137 137
     public function asBoolean(): bool
138 138
     {
139
-        return (bool) $this->value;
139
+        return (bool)$this->value;
140 140
     }
141 141
 
142 142
     /**
Please login to merge, or discard this patch.
src/Element/JsonNull.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
4 4
  * Distributed under the MIT License (http://opensource.org/licenses/MIT)
5 5
  */
6 6
 
7
-declare(strict_types=1);
7
+declare(strict_types = 1);
8 8
 
9 9
 namespace Tebru\Gson\Element;
10 10
 
Please login to merge, or discard this patch.