original_string: public function isRedirect()
      {
          $codes = [
              static::STATUS_MOVED_PERMANENTLY,
              static::STATUS_FOUND,
              static::STATUS_SEE_OTHER,
              static::STATUS_TEMPORARY_REDIRECT,
          ];
  
          return (
              in_array($this->code, $codes) &&
              $this->getHeaderLine('Location')
          );
      }
code: public function isRedirect()
      {
          $codes = [
              static::STATUS_MOVED_PERMANENTLY,
              static::STATUS_FOUND,
              static::STATUS_SEE_OTHER,
              static::STATUS_TEMPORARY_REDIRECT,
          ];
  
          return (
              in_array($this->code, $codes) &&
              $this->getHeaderLine('Location')
          );
      }
code_tokens: public function isRedirect ( ) { $ codes = [ static :: STATUS_MOVED_PERMANENTLY , static :: STATUS_FOUND , static :: STATUS_SEE_OTHER , static :: STATUS_TEMPORARY_REDIRECT , ] ; return ( in_array ( $ this -> code , $ codes ) && $ this -> getHeaderLine ( 'Location' ) ) ; }
docstring: Check if the response had a redirect status code.
  
  @return bool
docstring_tokens: Check if the response had a redirect status code .