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