Total Complexity | 5 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
21 | abstract class AbstractFormatter implements FormatterInterface |
||
22 | { |
||
23 | /** |
||
24 | * Interpolates context values into the message placeholders |
||
25 | * |
||
26 | * @see http://www.php-fig.org/psr/psr-3/ Section 1.2 Message |
||
27 | * |
||
28 | * @param string $message |
||
29 | * @param array|null $context |
||
30 | * |
||
31 | * @return string |
||
32 | */ |
||
33 | 30 | public function interpolate(string $message, $context = null): string |
|
45 | } |
||
46 | /** |
||
47 | * Returns the date formatted for the logger. |
||
48 | * @todo Not using the set time from the Item since we have interface |
||
49 | * misalignment which will break semver This will change in the future |
||
50 | */ |
||
51 | 27 | protected function getFormattedDate(): string |
|
59 |