| Conditions | 4 |
| Paths | 4 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 4 |
| Changes | 0 | ||
| 1 | <?php |
||
| 49 | 6 | private function getLongTypeFromType(string $type): string |
|
| 50 | { |
||
| 51 | 6 | $reflection = new \ReflectionObject($this); |
|
| 52 | 6 | foreach ($reflection->getConstants() as $const => $value) { |
|
| 53 | 6 | if (0 === strpos($const, 'TYPE_')) { |
|
| 54 | 6 | if ($type === $value) { |
|
| 55 | 6 | return strtolower(substr($const, 5)); |
|
| 56 | } |
||
| 57 | } |
||
| 58 | } |
||
| 59 | |||
| 60 | 1 | return 'info'; |
|
| 61 | } |
||
| 62 | |||
| 98 |