Passed
Push — master ( fb8735...9c9a31 )
by Aimeos
05:27
created

src/Facades/Basket.php (1 issue)

Labels
Severity
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
The call to Psr\Container\ContainerInterface::get() has too few arguments starting with id. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

24
		return \Aimeos\Controller\Frontend::create( app( 'aimeos.context' )->/** @scrutinizer ignore-call */ get(), 'basket' );

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.

Loading history...
25
	}
26
}
27