Refactored code to comply with PSR-*
Signed-off-by: Gergely POLONKAI <polesz@w00d5t0ck.info>
This commit is contained in:
@@ -5,14 +5,14 @@ use Symfony\Component\Security\Core\Encoder\PasswordEncoderInterface;
|
||||
|
||||
class CryptEncoder implements PasswordEncoderInterface
|
||||
{
|
||||
function encodePassword($raw, $salt)
|
||||
{
|
||||
return crypt($raw);
|
||||
}
|
||||
function encodePassword($raw, $salt)
|
||||
{
|
||||
return crypt($raw);
|
||||
}
|
||||
|
||||
function isPasswordValid($encoded, $raw, $salt)
|
||||
{
|
||||
return (crypt($raw, $salt) == $encoded);
|
||||
}
|
||||
function isPasswordValid($encoded, $raw, $salt)
|
||||
{
|
||||
return (crypt($raw, $salt) == $encoded);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user