original_string: public function isExpired()
      {
          if (!FS::isFile($this->_resultFile)) {
              return true;
          }
  
          $fileAge = abs(time() - filemtime($this->_resultFile));
          if ($fileAge >= $this->_cache_ttl) {
              return true;
          }
  
          $firstLine = trim(FS::firstLine($this->_resultFile));
          $expected  = trim($this->_getHeader());
          if ($expected === $firstLine) {
              return false;
          }
  
          return true;
      }
code: public function isExpired()
      {
          if (!FS::isFile($this->_resultFile)) {
              return true;
          }
  
          $fileAge = abs(time() - filemtime($this->_resultFile));
          if ($fileAge >= $this->_cache_ttl) {
              return true;
          }
  
          $firstLine = trim(FS::firstLine($this->_resultFile));
          $expected  = trim($this->_getHeader());
          if ($expected === $firstLine) {
              return false;
          }
  
          return true;
      }
code_tokens: public function isExpired ( ) { if ( ! FS :: isFile ( $ this -> _resultFile ) ) { return true ; } $ fileAge = abs ( time ( ) - filemtime ( $ this -> _resultFile ) ) ; if ( $ fileAge >= $ this -> _cache_ttl ) { return true ; } $ firstLine = trim ( FS :: firstLine ( $ this -> _resultFile ) ) ; $ expected = trim ( $ this -> _getHeader ( ) ) ; if ( $ expected === $ firstLine ) { return false ; } return true ; }
docstring: Check is current cache is expired
docstring_tokens: Check is current cache is expired