Completed
Push — master ( 070f3f...043491 )
by Nate
03:23
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/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/Annotation/Accessor.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      *
61 61
      * @return string
62 62
      */
63
-    public function getter(): ?string
63
+    public function getter(): ? string
64 64
     {
65 65
         return $this->get;
66 66
     }
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      *
71 71
      * @return string
72 72
      */
73
-    public function setter(): ?string
73
+    public function setter(): ? string
74 74
     {
75 75
         return $this->set;
76 76
     }
Please login to merge, or discard this patch.
src/Element/JsonArray.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      *
32 32
      * @param string $value
33 33
      */
34
-    public function addString(?string $value): void
34
+    public function addString(? string $value) : void
35 35
     {
36 36
         $this->addJsonElement(JsonPrimitive::create($value));
37 37
     }
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
      *
42 42
      * @param int $value
43 43
      */
44
-    public function addInteger(?int $value): void
44
+    public function addInteger(? int $value) : void
45 45
     {
46 46
         $this->addJsonElement(JsonPrimitive::create($value));
47 47
     }
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
      *
52 52
      * @param float $value
53 53
      */
54
-    public function addFloat(?float $value): void
54
+    public function addFloat(? float $value) : void
55 55
     {
56 56
         $this->addJsonElement(JsonPrimitive::create($value));
57 57
     }
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
      *
62 62
      * @param bool $value
63 63
      */
64
-    public function addBoolean(?bool $value): void
64
+    public function addBoolean(? bool $value) : void
65 65
     {
66 66
         $this->addJsonElement(JsonPrimitive::create($value));
67 67
     }
Please login to merge, or discard this patch.
src/Element/JsonObject.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
      * @param string $property
35 35
      * @param string $value
36 36
      */
37
-    public function addString(string $property, ?string $value)
37
+    public function addString(string $property, ? string $value)
38 38
     {
39 39
         $this->add($property, JsonPrimitive::create($value));
40 40
     }
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      * @param string $property
46 46
      * @param int $value
47 47
      */
48
-    public function addInteger(string $property, ?int $value)
48
+    public function addInteger(string $property, ? int $value)
49 49
     {
50 50
         $this->add($property, JsonPrimitive::create($value));
51 51
     }
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      * @param string $property
57 57
      * @param float $value
58 58
      */
59
-    public function addFloat(string $property, ?float $value)
59
+    public function addFloat(string $property, ? float $value)
60 60
     {
61 61
         $this->add($property, JsonPrimitive::create($value));
62 62
     }
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      * @param string $property
68 68
      * @param bool $value
69 69
      */
70
-    public function addBoolean(string $property, ?bool $value)
70
+    public function addBoolean(string $property, ? bool $value)
71 71
     {
72 72
         $this->add($property, JsonPrimitive::create($value));
73 73
     }
Please login to merge, or discard this patch.
src/Element/JsonPrimitive.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
      * Factory constructor that handles nulls
37 37
      *
38 38
      * @param mixed $value
39
-     * @return JsonNull|JsonPrimitive
39
+     * @return JsonElement
40 40
      */
41 41
     public static function create($value)
42 42
     {
Please login to merge, or discard this patch.