original_string: private function requiresTfa(ResponseInterface $response)
      {
          return substr($response->getStatusCode(), 0, 1) === '4' && $response->hasHeader(self::TFA_HEADER);
      }
code: private function requiresTfa(ResponseInterface $response)
      {
          return substr($response->getStatusCode(), 0, 1) === '4' && $response->hasHeader(self::TFA_HEADER);
      }
code_tokens: private function requiresTfa ( ResponseInterface $ response ) { return substr ( $ response -> getStatusCode ( ) , 0 , 1 ) === '4' && $ response -> hasHeader ( self :: TFA_HEADER ) ; }
docstring: Check whether the response requires two-factor authentication.
  
  @param \Psr\Http\Message\ResponseInterface $response
  
  @return bool
docstring_tokens: Check whether the response requires two - factor authentication .