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 ( 3c14c6...dd6b89 )
by Marc
7s
created

LaravelLocalizationServiceProvider   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 53
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 2

Importance

Changes 15
Bugs 5 Features 2
Metric Value
wmc 3
c 15
b 5
f 2
lcom 1
cbo 2
dl 0
loc 53
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A provides() 0 4 1
A boot() 0 6 1
A register() 0 15 1
1
<?php namespace Mcamara\LaravelLocalization;
2
3
use Illuminate\Support\ServiceProvider;
4
5
class LaravelLocalizationServiceProvider extends ServiceProvider {
6
7
    /**
8
     * Indicates if loading of the provider is deferred.
9
     *
10
     * @var bool
11
     */
12
    protected $defer = false;
13
14
    /**
15
     * Bootstrap the application events.
16
     *
17
     * @return void
18
     */
19
    public function boot()
20
    {
21
        $this->publishes([
22
            __DIR__ . '/../../config/config.php' => config_path('laravellocalization.php'),
23
        ], 'config');
24
    }
25
26
    /**
27
     * Get the services provided by the provider.
28
     *
29
     * @return array
30
     */
31
    public function provides()
32
    {
33
        return ['modules.handler', 'modules'];
34
    }
35
36
37
    /**
38
     * Register the service provider.
39
     *
40
     * @return void
41
     */
42
    public function register()
43
    {
44
        $packageConfigFile = __DIR__ . '/../../config/config.php';
45
46
        $this->mergeConfigFrom(
47
            $packageConfigFile, 'laravellocalization'
48
        );
49
50
        $this->app[ 'laravellocalization' ] = $this->app->share(
51
            function ()
52
            {
53
                return new LaravelLocalization();
54
            }
55
        );
56
    }
57
}