Conditions | 4 |
Paths | 4 |
Total Lines | 21 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Tests | 12 |
CRAP Score | 4 |
Changes | 0 |
1 | <?php |
||
22 | 7 | public function __invoke(Method $method, Str $arguments): StreamInterface |
|
23 | { |
||
24 | switch (true) { |
||
25 | 7 | case Methods::get('tx.select-ok')->equals($method): |
|
1 ignored issue
–
show
|
|||
26 | 2 | $visit = $this->selectOk(); |
|
27 | 2 | break; |
|
28 | |||
29 | 5 | case Methods::get('tx.commit-ok')->equals($method): |
|
1 ignored issue
–
show
|
|||
30 | 2 | $visit = $this->commitOk(); |
|
31 | 2 | break; |
|
32 | |||
33 | 3 | case Methods::get('tx.rollback-ok')->equals($method): |
|
1 ignored issue
–
show
|
|||
34 | 2 | $visit = $this->rollbackOk(); |
|
35 | 2 | break; |
|
36 | |||
37 | default: |
||
38 | 1 | throw new UnknownMethod($method); |
|
39 | } |
||
40 | |||
41 | 6 | return $visit($arguments); |
|
42 | } |
||
43 | |||
59 |
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.