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
Pull Request — master (#14)
by Casper
02:36
created

TwilioProvider::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 17
Code Lines 11

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 14
CRAP Score 1

Importance

Changes 2
Bugs 0 Features 1
Metric Value
c 2
b 0
f 1
dl 0
loc 17
ccs 14
cts 14
cp 1
rs 9.4285
cc 1
eloc 11
nc 1
nop 0
crap 1
1
<?php
2
3
namespace NotificationChannels\Twilio;
4
5
use Illuminate\Support\ServiceProvider;
6
use Services_Twilio as Twilio;
7
8
class TwilioProvider extends ServiceProvider
9
{
10
    /**
11
     * Bootstrap the application services.
12
     */
13 1
    public function boot()
14
    {
15 1
        $this->app->when(TwilioChannel::class)
16 1
            ->needs(Twilio::class)
17 1
            ->give(function () {
18 1
                $config = $this->app['config']['services.twilio'];
19
20 1
                return new Twilio(
21 1
                    $config['account_sid'],
22 1
                    $config['auth_token']
23 1
                );
24 1
            });
25
26 1
        $this->app->when(TwilioChannel::class)
27 1
            ->needs('$from')
28 1
            ->give($this->app['config']['services.twilio.from']);
29 1
    }
30
31
    /**
32
     * Register the application services.
33
     */
34
    public function register()
35
    {
36
    }
37
}
38