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 ( c86075...9f417a )
by Kevin
03:40
created

BolComRetailerServiceProvider::boot()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 34

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 34
rs 9.376
c 0
b 0
f 0
cc 2
nc 2
nop 0
1
<?php
2
3
namespace HomeDesignShops\LaravelBolComRetailer;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class BolComRetailerServiceProvider extends ServiceProvider
8
{
9
    /**
10
     * Bootstrap the application services.
11
     */
12
    public function boot()
13
    {
14
        /*
15
         * Optional methods to load your package assets
16
         */
17
        // $this->loadTranslationsFrom(__DIR__.'/../resources/lang', 'laravel-bol-com-retailer');
18
        // $this->loadViewsFrom(__DIR__.'/../resources/views', 'laravel-bol-com-retailer');
19
        // $this->loadMigrationsFrom(__DIR__.'/../database/migrations');
20
        // $this->loadRoutesFrom(__DIR__.'/routes.php');
21
22
        if ($this->app->runningInConsole()) {
23
            $this->publishes([
24
                __DIR__.'/../config/config.php' => config_path('bol-com-retailer.php'),
25
            ], 'config');
26
27
            // Publishing the views.
28
            /*$this->publishes([
29
                __DIR__.'/../resources/views' => resource_path('views/vendor/laravel-bol-com-retailer'),
30
            ], 'views');*/
31
32
            // Publishing assets.
33
            /*$this->publishes([
34
                __DIR__.'/../resources/assets' => public_path('vendor/laravel-bol-com-retailer'),
35
            ], 'assets');*/
36
37
            // Publishing the translation files.
38
            /*$this->publishes([
39
                __DIR__.'/../resources/lang' => resource_path('lang/vendor/laravel-bol-com-retailer'),
40
            ], 'lang');*/
41
42
            // Registering package commands.
43
            // $this->commands([]);
44
        }
45
    }
46
47
    /**
48
     * Register the application services.
49
     */
50
    public function register()
51
    {
52
        // Automatically apply the package configuration
53
        $this->mergeConfigFrom(__DIR__.'/../config/config.php', 'bol-com-retailer');
54
55
        // Register the main class to use with the facade
56
        $this->app->singleton('bol-com-retailer', static function () {
57
            return new BolComRetailerService;
58
        });
59
    }
60
}
61