original_string: public function getRemainingLifetime( $id, $attributes = array() )
      {
          foreach ( $this->storageStack as $storageConf )
          {
              $lifetime = $storageConf->storage->getRemainingLifetime(
                  $id,
                  $attributes
              );
              if ( $lifetime > 0 )
              {
                  return $lifetime;
              }
          }
          return 0;
      }
code: public function getRemainingLifetime( $id, $attributes = array() )
      {
          foreach ( $this->storageStack as $storageConf )
          {
              $lifetime = $storageConf->storage->getRemainingLifetime(
                  $id,
                  $attributes
              );
              if ( $lifetime > 0 )
              {
                  return $lifetime;
              }
          }
          return 0;
      }
code_tokens: public function getRemainingLifetime ( $ id , $ attributes = array ( ) ) { foreach ( $ this -> storageStack as $ storageConf ) { $ lifetime = $ storageConf -> storage -> getRemainingLifetime ( $ id , $ attributes ) ; if ( $ lifetime > 0 ) { return $ lifetime ; } } return 0 ; }
docstring: Returns the remaining lifetime for the given item ID.
  
  This method returns the lifetime in seconds for the item identified by $item
  and optionally described by $attributes. Definining the $attributes
  might lead to faster results with some caches.
  
  The first internal storage that is found for the data item is chosen to
  detemine the lifetime. If no storage contains the item or the item is
  outdated in all found caches, 0 is returned.
  
  @param string $id
  @param array $attributes
  @return int
docstring_tokens: Returns the remaining lifetime for the given item ID .