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.
Completed
Push — master ( 801023...41669e )
by Pascal
01:50 queued 49s
created

ServiceProvider   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 0
Metric Value
wmc 4
lcom 1
cbo 2
dl 0
loc 36
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 21 3
A register() 0 5 1
1
<?php
2
3
namespace ProtoneMedia\LaravelVerifyNewEmail;
4
5
use Illuminate\Support\ServiceProvider as BaseServiceProvider;
6
7
class ServiceProvider extends BaseServiceProvider
8
{
9
    /**
10
     * Bootstrap the application services.
11
     */
12
    public function boot()
13
    {
14
        $this->loadViewsFrom(__DIR__ . '/../resources/views', 'verify-new-email');
15
        $this->loadMigrationsFrom(__DIR__ . '/../database/migrations');
16
17
        if (!config('verify-new-email.route')) {
18
            $this->loadRoutesFrom(__DIR__ . '/routes.php');
19
        }
20
21
        if ($this->app->runningInConsole()) {
22
            $this->publishes([
23
                __DIR__ . '/../config/config.php' => config_path('verify-new-email.php'),
24
            ], 'config');
25
26
            $this->publishes([
27
                __DIR__ . '/../resources/views' => resource_path('views/vendor/verify-new-email'),
28
            ], 'views');
29
30
            // $this->commands([]);
31
        }
32
    }
33
34
    /**
35
     * Register the application services.
36
     */
37
    public function register()
38
    {
39
        // Automatically apply the package configuration
40
        $this->mergeConfigFrom(__DIR__ . '/../config/config.php', 'verify-new-email');
41
    }
42
}
43