Total Complexity | 7 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Coverage | 77.78% |
Changes | 0 |
1 | <?php |
||
17 | class Logger |
||
18 | { |
||
19 | /** |
||
20 | * @var HandlerInterface |
||
21 | */ |
||
22 | 14 | private $handler; |
|
23 | |||
24 | 14 | public function __construct(HandlerInterface $handler) |
|
25 | 14 | { |
|
26 | $this->handler = $handler; |
||
27 | 9 | } |
|
28 | |||
29 | 9 | public function log(string $message): void |
|
32 | } |
||
33 | |||
34 | public function callback(Host $host): \Closure |
||
38 | }; |
||
39 | 9 | } |
|
40 | |||
41 | 9 | public function printBuffer(Host $host, string $type, string $buffer): void |
|
45 | } |
||
46 | 9 | } |
|
47 | |||
48 | 9 | public function writeln(Host $host, string $type, string $line): void |
|
58 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.