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 | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 20 |
Changes | 0 |
1 | <?php |
||
22 | protected static function getMetadatas(Reflector $reflector): array |
||
23 | { |
||
24 | $reader = self::getAnnotationReader(); |
||
25 | |||
26 | switch (true) { |
||
27 | case $reflector instanceof ReflectionClass: return $reader->getClassAnnotations($reflector); |
||
28 | case $reflector instanceof ReflectionMethod: return $reader->getMethodAnnotations($reflector); |
||
29 | case $reflector instanceof ReflectionProperty: return $reader->getPropertyAnnotations($reflector); |
||
30 | } |
||
31 | |||
32 | return []; |
||
33 | } |
||
50 |
This function has been deprecated. The supplier of the function has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.