| Conditions | 3 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | public function accessForbidden($withoutLayout = false, $message = '') |
||
|
|
|||
| 28 | { |
||
| 29 | if ($this->request->isAjax()) { |
||
| 30 | $this->response->json(['message' => $message ?: t('Access Forbidden')], 403); |
||
| 31 | } else { |
||
| 32 | $this->response->html($this->template->render('errors/403', [ |
||
| 33 | 'title' => t('Access Forbidden'), |
||
| 34 | ]), 403); |
||
| 35 | } |
||
| 36 | } |
||
| 37 | |||
| 50 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.