Conditions | 9 |
Paths | 9 |
Total Lines | 41 |
Code Lines | 29 |
Lines | 0 |
Ratio | 0 % |
Tests | 27 |
CRAP Score | 9 |
Changes | 0 |
1 | <?php |
||
27 | 17 | public function __invoke(Method $method, Str $arguments): StreamInterface |
|
28 | { |
||
29 | switch (true) { |
||
30 | 17 | case Methods::get('basic.qos-ok')->equals($method): |
|
1 ignored issue
–
show
|
|||
31 | 2 | $visit = $this->qosOk(); |
|
32 | 2 | break; |
|
33 | |||
34 | 15 | case Methods::get('basic.consume-ok')->equals($method): |
|
1 ignored issue
–
show
|
|||
35 | 2 | $visit = $this->consumeOk(); |
|
36 | 2 | break; |
|
37 | |||
38 | 13 | case Methods::get('basic.cancel-ok')->equals($method): |
|
1 ignored issue
–
show
|
|||
39 | 2 | $visit = $this->cancelOk(); |
|
40 | 2 | break; |
|
41 | |||
42 | 11 | case Methods::get('basic.return')->equals($method): |
|
1 ignored issue
–
show
|
|||
43 | 2 | $visit = $this->return(); |
|
44 | 2 | break; |
|
45 | |||
46 | 9 | case Methods::get('basic.deliver')->equals($method): |
|
1 ignored issue
–
show
|
|||
47 | 2 | $visit = $this->deliver(); |
|
48 | 2 | break; |
|
49 | |||
50 | 7 | case Methods::get('basic.get-ok')->equals($method): |
|
1 ignored issue
–
show
|
|||
51 | 2 | $visit = $this->getOk(); |
|
52 | 2 | break; |
|
53 | |||
54 | 5 | case Methods::get('basic.get-empty')->equals($method): |
|
1 ignored issue
–
show
|
|||
55 | 2 | $visit = $this->getEmpty(); |
|
56 | 2 | break; |
|
57 | |||
58 | 3 | case Methods::get('basic.recover-ok')->equals($method): |
|
1 ignored issue
–
show
|
|||
59 | 2 | $visit = $this->recoverOk(); |
|
60 | 2 | break; |
|
61 | |||
62 | default: |
||
63 | 1 | throw new UnknownMethod($method); |
|
64 | } |
||
65 | |||
66 | 16 | return $visit($arguments); |
|
67 | } |
||
68 | |||
130 |
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.