ServiceProvider   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 46
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 17
c 1
b 0
f 0
dl 0
loc 46
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 19 1
A register() 0 13 1
1
<?php
2
3
namespace Rexlabs\Laravel\Smokescreen\Providers;
4
5
use Illuminate\Support\ServiceProvider as BaseServiceProvider;
6
use Rexlabs\Laravel\Smokescreen\Console\MakeTransformerCommand;
7
use Rexlabs\Laravel\Smokescreen\Smokescreen;
8
9
class ServiceProvider extends BaseServiceProvider
10
{
11
    /**
12
     * Bootstrap the application services.
13
     *
14
     * @return void
15
     */
16
    public function boot()
17
    {
18
        $this->publishes(
0 ignored issues
show
Bug introduced by
The method publishes() does not exist on Rexlabs\Laravel\Smokescr...oviders\ServiceProvider. ( Ignorable by Annotation )

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

18
        $this->/** @scrutinizer ignore-call */ 
19
               publishes(

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...
19
            [
20
            __DIR__ . '/../../config/smokescreen.php' => config_path('smokescreen.php'),
21
            ],
22
            'config'
23
        );
24
25
        $this->publishes(
26
            [
27
            __DIR__ . '/../../stubs' => resource_path('views/vendor/smokescreen'),
28
            ],
29
            'stub'
30
        );
31
32
        $this->loadViewsFrom(__DIR__ . '/../../stubs', 'smokescreen');
0 ignored issues
show
Bug introduced by
The method loadViewsFrom() does not exist on Rexlabs\Laravel\Smokescr...oviders\ServiceProvider. ( Ignorable by Annotation )

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

32
        $this->/** @scrutinizer ignore-call */ 
33
               loadViewsFrom(__DIR__ . '/../../stubs', 'smokescreen');

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...
33
34
        $this->commands(MakeTransformerCommand::class);
0 ignored issues
show
Bug introduced by
The method commands() does not exist on Rexlabs\Laravel\Smokescr...oviders\ServiceProvider. ( Ignorable by Annotation )

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

34
        $this->/** @scrutinizer ignore-call */ 
35
               commands(MakeTransformerCommand::class);

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...
35
    }
36
37
    /**
38
     * Register the application services.
39
     *
40
     * @return void
41
     */
42
    public function register()
43
    {
44
        $this->app->singleton(
0 ignored issues
show
Bug introduced by
The method singleton() 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

44
        $this->app->/** @scrutinizer ignore-call */ 
45
                    singleton(

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...
45
            Smokescreen::class,
46
            function () {
47
                return new Smokescreen(new \Rexlabs\Smokescreen\Smokescreen(), config('smokescreen', []));
48
            }
49
        );
50
        $this->app->alias(Smokescreen::class, 'smokescreen');
0 ignored issues
show
Bug introduced by
The method alias() 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

50
        $this->app->/** @scrutinizer ignore-call */ 
51
                    alias(Smokescreen::class, 'smokescreen');

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...
51
52
        $this->mergeConfigFrom(
0 ignored issues
show
Bug introduced by
The method mergeConfigFrom() does not exist on Rexlabs\Laravel\Smokescr...oviders\ServiceProvider. ( Ignorable by Annotation )

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

52
        $this->/** @scrutinizer ignore-call */ 
53
               mergeConfigFrom(

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...
53
            __DIR__ . '/../../config/smokescreen.php',
54
            'smokescreen'
55
        );
56
    }
57
}
58