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::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 4
Bugs 1 Features 0
Metric Value
c 4
b 1
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 4
nc 1
nop 0
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
}