original_string: public static function instance() {
          global $CFG;
          if (is_null(self::$singletoninstance)) {
              if (!empty($CFG->perfdebug) and $CFG->perfdebug > 7) {
                  self::$singletoninstance = new performance_measuring_filter_manager();
              } else {
                  self::$singletoninstance = new self();
              }
          }
          return self::$singletoninstance;
      }
code: public static function instance() {
          global $CFG;
          if (is_null(self::$singletoninstance)) {
              if (!empty($CFG->perfdebug) and $CFG->perfdebug > 7) {
                  self::$singletoninstance = new performance_measuring_filter_manager();
              } else {
                  self::$singletoninstance = new self();
              }
          }
          return self::$singletoninstance;
      }
code_tokens: public static function instance ( ) { global $ CFG ; if ( is_null ( self :: $ singletoninstance ) ) { if ( ! empty ( $ CFG -> perfdebug ) and $ CFG -> perfdebug > 7 ) { self :: $ singletoninstance = new performance_measuring_filter_manager ( ) ; } else { self :: $ singletoninstance = new self ( ) ; } } return self :: $ singletoninstance ; }
docstring: Factory method. Use this to get the filter manager.
  
  @return filter_manager the singleton instance.
docstring_tokens: Factory method . Use this to get the filter manager .