Conditions | 6 |
Paths | 6 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
17 | public function export(array $messages): void |
||
18 | { |
||
19 | foreach ($messages as $message) { |
||
20 | foreach ($message as $msg) { |
||
21 | if (is_string($msg)) { |
||
22 | $msg = explode($this->split, trim($msg)); |
||
23 | } |
||
24 | if (!empty($this->levelList) && !in_array(strtolower($msg[$this->levelIndex]), $this->levelList)) { |
||
25 | continue; |
||
26 | } |
||
27 | ArrayHelper::remove($msg, '%c'); |
||
28 | echo implode($this->split, $msg) . PHP_EOL; |
||
29 | } |
||
32 | } |