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