original_string: protected function getResourceLength(): int
      {
          if (null === $this->fileName) {
              return parent::getResourceLength();
          }
  
          if (substr($this->fileName, 0, 16) === 'compress.zlib://') {
              return filesize(substr($this->fileName, 16));
          } elseif (substr($this->fileName, 0, 17) === 'compress.bzip2://') {
              return filesize(substr($this->fileName, 17));
          }
  
          return parent::getResourceLength();
      }
code: protected function getResourceLength(): int
      {
          if (null === $this->fileName) {
              return parent::getResourceLength();
          }
  
          if (substr($this->fileName, 0, 16) === 'compress.zlib://') {
              return filesize(substr($this->fileName, 16));
          } elseif (substr($this->fileName, 0, 17) === 'compress.bzip2://') {
              return filesize(substr($this->fileName, 17));
          }
  
          return parent::getResourceLength();
      }
code_tokens: protected function getResourceLength ( ) : int { if ( null === $ this -> fileName ) { return parent :: getResourceLength ( ) ; } if ( substr ( $ this -> fileName , 0 , 16 ) === 'compress.zlib://' ) { return filesize ( substr ( $ this -> fileName , 16 ) ) ; } elseif ( substr ( $ this -> fileName , 0 , 17 ) === 'compress.bzip2://' ) { return filesize ( substr ( $ this -> fileName , 17 ) ) ; } return parent :: getResourceLength ( ) ; }
docstring: helper method to retrieve the length of the resource
  
  @return  int
docstring_tokens: helper method to retrieve the length of the resource