Conditions | 3 |
Paths | 1 |
Total Lines | 19 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
36 | private function init() |
||
37 | { |
||
38 | $this->setVerifyCredentialsCallback(function ($username, $password) { |
||
|
|||
39 | $user = $this->userProvider->loadUserByUsername($username); |
||
40 | |||
41 | if (null === $user) { |
||
42 | return false; |
||
43 | } |
||
44 | |||
45 | $encoder = $this->encoderFactory->getEncoder($user); |
||
46 | $isPasswordValid = $encoder->isPasswordValid($user->getPassword(), $password, $user->getSalt()); |
||
47 | |||
48 | if ($isPasswordValid) { |
||
49 | return $username; |
||
50 | } else { |
||
51 | return false; |
||
52 | } |
||
53 | }); |
||
54 | } |
||
55 | } |
||
56 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.