original_string: protected static function cache_get_by_id($id) {
          if (isset(self::$cache_contextsbyid[$id])) {
              return self::$cache_contextsbyid[$id];
          }
          return false;
      }
code: protected static function cache_get_by_id($id) {
          if (isset(self::$cache_contextsbyid[$id])) {
              return self::$cache_contextsbyid[$id];
          }
          return false;
      }
code_tokens: protected static function cache_get_by_id ( $ id ) { if ( isset ( self :: $ cache_contextsbyid [ $ id ] ) ) { return self :: $ cache_contextsbyid [ $ id ] ; } return false ; }
docstring: Gets a context from the cache based on its id.
  
  @static
  @param int $id Context ID
  @return context|bool Context or false if not in cache
docstring_tokens: Gets a context from the cache based on its id .