1 | <?php |
||
17 | class Authenticator extends AbstractAuthenticator |
||
18 | { |
||
19 | /** |
||
20 | * Log a user into the application. |
||
21 | * |
||
22 | * @param AuthenticatableInterface $user The authenticated user to log in. |
||
23 | * @param boolean $remember Whether to "remember" the user or not. |
||
24 | * @return boolean Success / Failure |
||
25 | */ |
||
26 | public function login(AuthenticatableInterface $user, $remember = false) |
||
36 | |||
37 | /** |
||
38 | * Validate the user authentication state is okay. |
||
39 | * |
||
40 | * For example, inactive users can not authenticate. |
||
41 | * |
||
42 | * @param AuthenticatableInterface $user The user to validate. |
||
43 | * @return boolean |
||
44 | */ |
||
45 | public function validateAuthentication(AuthenticatableInterface $user) |
||
55 | |||
56 | /** |
||
57 | * Updates the user's timestamp for their last log in. |
||
58 | * |
||
59 | * @param AuthenticatableInterface $user The user to update. |
||
60 | * @param string $password The plain-text password to hash. |
||
61 | * @param boolean $update Whether to persist changes to storage. |
||
62 | * @return boolean Returns TRUE if the password was changed, or FALSE otherwise. |
||
63 | */ |
||
64 | protected function touchUserLogin(AuthenticatableInterface $user, $update = true) |
||
114 | |||
115 | /** |
||
116 | * Updates the user's password hash. |
||
117 | * |
||
118 | * @param AuthenticatableInterface $user The user to update. |
||
119 | * @param string $password The plain-text password to hash. |
||
120 | * @param boolean $update Whether to persist changes to storage. |
||
121 | * @throws InvalidArgumentException If the password is invalid. |
||
122 | * @return boolean Returns TRUE if the password was changed, or FALSE otherwise. |
||
123 | */ |
||
124 | protected function changeUserPassword(AuthenticatableInterface $user, $password, $update = true) |
||
180 | } |
||
181 |
This check looks for function or method calls that always return null and whose return value is assigned to a variable.
The method
getObject()
can return nothing but null, so it makes no sense to assign that value to a variable.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.