Should the return type not be \Symfony\Component\HttpFoundation\JsonResponse?
This check compares the return type specified in the @return annotation of a function
or method doc comment with the types returned by the function and raises an issue if they
mismatch.
Loading history...
46
*/
47
public function increment_clicks($ad_id)
48
{
49
if ($this->request->is_ajax() && !empty($ad_id))
50
{
51
$this->manager->increment_ad_clicks($ad_id);
52
53
return new \Symfony\Component\HttpFoundation\JsonResponse();
54
}
55
56
throw new \phpbb\exception\http_exception(403, 'NOT_AUTHORISED');
This check compares the return type specified in the
@returnannotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.