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.

CleanifyServiceProvider::boot()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 14

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 14
rs 9.7998
c 0
b 0
f 0
cc 2
nc 2
nop 0
1
<?php
2
3
namespace Rakshitbharat\Cleanify;
4
5
use Illuminate\Support\ServiceProvider;
6
7
class CleanifyServiceProvider 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
        if ($this->app->runningInConsole()) {
18
            $this->commands([
19
                ConsoleCommand::class
20
            ]);
21
            $this->publishes([
22
                __DIR__.'/../config/config.php' => config_path('cleanify.php'),
23
            ], 'config');
24
        }
25
    }
26
27
    /**
28
     * Register the application services.
29
     */
30
    public function register()
31
    {
32
        // Automatically apply the package configuration
33
        $this->mergeConfigFrom(__DIR__.'/../config/config.php', 'cleanify');
34
35
        // Register the main class to use with the facade
36
        $this->app->singleton('cleanify', function () {
37
            return new Cleanify;
38
        });
39
    }
40
}
41