Completed
Push — master ( a6496f...9d3bde )
by Gediminas
18:19
created

BCryptPasswordEncoder   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A encodePassword() 0 5 1
1
<?php
2
3
namespace AppBundle\Security\Core\Encoder;
4
5
use Symfony\Component\Security\Core\Encoder\BCryptPasswordEncoder as BaseBCryptPasswordEncoder;
6
7
class BCryptPasswordEncoder extends BaseBCryptPasswordEncoder
8
{
9
    public function encodePassword($raw, $salt)
10
    {
11
        // Ignore $salt, the auto-generated one is always the best
12
        return parent::encodePassword($raw, "");
13
    }
14
}
15