LaravelRebuildServiceProvider   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 1
Metric Value
eloc 8
c 2
b 0
f 1
dl 0
loc 29
rs 10
wmc 3

2 Methods

Rating   Name   Duplication   Size   Complexity  
A register() 0 2 1
A boot() 0 13 2
1
<?php
2
3
namespace BukanKalengKaleng\LaravelRebuild;
4
5
use BukanKalengKaleng\LaravelRebuild\Console\Commands\Rebuild;
6
use Illuminate\Support\ServiceProvider;
7
8
class LaravelRebuildServiceProvider extends ServiceProvider
9
{
10
    /**
11
     * Bootstrap services.
12
     *
13
     * @return void
14
     */
15
    public function boot()
16
    {
17
        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

17
        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...
18
            $this->commands([
0 ignored issues
show
Bug introduced by
The method commands() does not exist on BukanKalengKaleng\Larave...lRebuildServiceProvider. ( 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
                   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...
19
                Rebuild::class,
20
            ]);
21
        }
22
23
        $this->publishes([
0 ignored issues
show
Bug introduced by
The method publishes() does not exist on BukanKalengKaleng\Larave...lRebuildServiceProvider. ( Ignorable by Annotation )

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

23
        $this->/** @scrutinizer ignore-call */ 
24
               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...
24
            __DIR__.'/../config/rebuild.php' => config_path('rebuild.php'),
25
        ], 'laravel-rebuild');
26
27
        $this->mergeConfigFrom(__DIR__.'/../config/rebuild.php', 'rebuild');
0 ignored issues
show
Bug introduced by
The method mergeConfigFrom() does not exist on BukanKalengKaleng\Larave...lRebuildServiceProvider. ( Ignorable by Annotation )

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

27
        $this->/** @scrutinizer ignore-call */ 
28
               mergeConfigFrom(__DIR__.'/../config/rebuild.php', 'rebuild');

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...
28
    }
29
30
    /**
31
     * Register services.
32
     *
33
     * @return void
34
     */
35
    public function register()
36
    {
37
        //
38
    }
39
}
40