FaultyToken   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 14
rs 10
c 1
b 0
f 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A eraseCredentials() 0 4 1
1
<?php
2
namespace Riper\Security\ActiveDirectoryBundle\Security\Token;
3
4
use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken;
5
6
class FaultyToken extends UsernamePasswordToken
7
{
8
9
10
    /**
11
     * This method cut of the behaviour in order to keep the password in the token
12
     * This is a bad practice, but is the only simple way to keep the password and reuse it after
13
     * For active directory authentication
14
     */
15
    public function eraseCredentials()
16
    {
17
18
    }
19
}
20