| Total Complexity | 6 | 
| Total Lines | 57 | 
| Duplicated Lines | 0 % | 
| Coverage | 100% | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 13 | class MonologFormatterAdapter implements FormatterInterface  | 
            ||
| 14 | { | 
            ||
| 15 | /**  | 
            ||
| 16 | * @var mixed  | 
            ||
| 17 | */  | 
            ||
| 18 | protected $newLevel;  | 
            ||
| 19 | |||
| 20 | /**  | 
            ||
| 21 | * @var FormatterInterface  | 
            ||
| 22 | */  | 
            ||
| 23 | protected $formatter;  | 
            ||
| 24 | |||
| 25 | 2 | public function __construct(  | 
            |
| 31 | 2 | }  | 
            |
| 32 | |||
| 33 | /**  | 
            ||
| 34 | * Formats a log record.  | 
            ||
| 35 | *  | 
            ||
| 36 | * @param array $record A record to format  | 
            ||
| 37 | * @return mixed The formatted record  | 
            ||
| 38 | */  | 
            ||
| 39 | 1 | public function format(array $record)  | 
            |
| 44 | }  | 
            ||
| 45 | |||
| 46 | /**  | 
            ||
| 47 | * @param array $record  | 
            ||
| 48 | * @return array  | 
            ||
| 49 | */  | 
            ||
| 50 | 2 | protected function fixRecord(array $record)  | 
            |
| 51 |     { | 
            ||
| 52 | 2 |         if (isset($record['level']) && $record['level'] === Logger::WORKFLOW) { | 
            |
| 53 | 2 | $record['level'] = $this->newLevel;  | 
            |
| 54 | }  | 
            ||
| 55 | |||
| 56 | 2 | return $record;  | 
            |
| 57 | }  | 
            ||
| 58 | |||
| 59 | /**  | 
            ||
| 60 | * Formats a set of log records.  | 
            ||
| 61 | *  | 
            ||
| 62 | * @param array $records A set of records to format  | 
            ||
| 63 | * @return mixed The formatted set of records  | 
            ||
| 64 | */  | 
            ||
| 65 | 1 | public function formatBatch(array $records)  | 
            |
| 70 | }  | 
            ||
| 71 | }  | 
            ||
| 72 |