Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
28 | 7 | private static function getFunctionName(\ReflectionFunctionAbstract $reflection) : string |
|
29 | { |
||
30 | 7 | $name = $reflection->name.'()'; |
|
31 | |||
32 | 7 | if ($reflection instanceof \ReflectionMethod) { |
|
33 | 6 | $name = $reflection->getDeclaringClass()->name.'::'.$name; |
|
34 | } |
||
35 | |||
36 | 7 | return $name; |
|
37 | } |
||
38 | } |
||
39 |