Conditions | 3 |
Paths | 3 |
Total Lines | 17 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
22 | 5 | public function __invoke(Method $method, Str $arguments): StreamInterface |
|
23 | { |
||
24 | switch (true) { |
||
25 | 5 | case Methods::get('exchange.declare-ok')->equals($method): |
|
1 ignored issue
–
show
|
|||
26 | 2 | $visit = $this->declareOk(); |
|
27 | 2 | break; |
|
28 | |||
29 | 3 | case Methods::get('exchange.delete-ok')->equals($method): |
|
1 ignored issue
–
show
|
|||
30 | 2 | $visit = $this->deleteOk(); |
|
31 | 2 | break; |
|
32 | |||
33 | default: |
||
34 | 1 | throw new UnknownMethod($method); |
|
35 | } |
||
36 | |||
37 | 4 | return $visit($arguments); |
|
38 | } |
||
39 | |||
50 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.