Total Complexity | 5 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | abstract class AbstractHeaderFormatter implements LogFormatterConcreteInterface |
||
25 | { |
||
26 | public function format(Request $request, ?Response $response, ?\Throwable $exception, ?string $message = null): string |
||
52 | } |
||
53 | |||
54 | abstract protected function getValue(Request $request, ?Response $response, string $matchedVar): string; |
||
55 | |||
56 | abstract protected function getPrefix(): string; |
||
57 | } |
||
58 |
In PHP, under loose comparison (like
==
, or!=
, orswitch
conditions), values of different types might be equal.For
integer
values, zero is a special case, in particular the following results might be unexpected: