| Total Complexity | 2 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare( strict_types=1 ); |
||
| 7 | trait LoggerTrait { |
||
| 8 | /** |
||
| 9 | * Translate a LogLevel constant to an integer |
||
| 10 | * |
||
| 11 | * @param string $level |
||
| 12 | * @return int |
||
| 13 | */ |
||
| 14 | protected function levelToInt( string $level ) : int { |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @param string $level |
||
| 31 | * @param string $message |
||
| 32 | * @return string |
||
| 33 | */ |
||
| 34 | protected function getFormattedMessage( string $level, string $message ) { |
||
| 38 |