GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

DbMigrationsServiceProvider   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 50
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 5

Importance

Changes 0
Metric Value
wmc 3
lcom 1
cbo 5
dl 0
loc 50
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 5 1
A register() 0 12 1
A provides() 0 4 1
1
<?php
2
3
namespace Elimuswift\DbExporter;
4
5
use Illuminate\Support\ServiceProvider;
6
use Illuminate\Support\Facades\Config;
7
use Illuminate\Foundation\AliasLoader;
8
9
class DbMigrationsServiceProvider extends ServiceProvider
10
{
11
    /**
12
     * Indicates if loading of the provider is deferred.
13
     *
14
     * @var bool
15
     */
16
    protected $defer = false;
17
18
    /**
19
     * Bootstrap the application events.
20
     */
21
    public function boot()
22
    {
23
        $loader = AliasLoader::getInstance();
24
        $loader->alias('DbMigrations', 'Facades\DbMigrations');
25
    }
26
27
//end boot()
28
29
    /**
30
     * Register the service provider.
31
     */
32
    public function register()
33
    {
34
        $this->app->singleton(
35
            DbMigrations::class,
36
            function() {
37
                $connType = Config::get('database.default');
38
                $database = Config::get('database.connections.' . $connType);
39
40
                return new DbMigrations($database['database']);
41
            }
42
        );
43
    }
44
45
//end register()
46
47
    /**
48
     * Get the services provided by the provider.
49
     *
50
     * @return array
51
     */
52
    public function provides()
53
    {
54
        return ['DbMigrations'];
55
    }
56
57
//end provides()
58
}//end class
59