| @@ -70,7 +70,7 @@ discard block | ||
| 70 | 70 |      { | 
| 71 | 71 | // 1) Can not parse internal classes | 
| 72 | 72 | // 2) Anonymous classes don't support attributes (PHP semantic) | 
| 73 | -        if ($class->isInternal() || $class->isAnonymous()) { | |
| 73 | +        if ($class->isInternal() || $class->isAnonymous()){ | |
| 74 | 74 | return []; | 
| 75 | 75 | } | 
| 76 | 76 | |
| @@ -85,7 +85,7 @@ discard block | ||
| 85 | 85 | protected function getFunctionAttributes(\ReflectionFunctionAbstract $function, ?string $name): iterable | 
| 86 | 86 |      { | 
| 87 | 87 | // Can not parse internal functions | 
| 88 | -        if ($function->isInternal()) { | |
| 88 | +        if ($function->isInternal()){ | |
| 89 | 89 | return []; | 
| 90 | 90 | } | 
| 91 | 91 | |
| @@ -103,7 +103,7 @@ discard block | ||
| 103 | 103 | $class = $property->getDeclaringClass(); | 
| 104 | 104 | |
| 105 | 105 | // Can not parse property of internal class | 
| 106 | -        if ($class->isInternal()) { | |
| 106 | +        if ($class->isInternal()){ | |
| 107 | 107 | return []; | 
| 108 | 108 | } | 
| 109 | 109 | |
| @@ -120,7 +120,7 @@ discard block | ||
| 120 | 120 | $class = $const->getDeclaringClass(); | 
| 121 | 121 | |
| 122 | 122 | // Can not parse internal classes | 
| 123 | -        if ($class->isInternal()) { | |
| 123 | +        if ($class->isInternal()){ | |
| 124 | 124 | return []; | 
| 125 | 125 | } | 
| 126 | 126 | |
| @@ -137,7 +137,7 @@ discard block | ||
| 137 | 137 | $function = $param->getDeclaringFunction(); | 
| 138 | 138 | |
| 139 | 139 | // Can not parse parameter of internal function | 
| 140 | -        if ($function->isInternal()) { | |
| 140 | +        if ($function->isInternal()){ | |
| 141 | 141 | return []; | 
| 142 | 142 | } | 
| 143 | 143 | |
| @@ -177,7 +177,7 @@ discard block | ||
| 177 | 177 | */ | 
| 178 | 178 | $line = $function->getEndLine(); | 
| 179 | 179 | |
| 180 | -        if ($result = $attributes[$line] ?? null) { | |
| 180 | +        if ($result = $attributes[$line] ?? null){ | |
| 181 | 181 | return $result; | 
| 182 | 182 | } | 
| 183 | 183 | |
| @@ -202,8 +202,8 @@ discard block | ||
| 202 | 202 | * $ast->getEndLine(); // 2 (last significant character of a function) | 
| 203 | 203 | * </code> | 
| 204 | 204 | */ | 
| 205 | -        while ($line-- > 0) { | |
| 206 | -            if ($result = $attributes[$line] ?? null) { | |
| 205 | +        while ($line-- > 0){ | |
| 206 | +            if ($result = $attributes[$line] ?? null){ | |
| 207 | 207 | return $result; | 
| 208 | 208 | } | 
| 209 | 209 | } | 
| @@ -218,8 +218,8 @@ discard block | ||
| 218 | 218 | */ | 
| 219 | 219 | private function format(iterable $attributes, ?string $name): iterable | 
| 220 | 220 |      { | 
| 221 | -        foreach ($attributes as $prototype) { | |
| 222 | -            if ($name !== null && ! \is_subclass_of($prototype->name, $name)) { | |
| 221 | +        foreach ($attributes as $prototype){ | |
| 222 | +            if ($name !== null && !\is_subclass_of($prototype->name, $name)){ | |
| 223 | 223 | continue; | 
| 224 | 224 | } | 
| 225 | 225 | |
| @@ -245,7 +245,7 @@ discard block | ||
| 245 | 245 | */ | 
| 246 | 246 | private function parseAttributes(string $file, int $context): array | 
| 247 | 247 |      { | 
| 248 | -        if (!isset($this->attributes[$file])) { | |
| 248 | +        if (!isset($this->attributes[$file])){ | |
| 249 | 249 | $found = $this->parser->parse($file); | 
| 250 | 250 | |
| 251 | 251 | $this->attributes[$file] = [ | 
| @@ -70,7 +70,8 @@ discard block | ||
| 70 | 70 |      { | 
| 71 | 71 | // 1) Can not parse internal classes | 
| 72 | 72 | // 2) Anonymous classes don't support attributes (PHP semantic) | 
| 73 | -        if ($class->isInternal() || $class->isAnonymous()) { | |
| 73 | + if ($class->isInternal() || $class->isAnonymous()) | |
| 74 | +        { | |
| 74 | 75 | return []; | 
| 75 | 76 | } | 
| 76 | 77 | |
| @@ -85,7 +86,8 @@ discard block | ||
| 85 | 86 | protected function getFunctionAttributes(\ReflectionFunctionAbstract $function, ?string $name): iterable | 
| 86 | 87 |      { | 
| 87 | 88 | // Can not parse internal functions | 
| 88 | -        if ($function->isInternal()) { | |
| 89 | + if ($function->isInternal()) | |
| 90 | +        { | |
| 89 | 91 | return []; | 
| 90 | 92 | } | 
| 91 | 93 | |
| @@ -103,7 +105,8 @@ discard block | ||
| 103 | 105 | $class = $property->getDeclaringClass(); | 
| 104 | 106 | |
| 105 | 107 | // Can not parse property of internal class | 
| 106 | -        if ($class->isInternal()) { | |
| 108 | + if ($class->isInternal()) | |
| 109 | +        { | |
| 107 | 110 | return []; | 
| 108 | 111 | } | 
| 109 | 112 | |
| @@ -120,7 +123,8 @@ discard block | ||
| 120 | 123 | $class = $const->getDeclaringClass(); | 
| 121 | 124 | |
| 122 | 125 | // Can not parse internal classes | 
| 123 | -        if ($class->isInternal()) { | |
| 126 | + if ($class->isInternal()) | |
| 127 | +        { | |
| 124 | 128 | return []; | 
| 125 | 129 | } | 
| 126 | 130 | |
| @@ -137,7 +141,8 @@ discard block | ||
| 137 | 141 | $function = $param->getDeclaringFunction(); | 
| 138 | 142 | |
| 139 | 143 | // Can not parse parameter of internal function | 
| 140 | -        if ($function->isInternal()) { | |
| 144 | + if ($function->isInternal()) | |
| 145 | +        { | |
| 141 | 146 | return []; | 
| 142 | 147 | } | 
| 143 | 148 | |
| @@ -177,7 +182,8 @@ discard block | ||
| 177 | 182 | */ | 
| 178 | 183 | $line = $function->getEndLine(); | 
| 179 | 184 | |
| 180 | -        if ($result = $attributes[$line] ?? null) { | |
| 185 | + if ($result = $attributes[$line] ?? null) | |
| 186 | +        { | |
| 181 | 187 | return $result; | 
| 182 | 188 | } | 
| 183 | 189 | |
| @@ -202,8 +208,10 @@ discard block | ||
| 202 | 208 | * $ast->getEndLine(); // 2 (last significant character of a function) | 
| 203 | 209 | * </code> | 
| 204 | 210 | */ | 
| 205 | -        while ($line-- > 0) { | |
| 206 | -            if ($result = $attributes[$line] ?? null) { | |
| 211 | + while ($line-- > 0) | |
| 212 | +        { | |
| 213 | + if ($result = $attributes[$line] ?? null) | |
| 214 | +            { | |
| 207 | 215 | return $result; | 
| 208 | 216 | } | 
| 209 | 217 | } | 
| @@ -218,8 +226,10 @@ discard block | ||
| 218 | 226 | */ | 
| 219 | 227 | private function format(iterable $attributes, ?string $name): iterable | 
| 220 | 228 |      { | 
| 221 | -        foreach ($attributes as $prototype) { | |
| 222 | -            if ($name !== null && ! \is_subclass_of($prototype->name, $name)) { | |
| 229 | + foreach ($attributes as $prototype) | |
| 230 | +        { | |
| 231 | + if ($name !== null && ! \is_subclass_of($prototype->name, $name)) | |
| 232 | +            { | |
| 223 | 233 | continue; | 
| 224 | 234 | } | 
| 225 | 235 | |
| @@ -245,7 +255,8 @@ discard block | ||
| 245 | 255 | */ | 
| 246 | 256 | private function parseAttributes(string $file, int $context): array | 
| 247 | 257 |      { | 
| 248 | -        if (!isset($this->attributes[$file])) { | |
| 258 | + if (!isset($this->attributes[$file])) | |
| 259 | +        { | |
| 249 | 260 | $found = $this->parser->parse($file); | 
| 250 | 261 | |
| 251 | 262 | $this->attributes[$file] = [ |