Completed
Pull Request — master (#17)
by ARCANEDEV
09:21
created

SocialAuthenticator   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 12
rs 10
c 1
b 0
f 0
ccs 2
cts 2
cp 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A isEnabled() 0 4 1
1
<?php namespace Arcanedev\LaravelAuth\Services;
2
3
/**
4
 * Class     SocialAuthenticator
5
 *
6
 * @package  Arcanedev\LaravelAuth\Services
7
 * @author   ARCANEDEV <[email protected]>
8
 */
9
class SocialAuthenticator
10
{
11
    /**
12
     * Check if social authentication is enabled.
13
     *
14
     * @return bool
15
     */
16 630
    public static function isEnabled()
17
    {
18 630
        return config('laravel-auth.socialite.enabled', false);
19
    }
20
}
21