Conditions | 3 |
Paths | 3 |
Total Lines | 17 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 2 |
CRAP Score | 7.2349 |
Changes | 0 |
1 | <?php |
||
22 | 1 | public function __invoke(Method $method, Str $arguments): StreamInterface |
|
23 | { |
||
24 | switch (true) { |
||
25 | 1 | case Methods::get('exchange.declare-ok')->equals($method): |
|
26 | $visit = $this->declareOk(); |
||
27 | break; |
||
28 | |||
29 | case Methods::get('exchange.delete-ok')->equals($method): |
||
30 | $visit = $this->deleteOk(); |
||
31 | break; |
||
32 | |||
33 | default: |
||
34 | throw new UnknownMethod($method); |
||
35 | } |
||
36 | |||
37 | 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.