| Conditions | 3 | 
| Paths | 4 | 
| Total Lines | 10 | 
| Code Lines | 4 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 36 | function getClassName($class, $short = false, string $default = null): string  | 
            ||
| 37 | { | 
            ||
| 38 | // Attempt to resolve the $class's name  | 
            ||
| 39 |     try { | 
            ||
| 40 |         return (new ReflectionClass($class))->{$short ? 'getShortName' : 'getName'}(); | 
            ||
| 41 | }  | 
            ||
| 42 | |||
| 43 | // Return $default  | 
            ||
| 44 |     catch (ReflectionException $e) { | 
            ||
| 45 | return $default;  | 
            ||
| 46 | }  | 
            ||
| 70 |