We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
Conditions | 5 |
Paths | 5 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
19 | public static function getMetadatas(Reflector $reflector): array |
||
20 | { |
||
21 | $attributes = []; |
||
22 | |||
23 | switch (true) { |
||
24 | case $reflector instanceof ReflectionClass: |
||
25 | case $reflector instanceof ReflectionMethod: |
||
26 | case $reflector instanceof ReflectionProperty: |
||
27 | case $reflector instanceof ReflectionClassConstant: |
||
28 | $attributes = $reflector->getAttributes(); |
||
|
|||
29 | } |
||
30 | |||
31 | // @phpstan-ignore-next-line |
||
32 | return array_map(fn (ReflectionAttribute $attribute) => $attribute->newInstance(), $attributes); |
||
33 | } |
||
35 |