Completed
Push — master ( 5932ed...faf75e )
by Joseph
06:23
created

NullUserProvider   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 28
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 6
lcom 0
cbo 0
dl 0
loc 28
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A retrieveById() 0 4 1
A retrieveByToken() 0 3 1
A updateRememberToken() 0 3 1
A retrieveByCredentials() 0 3 1
A validateCredentials() 0 4 1
1
<?php
2
3
namespace STS\SocialiteAuth;
4
5
use Illuminate\Contracts\Auth\Authenticatable;
6
use Illuminate\Contracts\Auth\UserProvider;
7
8
class NullUserProvider implements UserProvider
9
{
10
    public function __construct()
11
    {
12
    }
13
14
    public function retrieveById($identifier)
15
    {
16
        return session()->get('socialite-auth.' . $identifier);
17
    }
18
19
    public function retrieveByToken($identifier, $token)
20
    {
21
    }
22
23
    public function updateRememberToken(Authenticatable $user, $token)
24
    {
25
    }
26
27
    public function retrieveByCredentials(array $credentials)
28
    {
29
    }
30
31
    public function validateCredentials(Authenticatable $user, array $credentials)
32
    {
33
        return false;
34
    }
35
}
36