Total Complexity | 3 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
24 | class AccountController extends Controller |
||
25 | { |
||
26 | /** |
||
27 | * Returns the html for the "My account" page. |
||
28 | * |
||
29 | * @return \Illuminate\Http\Response Response object with output and headers |
||
30 | */ |
||
31 | public function indexAction() |
||
40 | } |
||
41 | |||
42 | |||
43 | /** |
||
44 | * Returns the html for the "My account" download page. |
||
45 | * |
||
46 | * @return \Illuminate\Contracts\View\View View for rendering the output |
||
47 | */ |
||
48 | public function downloadAction() |
||
52 | } |
||
53 | } |
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.