Passed
Push — master ( 24cd0f...3a3149 )
by Nate
03:26
created
src/Internal/PhpTypeFactory.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\Internal;
10 10
 
@@ -52,12 +52,12 @@  discard block
 block discarded – undo
52 52
         if (null !== $setterMethod && [] !== $setterMethod->getParameters()) {
53 53
             $parameter = $setterMethod->getParameters()[0];
54 54
             if (null !== $parameter->getType()) {
55
-                return new TypeToken((string) $parameter->getType());
55
+                return new TypeToken((string)$parameter->getType());
56 56
             }
57 57
         }
58 58
 
59 59
         if (null !== $getterMethod && null !== $getterMethod->getReturnType()) {
60
-            return new TypeToken((string) $getterMethod->getReturnType());
60
+            return new TypeToken((string)$getterMethod->getReturnType());
61 61
         }
62 62
 
63 63
         if (null !== $setterMethod && [] !== $setterMethod->getParameters()) {
Please login to merge, or discard this patch.
src/Internal/DefaultClassMetadata.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\Internal;
10 10
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
      * @param string $annotationClass
83 83
      * @return null|AbstractAnnotation
84 84
      */
85
-    public function getAnnotation(string $annotationClass): ?AbstractAnnotation
85
+    public function getAnnotation(string $annotationClass): ? AbstractAnnotation
86 86
     {
87 87
         return $this->annotations->get($annotationClass);
88 88
     }
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      * @param string $propertyName
104 104
      * @return PropertyMetadata|null
105 105
      */
106
-    public function getProperty(string $propertyName): ?PropertyMetadata
106
+    public function getProperty(string $propertyName): ? PropertyMetadata
107 107
     {
108 108
         foreach ($this->propertyMetadata as $property) {
109 109
             if ($property->getName() === $propertyName) {
Please login to merge, or discard this patch.
src/Internal/Naming/SnakePropertyNamingStrategy.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\Internal\Naming;
10 10
 
Please login to merge, or discard this patch.
src/Internal/AccessorStrategy/SetByPublicProperty.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\Internal\AccessorStrategy;
10 10
 
Please login to merge, or discard this patch.
src/Internal/AccessorStrategy/GetByClosure.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\Internal\AccessorStrategy;
10 10
 
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     public function get($object)
63 63
     {
64 64
         if (null === $this->getter) {
65
-            $this->getter = Closure::bind(function ($object, string $propertyName) {
65
+            $this->getter = Closure::bind(function($object, string $propertyName) {
66 66
                 return $object->{$propertyName};
67 67
             }, null, $this->className);
68 68
         }
Please login to merge, or discard this patch.
src/Internal/AccessorStrategy/SetByClosure.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\Internal\AccessorStrategy;
10 10
 
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     public function set($object, $value): void
56 56
     {
57 57
         if (null === $this->setter) {
58
-            $this->setter = Closure::bind(function ($object, $value, string $propertyName) {
58
+            $this->setter = Closure::bind(function($object, $value, string $propertyName) {
59 59
                 $object->{$propertyName} = $value;
60 60
             }, null, $this->className);
61 61
         }
Please login to merge, or discard this patch.
src/Internal/ObjectConstructor/CreateFromReflectionClass.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\Internal\ObjectConstructor;
10 10
 
Please login to merge, or discard this patch.
src/Internal/JsonElementReader.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\Internal;
10 10
 
@@ -219,11 +219,11 @@  discard block
 block discarded – undo
219 219
         $result = '$';
220 220
         foreach ($this->stack as $index => $item) {
221 221
             if ($item instanceof ArrayIterator && isset($this->pathIndices[$index])) {
222
-                $result .= '['.$this->pathIndices[$index].']';
222
+                $result .= '[' . $this->pathIndices[$index] . ']';
223 223
             }
224 224
 
225 225
             if ($item instanceof JsonObjectIterator && isset($this->pathNames[$index])) {
226
-                $result .= '.'.$this->pathNames[$index];
226
+                $result .= '.' . $this->pathNames[$index];
227 227
             }
228 228
         }
229 229
 
Please login to merge, or discard this patch.
src/Internal/JsonObjectIterator.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\Internal;
10 10
 
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
      */
25 25
     public function __construct(JsonObject $jsonObject)
26 26
     {
27
-        foreach($jsonObject as $key => $value) {
27
+        foreach ($jsonObject as $key => $value) {
28 28
             $this->queue[] = [$key, $value];
29 29
             $this->total++;
30 30
         }
Please login to merge, or discard this patch.