use LaravelZero\Framework\Contracts\Commands\Component\Installer as InstallerContract;
7
use LaravelZero\Framework\Commands\Component\Installer as BaseInstaller;
8
9
class Installer extends BaseInstaller implements InstallerContract
10
{
11
/**
12
* {@inheritdoc}
13
*/
14
protected $name = 'install:events';
15
16
/**
17
* {@inheritdoc}
18
*/
19
protected $description = 'Installs the illuminate/events related generator commands';
20
21
/**
22
* {@inheritdoc}
23
*/
24
public function getComponentName(): string
25
{
26
return 'events';
27
}
28
29
/**
30
* {@inheritdoc}
31
*/
32
public function install(): bool
33
{
34
$this->installServiceProvider();
35
36
$this->info('Base Component installed! For usage information please reference the Laravel Framework documentation, here: https://laravel.com/docs/5.5/events');
37
38
return true;
39
}
40
41
/**
42
* Installs the application-level EventServiceProvider where users can register their
The call to Application::basePath() has too many arguments starting with 'app'.
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.
In this case you can add the @ignorePhpDoc
annotation to the duplicate definition and it will be ignored.
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.
In this case you can add the
@ignore
PhpDoc annotation to the duplicate definition and it will be ignored.