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 ( 14c24e...b8ac11 )
by Marcel
9s
created

TwilioProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 4

Test Coverage

Coverage 87.5%

Importance

Changes 0
Metric Value
wmc 2
lcom 1
cbo 4
dl 0
loc 29
ccs 14
cts 16
cp 0.875
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 16 1
A register() 0 3 1
1
<?php
2
3
namespace NotificationChannels\Twilio;
4
5
use Illuminate\Support\ServiceProvider;
6
use Services_Twilio as TwilioService;
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
                    $this->app->make(TwilioService::class, [
0 ignored issues
show
Unused Code introduced by
The call to Application::make() has too many arguments starting with array($config['account_s... $config['auth_token']).

This check compares calls to functions or methods with their respective definitions. If the call has more arguments than are defined, it raises an issue.

If a function is defined several times with a different number of parameters, the check may pick up the wrong definition and report false positives. One codebase where this has been known to happen is Wordpress.

In this case you can add the @ignore PhpDoc annotation to the duplicate definition and it will be ignored.

Loading history...
22 1
                        $config['account_sid'],
23 1
                        $config['auth_token'],
24 1
                    ]),
25 1
                    $config['from']
26 1
                );
27 1
            });
28 1
    }
29
30
    /**
31
     * Register the application services.
32
     */
33
    public function register()
34
    {
35
    }
36
}
37