SocialiteManager::createGithubDriver()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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