| Conditions | 5 |
| Paths | 5 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 45 | protected function callRequestMethod(RequestInterface $request, $method, array $arguments) |
||
| 46 | { |
||
| 47 | switch (count($arguments)) { |
||
| 48 | case 1: return $request->{$method}($arguments[0]); |
||
| 49 | case 2: return $request->{$method}($arguments[0], $arguments[1]); |
||
| 50 | case 3: return $request->{$method}($arguments[0], $arguments[1], $arguments[2]); |
||
| 51 | case 4: return $request->{$method}($arguments[0], $arguments[1], $arguments[2], $arguments[3], $arguments[4]); |
||
| 52 | default: return $request->{$method}($arguments); |
||
| 53 | } |
||
| 54 | } |
||
| 55 | } |
According to the PSR-2, the body of a case statement must start on the line immediately following the case statement.
}
To learn more about the PSR-2 coding standard, please refer to the PHP-Fig.