Completed
Push — master ( bc20b4...b7ce52 )
by Nate
03:15
created
src/Internal/DefaultClassMetadata.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
      * @param string $annotationClass
81 81
      * @return null|AbstractAnnotation
82 82
      */
83
-    public function getAnnotation(string $annotationClass): ?AbstractAnnotation
83
+    public function getAnnotation(string $annotationClass): ? AbstractAnnotation
84 84
     {
85 85
         return $this->annotations->get($annotationClass);
86 86
     }
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
      * @param string $propertyName
102 102
      * @return PropertyMetadata|null
103 103
      */
104
-    public function getProperty(string $propertyName): ?PropertyMetadata
104
+    public function getProperty(string $propertyName): ? PropertyMetadata
105 105
     {
106 106
         foreach ($this->propertyMetadata as $property) {
107 107
             if ($property->getName() === $propertyName) {
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
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
         ReflectionClass $reflectionClass,
51 51
         ReflectionProperty $reflectionProperty,
52 52
         AnnotationCollection $annotations
53
-    ): ?ReflectionMethod {
53
+    ): ? ReflectionMethod {
54 54
         /** @var Accessor $accessorAnnotation */
55 55
         $accessorAnnotation = $annotations->get(Accessor::class);
56 56
         $getters = null !== $accessorAnnotation && null !== $accessorAnnotation->getter()
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
         ReflectionClass $reflectionClass,
74 74
         ReflectionProperty $reflectionProperty,
75 75
         AnnotationCollection $annotations
76
-    ): ?ReflectionMethod {
76
+    ): ? ReflectionMethod {
77 77
         /** @var Accessor $accessorAnnotation */
78 78
         $accessorAnnotation = $annotations->get(Accessor::class);
79 79
         $setters = null !== $accessorAnnotation && null !== $accessorAnnotation->setter()
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
      * @param array $accessors
92 92
      * @return null|ReflectionMethod
93 93
      */
94
-    private function reflectionClassMethod(ReflectionClass $reflectionClass, array $accessors): ?ReflectionMethod
94
+    private function reflectionClassMethod(ReflectionClass $reflectionClass, array $accessors): ? ReflectionMethod
95 95
     {
96 96
         foreach ($accessors as $method) {
97 97
             if (!$reflectionClass->hasMethod($method)) {
Please login to merge, or discard this patch.
src/Internal/Data/Property.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -113,8 +113,7 @@
 block discarded – undo
113 113
         AnnotationCollection $annotations,
114 114
         int $modifiers,
115 115
         bool $virtual
116
-    )
117
-    {
116
+    ) {
118 117
         $this->realName = $realName;
119 118
         $this->serializedName = $serializedName;
120 119
         $this->type = $type;
Please login to merge, or discard this patch.
src/Internal/DefaultPropertyMetadata.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
      */
139 139
     public function getTypeName(): string
140 140
     {
141
-        return (string) $this->type;
141
+        return (string)$this->type;
142 142
     }
143 143
 
144 144
     /**
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
      * @param string $annotationName
188 188
      * @return null|AbstractAnnotation
189 189
      */
190
-    public function getAnnotation(string $annotationName): ?AbstractAnnotation
190
+    public function getAnnotation(string $annotationName): ? AbstractAnnotation
191 191
     {
192 192
         return $this->annotations->get($annotationName);
193 193
     }
Please login to merge, or discard this patch.