original_string: public function validateNewPassword(array $credentials)
      {
          if (isset($this->passwordValidator)) {
              [$password, $confirm] = [
                  $credentials['password'],
                  $credentials['password_confirmation'],
              ];
  
              return call_user_func(
                  $this->passwordValidator, $credentials
              ) && $password === $confirm;
          }
  
          return $this->validatePasswordWithDefaults($credentials);
      }
code: public function validateNewPassword(array $credentials)
      {
          if (isset($this->passwordValidator)) {
              [$password, $confirm] = [
                  $credentials['password'],
                  $credentials['password_confirmation'],
              ];
  
              return call_user_func(
                  $this->passwordValidator, $credentials
              ) && $password === $confirm;
          }
  
          return $this->validatePasswordWithDefaults($credentials);
      }
code_tokens: public function validateNewPassword ( array $ credentials ) { if ( isset ( $ this -> passwordValidator ) ) { [ $ password , $ confirm ] = [ $ credentials [ 'password' ] , $ credentials [ 'password_confirmation' ] , ] ; return call_user_func ( $ this -> passwordValidator , $ credentials ) && $ password === $ confirm ; } return $ this -> validatePasswordWithDefaults ( $ credentials ) ; }
docstring: Determine if the passwords match for the request.
  
  @param  array  $credentials
  @return bool
docstring_tokens: Determine if the passwords match for the request .