original_string: public function isPasswordValid($plainPassword, $user = null)
      {
          $user = $user ?: $this->getUser();
  
          return $this->passwordEncoder->isPasswordValid($user, $plainPassword);
      }
code: public function isPasswordValid($plainPassword, $user = null)
      {
          $user = $user ?: $this->getUser();
  
          return $this->passwordEncoder->isPasswordValid($user, $plainPassword);
      }
code_tokens: public function isPasswordValid ( $ plainPassword , $ user = null ) { $ user = $ user ? : $ this -> getUser ( ) ; return $ this -> passwordEncoder -> isPasswordValid ( $ user , $ plainPassword ) ; }
docstring: Returns true if the given plain password is valid for the current
  application user or the optionally given user.
  
  @param string $plainPassword
  @param null   $user
  
  @return bool
docstring_tokens: Returns true if the given plain password is valid for the current application user or the optionally given user .