SocialiteManager   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 1
dl 0
loc 18
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A createOktaDriver() 0 10 1
1
<?php
2
3
namespace Tequilarapido\Okta;
4
5
class SocialiteManager extends \Laravel\Socialite\SocialiteManager
6
{
7
    /**
8
     * Creates Okta provider and bind it to Laravel Socialite.
9
     *
10
     * @return \Laravel\Socialite\Two\AbstractProvider
11
     */
12
    public function createOktaDriver()
13
    {
14
        $config = $this->app['config']['services.okta'];
15
16
        $provider = $this->buildProvider(OktaProvider::class, $config);
17
18
        $provider->setOktaUrl($config['url']);
19
20
        return $provider;
21
    }
22
}
23