Passed
Push — master ( da4da2...955b82 )
by Nate
04:34
created
src/Internal/DefaultClassMetadata.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
 namespace Tebru\Gson\Internal;
9 9
 
10 10
 use Tebru\Gson\ClassMetadata;
Please login to merge, or discard this patch.
src/Internal/ObjectConstructor.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
 namespace Tebru\Gson\Internal;
9 9
 
10 10
 /**
Please login to merge, or discard this patch.
src/Internal/JsonEncodeWriter.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
 namespace Tebru\Gson\Internal;
9 9
 
10 10
 use LogicException;
Please login to merge, or discard this patch.
src/Internal/DefaultJsonSerializationContext.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
 namespace Tebru\Gson\Internal;
9 9
 
10 10
 use Tebru\Gson\Element\JsonElement;
Please login to merge, or discard this patch.
src/Internal/DefaultPropertyMetadata.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
 namespace Tebru\Gson\Internal;
9 9
 
10 10
 use Tebru\Gson\ClassMetadata;
Please login to merge, or discard this patch.
src/Internal/AccessorMethodProvider.php 1 patch
Spacing   +4 added lines, -4 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
 namespace Tebru\Gson\Internal;
9 9
 
10 10
 use ReflectionClass;
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      * @param AnnotationSet $annotations
48 48
      * @return null|ReflectionMethod
49 49
      */
50
-    public function getterMethod(ReflectionClass $reflectionClass, ReflectionProperty $reflectionProperty, AnnotationSet $annotations): ?ReflectionMethod
50
+    public function getterMethod(ReflectionClass $reflectionClass, ReflectionProperty $reflectionProperty, AnnotationSet $annotations): ? ReflectionMethod
51 51
     {
52 52
         /** @var Accessor $accessorAnnotation */
53 53
         $accessorAnnotation = $annotations->getAnnotation(Accessor::class, AnnotationSet::TYPE_PROPERTY);
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      * @param AnnotationSet $annotations
68 68
      * @return null|ReflectionMethod
69 69
      */
70
-    public function setterMethod(ReflectionClass $reflectionClass, ReflectionProperty $reflectionProperty, AnnotationSet $annotations): ?ReflectionMethod
70
+    public function setterMethod(ReflectionClass $reflectionClass, ReflectionProperty $reflectionProperty, AnnotationSet $annotations): ? ReflectionMethod
71 71
     {
72 72
         /** @var Accessor $accessorAnnotation */
73 73
         $accessorAnnotation = $annotations->getAnnotation(Accessor::class, AnnotationSet::TYPE_PROPERTY);
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      * @param array $accessors
87 87
      * @return null|ReflectionMethod
88 88
      */
89
-    private function reflectionClassMethod(ReflectionClass $reflectionClass, array $accessors): ?ReflectionMethod
89
+    private function reflectionClassMethod(ReflectionClass $reflectionClass, array $accessors): ? ReflectionMethod
90 90
     {
91 91
         foreach ($accessors as $method) {
92 92
             if (!$reflectionClass->hasMethod($method)) {
Please login to merge, or discard this patch.
src/Internal/TypeAdapterProvider.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
 namespace Tebru\Gson\Internal;
9 9
 
10 10
 use InvalidArgumentException;
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
      */
67 67
     public function getAdapter(TypeToken $type, TypeAdapterFactory $skip = null): TypeAdapter
68 68
     {
69
-        $key = (string)$type;
69
+        $key = (string) $type;
70 70
         if (null === $skip && isset($this->typeAdapters[$key])) {
71 71
             return $this->typeAdapters[$key];
72 72
         }
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
 
93 93
         throw new InvalidArgumentException(sprintf(
94 94
             'The type "%s" could not be handled by any of the registered type adapters',
95
-            (string)$type
95
+            (string) $type
96 96
         ));
97 97
     }
98 98
 
Please login to merge, or discard this patch.
src/Internal/JsonReader.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
 namespace Tebru\Gson\Internal;
9 9
 
10 10
 use Iterator;
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
 
150 150
         $this->push($value);
151 151
 
152
-        return (string)$key;
152
+        return (string) $key;
153 153
     }
154 154
 
155 155
     /**
Please login to merge, or discard this patch.
src/Internal/SetterStrategy.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
 namespace Tebru\Gson\Internal;
9 9
 
10 10
 /**
Please login to merge, or discard this patch.