Completed
Pull Request — master (#38)
by Brian
34:27 queued 24:25
created

LumenServiceProvider::boot()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
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