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