SocialiteManager   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 2
Bugs 1 Features 0
Metric Value
wmc 1
eloc 5
c 2
b 1
f 0
dl 0
loc 14
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A createGithubDriver() 0 7 1
1
<?php
2
3
namespace App\Hacktoberfest\OAuth;
4
5
use Laravel\Socialite\SocialiteManager as BaseSocialiteManager;
6
7
class SocialiteManager extends BaseSocialiteManager
8
{
9
    /**
10
     * Create the instance of our own Github provider.
11
     *
12
     * @return \Laravel\Socialite\Two\AbstractProvider
13
     */
14
    protected function createGithubDriver()
15
    {
16
        $config = $this->app['config']['services.github'];
17
18
        return $this->buildProvider(
19
            'App\Hacktoberfest\OAuth\Providers\ScopelessGithubProvider',
20
            $config
21
        );
22
    }
23
}
24