original_string: public function getRemainingLifetime( $id, $attributes = array() )
      {
          if ( count( $found = $this->search( $id, $attributes ) ) > 0 ) 
          {
              $identifier = $found[0][2];
              return $this->calcLifetime( $identifier );
          }
          return 0;
      }
code: public function getRemainingLifetime( $id, $attributes = array() )
      {
          if ( count( $found = $this->search( $id, $attributes ) ) > 0 ) 
          {
              $identifier = $found[0][2];
              return $this->calcLifetime( $identifier );
          }
          return 0;
      }
code_tokens: public function getRemainingLifetime ( $ id , $ attributes = array ( ) ) { if ( count ( $ found = $ this -> search ( $ id , $ attributes ) ) > 0 ) { $ identifier = $ found [ 0 ] [ 2 ] ; return $ this -> calcLifetime ( $ identifier ) ; } return 0 ; }
docstring: Returns the time in seconds which remains for a cache object, before it
  gets outdated. In case the cache object is already outdated or does not
  exists, this method returns 0.
  
  @param string $id The item ID
  @param array(string=>string) $attributes Attributes describing the data
  @return int The remaining lifetime (0 if it does not exist or outdated)
docstring_tokens: Returns the time in seconds which remains for a cache object before it gets outdated . In case the cache object is already outdated or does not exists this method returns 0 .