original_string: public function verifyPassword(User $user, string $password): bool
      {
          $this->enforcePasswordStrength($password);
  
          $auth = $this->authenticationProvider->findByUserId($user->getId());
          if (!$auth) {
              throw new NoSuchUserException();
          }
  
          return password_verify($password, $auth->getHash());
      }
code: public function verifyPassword(User $user, string $password): bool
      {
          $this->enforcePasswordStrength($password);
  
          $auth = $this->authenticationProvider->findByUserId($user->getId());
          if (!$auth) {
              throw new NoSuchUserException();
          }
  
          return password_verify($password, $auth->getHash());
      }
code_tokens: public function verifyPassword ( User $ user , string $ password ) : bool { $ this -> enforcePasswordStrength ( $ password ) ; $ auth = $ this -> authenticationProvider -> findByUserId ( $ user -> getId ( ) ) ; if ( ! $ auth ) { throw new NoSuchUserException ( ) ; } return password_verify ( $ password , $ auth -> getHash ( ) ) ; }
docstring: Validate user password
  
  @param User   $user     The user to validate password for
  @param string $password Cleartext password that'w will be verified
  
  @return bool
  
  @throws NoSuchUserException
  @throws WeakPasswordException
docstring_tokens: Validate user password