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 ( 7b7125...1c1fdc )
by Ryun
02:50
created

ServiceProvider::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 10
rs 9.4285
cc 1
eloc 7
nc 1
nop 0
1
<?php
2
3
namespace Humweb\Sociable;
4
5
use Humweb\Sociable\Auth\Manager;
6
use Illuminate\Support\ServiceProvider as BaseServiceProvider;
7
8
/**
9
 * ServiceProvider
10
 *
11
 * @package Humweb\Content
12
 */
13
class ServiceProvider extends BaseServiceProvider
14
{
15
16
    /**
17
     * Perform post-registration booting of services.
18
     *
19
     * @return void
20
     */
21
    public function boot()
22
    {
23
        $this->publishes([
24
            __DIR__.'/config/config.php' => config_path('sociable.php'),
25
        ], 'config');
26
27
        $this->publishes([
28
            __DIR__.'/../database/migrations/' => database_path('migrations')
29
        ], 'migrations');
30
    }
31
32
    /**
33
     * Register the service provider.
34
     *
35
     * @return void
36
     */
37
    public function register()
38
    {
39
        $this->app->singleton('social.auth', function($app) {
40
            return new Manager($app);
41
        });
42
    }
43
44
}