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

SocialAuthenticator::isEnabled()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

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