| Conditions | 3 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 42 | 3 | public function increment_clicks($ad_id) |
|
| 43 | { |
||
| 44 | 3 | if ($this->request->is_ajax() && !empty($ad_id)) |
|
| 45 | 3 | { |
|
| 46 | 1 | $this->manager->increment_ad_clicks($ad_id); |
|
| 47 | |||
| 48 | 1 | return new \Symfony\Component\HttpFoundation\JsonResponse(); |
|
| 49 | } |
||
| 50 | |||
| 51 | 2 | throw new \phpbb\exception\http_exception(403, 'NOT_AUTHORISED'); |
|
| 52 | } |
||
| 53 | } |
||
| 54 |