Completed
Push — master ( dff24c...6b83c1 )
by Troy
01:21
created

MultiTenantServiceProvider::boot()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 16
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 16
rs 9.4285
cc 2
eloc 5
nc 2
nop 0
1
<?php
2
3
namespace MultiTenantLaravel;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class MultiTenantServiceProvider extends ServiceProvider
8
{
9
    /**
10
     * Bootstrap the application services.
11
     */
12
    public function boot()
13
    {
14
        if ($this->app->runningInConsole()) {
15
            $this->publishes([
16
                __DIR__.'/../config/multi-tenant.php' => config_path('multi-tenant.php'),
17
            ], 'config');
18
19
            /*
0 ignored issues
show
Unused Code Comprehensibility introduced by
65% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
20
            $this->loadViewsFrom(__DIR__.'/../resources/views', 'skeleton');
21
22
            $this->publishes([
23
                __DIR__.'/../resources/views' => base_path('resources/views/vendor/skeleton'),
24
            ], 'views');
25
            */
26
        }
27
    }
28
29
    /**
30
     * Register the application services.
31
     */
32
    public function register()
33
    {
34
        $this->mergeConfigFrom(__DIR__.'/../config/config.php', 'multi-tenant');
35
    }
36
}
37