original_string: public static function init() {
  		
  		$found = false;
  		$patternExtension = Config::getOption("patternExtension");
  		self::loadRules();
  		
  		foreach (self::$rules as $rule) {
  			if ($rule->test($patternExtension)) {
  				self::$instance = $rule;
  				$found = true;
  				break;
  			}
  		}
  		
  		if (!$found) {
  			Console::writeError("the supplied pattern extension didn't match a pattern loader rule. check your config...");
  		}
  		
  	}
code: public static function init() {
  		
  		$found = false;
  		$patternExtension = Config::getOption("patternExtension");
  		self::loadRules();
  		
  		foreach (self::$rules as $rule) {
  			if ($rule->test($patternExtension)) {
  				self::$instance = $rule;
  				$found = true;
  				break;
  			}
  		}
  		
  		if (!$found) {
  			Console::writeError("the supplied pattern extension didn't match a pattern loader rule. check your config...");
  		}
  		
  	}
code_tokens: public static function init ( ) { $ found = false ; $ patternExtension = Config :: getOption ( "patternExtension" ) ; self :: loadRules ( ) ; foreach ( self :: $ rules as $ rule ) { if ( $ rule -> test ( $ patternExtension ) ) { self :: $ instance = $ rule ; $ found = true ; break ; } } if ( ! $ found ) { Console :: writeError ( "the supplied pattern extension didn't match a pattern loader rule. check your config..." ) ; } }
docstring: Load a new instance of the Pattern Loader
docstring_tokens: Load a new instance of the Pattern Loader