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

BCryptPasswordEncoder::encodePassword()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
c 1
b 1
f 0
dl 0
loc 5
rs 9.4285
cc 1
eloc 2
nc 1
nop 2
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