| Conditions | 5 |
| Paths | 8 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public function afterAction($event) |
||
|
|
|||
| 27 | { |
||
| 28 | $response = Module::getInstance()->getServer()->getResponse(); |
||
| 29 | |||
| 30 | $isValid = true; |
||
| 31 | if ($response !== null) { |
||
| 32 | $isValid = $response->isInformational() || $response->isSuccessful() || $response->isRedirection(); |
||
| 33 | } |
||
| 34 | if (!$isValid) { |
||
| 35 | throw new HttpException( |
||
| 36 | $response->getStatusCode(), |
||
| 37 | $this->getErrorMessage($response), |
||
| 38 | $response->getParameter('error_uri') |
||
| 39 | ); |
||
| 40 | } |
||
| 41 | } |
||
| 42 | |||
| 55 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.