Passed
Push — master ( 1173f0...070f3f )
by Nate
13:41
created
src/Internal/Excluder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
      * @param string $version
85 85
      * @return Excluder
86 86
      */
87
-    public function setVersion(?string $version): Excluder
87
+    public function setVersion(? string $version) : Excluder
88 88
     {
89 89
         $this->version = $version;
90 90
 
Please login to merge, or discard this patch.
src/Internal/Data/AnnotationCollectionFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      */
56 56
     public function createPropertyAnnotations(string $className, string $propertyName): AnnotationSet
57 57
     {
58
-        $key = $className.':'.$propertyName;
58
+        $key = $className . ':' . $propertyName;
59 59
         if ($this->cache->contains($key)) {
60 60
             return $this->cache->fetch($key);
61 61
         }
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
      */
144 144
     public function createMethodAnnotations(string $className, string $methodName): AnnotationSet
145 145
     {
146
-        $key = $className.':'.$methodName;
146
+        $key = $className . ':' . $methodName;
147 147
         if ($this->cache->contains($key)) {
148 148
             return $this->cache->fetch($key);
149 149
         }
Please login to merge, or discard this patch.
src/Internal/TypeAdapter/BooleanTypeAdapter.php 2 patches
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 mixed
26 26
      */
27
-    public function read(JsonReadable $reader): ?bool
27
+    public function read(JsonReadable $reader): ? bool
28 28
     {
29 29
         if ($reader->peek() === JsonToken::NULL) {
30 30
             return $reader->nextNull();
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
      * Read the next value, convert it to its type and return it
23 23
      *
24 24
      * @param JsonReadable $reader
25
-     * @return mixed
25
+     * @return null|boolean
26 26
      */
27 27
     public function read(JsonReadable $reader): ?bool
28 28
     {
Please login to merge, or discard this patch.
src/Internal/TypeAdapter/StringTypeAdapter.php 2 patches
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 mixed
26 26
      */
27
-    public function read(JsonReadable $reader): ?string
27
+    public function read(JsonReadable $reader): ? string
28 28
     {
29 29
         if ($reader->peek() === JsonToken::NULL) {
30 30
             return $reader->nextNull();
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
      * Read the next value, convert it to its type and return it
23 23
      *
24 24
      * @param JsonReadable $reader
25
-     * @return mixed
25
+     * @return null|string
26 26
      */
27 27
     public function read(JsonReadable $reader): ?string
28 28
     {
Please login to merge, or discard this patch.
src/Internal/TypeAdapter/IntegerTypeAdapter.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 int|null
26 26
      */
27
-    public function read(JsonReadable $reader): ?int
27
+    public function read(JsonReadable $reader): ? int
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/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.