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 ( 8d291e...a8c3f8 )
by Dwight
03:11 queued 01:05
created

FacebookPosterServiceProvider::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 13

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 13
ccs 0
cts 11
cp 0
rs 9.8333
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A FacebookPosterServiceProvider::register() 0 12 1
1
<?php
2
3
namespace NotificationChannels\FacebookPoster;
4
5
use Facebook\Facebook;
6
use Illuminate\Support\ServiceProvider;
7
8
class FacebookPosterServiceProvider extends ServiceProvider
9
{
10
    /**
11
     * Register any package services.
12
     */
13
    public function register()
14
    {
15
        $this->app->when(FacebookPosterChannel::class)
16
            ->needs(Facebook::class)
17
            ->give(function ($app) {
18
                return new Facebook([
19
                    'app_id' => $app['config']['services.facebook_poster.app_id'],
20
                    'app_secret' => $app['config']['services.facebook_poster.app_secret'],
21
                    'default_access_token' => $app['config']['services.facebook_poster.access_token'],
22
                ]);
23
            });
24
    }
25
}
26