Test Setup Failed
Branch master (28dae0)
by Nate
03:12
created
src/Internal/TypeAdapter/ArrayTypeAdapter.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      * @throws \LogicException If the wrong number of generics exist
59 59
      * @throws \RuntimeException If the value is not valid
60 60
      */
61
-    public function read(JsonReadable $reader): ?array
61
+    public function read(JsonReadable $reader): ? array
62 62
     {
63 63
         if ($reader->peek() === JsonToken::NULL) {
64 64
             return $reader->nextNull();
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
                 // no generics specified
189 189
                 case 0:
190 190
                     if ($arrayIsObject) {
191
-                        $writer->name((string)$key);
191
+                        $writer->name((string) $key);
192 192
                     }
193 193
 
194 194
                     $adapter = $this->typeAdapterProvider->getAdapter(PhpType::createFromVariable($item));
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
                 // generic for value specified
199 199
                 case 1:
200 200
                     if ($arrayIsObject) {
201
-                        $writer->name((string)$key);
201
+                        $writer->name((string) $key);
202 202
                     }
203 203
 
204 204
                     $adapter = $this->typeAdapterProvider->getAdapter($generics[0]);
Please login to merge, or discard this patch.
src/Internal/TypeAdapter/ArrayListTypeAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
      * @throws \OutOfBoundsException if the index doesn't exist
60 60
      * @throws \LogicException If ArrayList contains more than one generic type
61 61
      */
62
-    public function read(JsonReadable $reader): ?ArrayList
62
+    public function read(JsonReadable $reader): ? ArrayList
63 63
     {
64 64
         if ($reader->peek() === JsonToken::NULL) {
65 65
             return $reader->nextNull();
Please login to merge, or discard this patch.
src/Internal/TypeAdapter/HashMapTypeAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
      * @throws \LogicException If there is an incorrect number of generic types
58 58
      * @throws \Tebru\Gson\Exception\MalformedTypeException If the type cannot be parsed
59 59
      */
60
-    public function read(JsonReadable $reader): ?HashMap
60
+    public function read(JsonReadable $reader): ? HashMap
61 61
     {
62 62
         if ($reader->peek() === JsonToken::NULL) {
63 63
             return $reader->nextNull();
Please login to merge, or discard this patch.
src/Internal/TypeAdapter/FloatTypeAdapter.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 float|null
26 26
      */
27
-    public function read(JsonReadable $reader): ?float
27
+    public function read(JsonReadable $reader): ? float
28 28
     {
29 29
         if ($reader->peek() === JsonToken::NULL) {
30 30
             return $reader->nextNull();
Please login to merge, or discard this patch.
src/Internal/TypeAdapter/DateTimeTypeAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
      * @return DateTime|null
44 44
      * @throws \OutOfRangeException if the key doesn't exist
45 45
      */
46
-    public function read(JsonReadable $reader): ?DateTime
46
+    public function read(JsonReadable $reader): ? DateTime
47 47
     {
48 48
         if ($reader->peek() === JsonToken::NULL) {
49 49
             return $reader->nextNull();
Please login to merge, or discard this patch.
src/Internal/AccessorMethodProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
      * @param AnnotationSet $annotations
47 47
      * @return null|ReflectionMethod
48 48
      */
49
-    public function getterMethod(ReflectionClass $reflectionClass, ReflectionProperty $reflectionProperty, AnnotationSet $annotations): ?ReflectionMethod
49
+    public function getterMethod(ReflectionClass $reflectionClass, ReflectionProperty $reflectionProperty, AnnotationSet $annotations): ? ReflectionMethod
50 50
     {
51 51
         /** @var Accessor $accessorAnnotation */
52 52
         $accessorAnnotation = $annotations->getAnnotation(Accessor::class, AnnotationSet::TYPE_PROPERTY);
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
      * @param AnnotationSet $annotations
67 67
      * @return null|ReflectionMethod
68 68
      */
69
-    public function setterMethod(ReflectionClass $reflectionClass, ReflectionProperty $reflectionProperty, AnnotationSet $annotations): ?ReflectionMethod
69
+    public function setterMethod(ReflectionClass $reflectionClass, ReflectionProperty $reflectionProperty, AnnotationSet $annotations): ? ReflectionMethod
70 70
     {
71 71
         /** @var Accessor $accessorAnnotation */
72 72
         $accessorAnnotation = $annotations->getAnnotation(Accessor::class, AnnotationSet::TYPE_PROPERTY);
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
      * @param array $accessors
86 86
      * @return null|ReflectionMethod
87 87
      */
88
-    private function reflectionClassMethod(ReflectionClass $reflectionClass, array $accessors): ?ReflectionMethod
88
+    private function reflectionClassMethod(ReflectionClass $reflectionClass, array $accessors): ? ReflectionMethod
89 89
     {
90 90
         foreach ($accessors as $method) {
91 91
             if (!$reflectionClass->hasMethod($method)) {
Please login to merge, or discard this patch.
src/Internal/AccessorStrategy/SetByClosure.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
     public function set($object, $value): void
54 54
     {
55 55
         if (null === $this->setter) {
56
-            $this->setter = Closure::bind(function ($object, $value, string $propertyName) {
56
+            $this->setter = Closure::bind(function($object, $value, string $propertyName) {
57 57
                 $object->{$propertyName} = $value;
58 58
             }, null, $this->className);
59 59
         }
Please login to merge, or discard this patch.
src/Internal/AccessorStrategy/GetByClosure.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
     public function get($object)
61 61
     {
62 62
         if (null === $this->getter) {
63
-            $this->getter = Closure::bind(function ($object, string $propertyName) {
63
+            $this->getter = Closure::bind(function($object, string $propertyName) {
64 64
                 return $object->{$propertyName};
65 65
             }, null, $this->className);
66 66
         }
Please login to merge, or discard this patch.
src/Internal/PhpType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -197,7 +197,7 @@
 block discarded – undo
197 197
      *
198 198
      * @return string
199 199
      */
200
-    public function getClass(): ?string
200
+    public function getClass(): ? string
201 201
     {
202 202
         return $this->class;
203 203
     }
Please login to merge, or discard this patch.