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