| Conditions | 7 |
| Paths | 7 |
| Total Lines | 33 |
| Code Lines | 23 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 21 |
| CRAP Score | 7 |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | 13 | public function __invoke(Method $method, Str $arguments): StreamInterface |
|
| 29 | { |
||
| 30 | switch (true) { |
||
| 31 | 13 | case Methods::get('connection.start')->equals($method): |
|
|
1 ignored issue
–
show
|
|||
| 32 | 2 | $visit = $this->start(); |
|
| 33 | 2 | break; |
|
| 34 | |||
| 35 | 11 | case Methods::get('connection.secure')->equals($method): |
|
|
1 ignored issue
–
show
|
|||
| 36 | 2 | $visit = $this->secure(); |
|
| 37 | 2 | break; |
|
| 38 | |||
| 39 | 9 | case Methods::get('connection.tune')->equals($method): |
|
|
1 ignored issue
–
show
|
|||
| 40 | 2 | $visit = $this->tune(); |
|
| 41 | 2 | break; |
|
| 42 | |||
| 43 | 7 | case Methods::get('connection.open-ok')->equals($method): |
|
|
1 ignored issue
–
show
|
|||
| 44 | 2 | $visit = $this->openOk(); |
|
| 45 | 2 | break; |
|
| 46 | |||
| 47 | 5 | case Methods::get('connection.close')->equals($method): |
|
|
1 ignored issue
–
show
|
|||
| 48 | 2 | $visit = $this->close(); |
|
| 49 | 2 | break; |
|
| 50 | |||
| 51 | 3 | case Methods::get('connection.close-ok')->equals($method): |
|
|
1 ignored issue
–
show
|
|||
| 52 | 2 | $visit = $this->closeOk(); |
|
| 53 | 2 | break; |
|
| 54 | |||
| 55 | default: |
||
| 56 | 1 | throw new UnknownMethod($method); |
|
| 57 | } |
||
| 58 | |||
| 59 | 12 | return $visit($arguments); |
|
| 60 | } |
||
| 61 | |||
| 111 |
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.