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

MultiTenantServiceProvider   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 30
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 16 2
A register() 0 4 1
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