Conditions | 3 |
Paths | 2 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
46 | 7 | public function format(array $record) |
|
47 | { |
||
48 | 7 | $output = trim(parent::format($record)); |
|
49 | |||
50 | 7 | if ($this->maxLength !== null && strlen($output) > $this->maxLength) { |
|
51 | 1 | $output = substr($output, 0, $this->maxLength - 3) . '...'; |
|
52 | } |
||
53 | |||
54 | 7 | return $output; |
|
55 | } |
||
56 | } |
||
57 |