Total Complexity | 5 |
Total Lines | 19 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
11 | trait CanMockHandler |
||
12 | { |
||
13 | private function mockHandler(callable $assertion = null): RequestHandlerInterface |
||
14 | { |
||
15 | return new class($assertion) implements RequestHandlerInterface |
||
16 | { |
||
17 | /** @var callable */ |
||
18 | private $assertion; |
||
19 | |||
20 | public function __construct(?callable $assertion) |
||
30 | } |
||
31 | }; |
||
32 | } |
||
34 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.