1 | <?php |
||
2 | |||
3 | /** |
||
4 | * @license MIT, http://opensource.org/licenses/MIT |
||
5 | * @copyright Aimeos (aimeos.org), 2019-2023 |
||
6 | */ |
||
7 | |||
8 | |||
9 | namespace Aimeos\Shop\Facades; |
||
10 | |||
11 | |||
12 | /** |
||
13 | * Returns the basket frontend controller |
||
14 | */ |
||
15 | class Basket extends \Illuminate\Support\Facades\Facade |
||
16 | { |
||
17 | /** |
||
18 | * Returns a new basket frontend controller object |
||
19 | * |
||
20 | * @return \Aimeos\Controller\Frontend\Basket\Iface |
||
21 | */ |
||
22 | protected static function getFacadeAccessor() |
||
23 | { |
||
24 | return \Aimeos\Controller\Frontend::create( app( 'aimeos.context' )->get(), 'basket' ); |
||
0 ignored issues
–
show
|
|||
25 | } |
||
26 | } |
||
27 |
This check compares calls to functions or methods with their respective definitions. If the call has less 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.