We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
1 | <?php |
||
11 | class CampaignController extends Controller |
||
12 | { |
||
13 | /** |
||
14 | * Initialize the class |
||
15 | * and set the middleware |
||
16 | */ |
||
17 | public function __construct() |
||
21 | |||
22 | /** |
||
23 | * Get all campaigns |
||
24 | * 20 queries per page |
||
25 | * |
||
26 | * @return \Illuminate\Http\JsonResponse |
||
27 | */ |
||
28 | public function index() |
||
32 | |||
33 | /** |
||
34 | * Get all details of a campaign |
||
35 | * |
||
36 | * @param integer $id |
||
|
|||
37 | * @return \Illuminate\Http\JsonResponse |
||
38 | */ |
||
39 | public function show($campaign) |
||
45 | |||
46 | } |
||
47 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.