Completed
Pull Request — master (#38)
by Brian
36:12 queued 26:18
created

LumenServiceProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 22
wmc 2
lcom 1
cbo 3
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A boot() 0 6 1
A register() 0 8 1
1
<?php
2
3
namespace SocialiteProviders\Manager\Providers;
4
5
use Illuminate\Contracts\Events\Dispatcher;
6
use Laravel\Socialite\SocialiteServiceProvider;
7
use SocialiteProviders\Manager\SocialiteWasCalled;
8
use SocialiteProviders\Manager\Contracts\Helpers\ConfigRetrieverInterface;
9
use SocialiteProviders\Manager\Helpers\ConfigRetriever;
10
11
class LumenServiceProvider extends SocialiteServiceProvider
12
{
13
    /**
14
     * @param Dispatcher         $event
0 ignored issues
show
Bug introduced by
There is no parameter named $event. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

Consider the following example. The parameter $italy is not defined by the method finale(...).

/**
 * @param array $germany
 * @param array $island
 * @param array $italy
 */
function finale($germany, $island) {
    return "2:1";
}

The most likely cause is that the parameter was removed, but the annotation was not.

Loading history...
15
     * @param SocialiteWasCalled $socialiteWasCalled
0 ignored issues
show
Bug introduced by
There is no parameter named $socialiteWasCalled. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

Consider the following example. The parameter $italy is not defined by the method finale(...).

/**
 * @param array $germany
 * @param array $island
 * @param array $italy
 */
function finale($germany, $island) {
    return "2:1";
}

The most likely cause is that the parameter was removed, but the annotation was not.

Loading history...
16
     */
17
    public function boot()
18
    {
19
        $socialiteWasCalled = app(SocialiteWasCalled::class);
20
21
        event($socialiteWasCalled);
22
    }
23
24
    public function register()
25
    {
26
        parent::register();
27
28
        $this->app->singleton(ConfigRetrieverInterface::class, function () {
29
            return new ConfigRetriever();
30
        });
31
    }
32
}
33