Total Complexity | 3 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
19 | class AccountController extends Controller |
||
20 | { |
||
21 | /** |
||
22 | * Returns the html for the "My account" page. |
||
23 | * |
||
24 | * @return \Illuminate\Http\Response Response object with output and headers |
||
25 | */ |
||
26 | public function indexAction() |
||
38 | } |
||
39 | |||
40 | |||
41 | /** |
||
42 | * Returns the html for the "My account" download page. |
||
43 | * |
||
44 | * @return \Illuminate\Contracts\View\View View for rendering the output |
||
45 | */ |
||
46 | public function downloadAction() |
||
50 | } |
||
51 | } |
This check compares calls to functions or methods with their respective definitions. If the call has more arguments than are defined, it raises an issue.
If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress. Please note the @ignore annotation hint above.