MakeServiceServiceProvider::boot()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 11
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 5
Bugs 0 Features 0
Metric Value
cc 2
eloc 9
c 5
b 0
f 0
nc 2
nop 0
dl 0
loc 11
rs 9.9666
1
<?php
2
3
namespace Ikechukwukalu\Makeservice;
4
5
use Illuminate\Support\ServiceProvider;
6
use Ikechukwukalu\Makeservice\Console\Commands\MakeActionCommand;
7
use Ikechukwukalu\Makeservice\Console\Commands\MakeEnumCommand;
8
use Ikechukwukalu\Makeservice\Console\Commands\MakeFacadeCommand;
9
use Ikechukwukalu\Makeservice\Console\Commands\MakeInterfaceCommand;
10
use Ikechukwukalu\Makeservice\Console\Commands\MakeRepositoryCommand;
11
use Ikechukwukalu\Makeservice\Console\Commands\MakeServiceCommand;
12
use Ikechukwukalu\Makeservice\Console\Commands\MakeTraitCommand;
13
14
class MakeServiceServiceProvider extends ServiceProvider
15
{
16
17
    /**
18
     * Bootstrap the application services.
19
     *
20
     * @return void
21
     */
22
    public function boot()
23
    {
24
        if ($this->app->runningInConsole()) {
0 ignored issues
show
Bug introduced by
The method runningInConsole() does not exist on Tests\Laravel\App. ( Ignorable by Annotation )

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

24
        if ($this->app->/** @scrutinizer ignore-call */ runningInConsole()) {

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
25
            $this->commands([
0 ignored issues
show
Bug introduced by
The method commands() does not exist on Ikechukwukalu\Makeservic...eServiceServiceProvider. ( Ignorable by Annotation )

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

25
            $this->/** @scrutinizer ignore-call */ 
26
                   commands([

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
26
                MakeActionCommand::class,
27
                MakeEnumCommand::class,
28
                MakeFacadeCommand::class,
29
                MakeInterfaceCommand::class,
30
                MakeRepositoryCommand::class,
31
                MakeServiceCommand::class,
32
                MakeTraitCommand::class
33
            ]);
34
        }
35
    }
36
37
    /**
38
     * Register the application services.
39
     *
40
     * @return void
41
     */
42
    public function register()
43
    {
44
        //
45
    }
46
}
47