Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
26 | public function indexAction() |
||
27 | { |
||
28 | $params = ['page' => 'page-basket-index']; |
||
29 | |||
30 | foreach( app( 'config' )->get( 'shop.page.basket-index' ) as $name ) |
||
31 | { |
||
32 | $params['aiheader'][$name] = Shop::get( $name )->header(); |
||
|
|||
33 | $params['aibody'][$name] = Shop::get( $name )->body(); |
||
34 | } |
||
35 | |||
36 | return Response::view( Shop::template( 'basket.index' ), $params ) |
||
37 | ->header( 'Cache-Control', 'no-store, , max-age=0' ); |
||
38 | } |
||
39 | } |
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.