original_string: public static function loadRules() {
  		
  		// default var
  		$configDir = Config::getOption("configDir");
  		
  		// make sure the pattern engine data exists
  		if (file_exists($configDir."/patternengines.json")) {
  			
  			// get pattern engine list data
  			$patternEngineList = json_decode(file_get_contents($configDir."/patternengines.json"), true);
  			
  			// get the pattern engine info
  			foreach ($patternEngineList["patternengines"] as $patternEngineName) {
  				
  				self::$rules[] = new $patternEngineName();
  				
  			}
  			
  		} else {
  			Console::writeError("The pattern engines list isn't available in <path>".$configDir."</path>...");
  		}
  		
  	}
code: public static function loadRules() {
  		
  		// default var
  		$configDir = Config::getOption("configDir");
  		
  		// make sure the pattern engine data exists
  		if (file_exists($configDir."/patternengines.json")) {
  			
  			// get pattern engine list data
  			$patternEngineList = json_decode(file_get_contents($configDir."/patternengines.json"), true);
  			
  			// get the pattern engine info
  			foreach ($patternEngineList["patternengines"] as $patternEngineName) {
  				
  				self::$rules[] = new $patternEngineName();
  				
  			}
  			
  		} else {
  			Console::writeError("The pattern engines list isn't available in <path>".$configDir."</path>...");
  		}
  		
  	}
code_tokens: public static function loadRules ( ) { // default var $ configDir = Config :: getOption ( "configDir" ) ; // make sure the pattern engine data exists if ( file_exists ( $ configDir . "/patternengines.json" ) ) { // get pattern engine list data $ patternEngineList = json_decode ( file_get_contents ( $ configDir . "/patternengines.json" ) , true ) ; // get the pattern engine info foreach ( $ patternEngineList [ "patternengines" ] as $ patternEngineName ) { self :: $ rules [ ] = new $ patternEngineName ( ) ; } } else { Console :: writeError ( "The pattern engines list isn't available in <path>" . $ configDir . "</path>..." ) ; } }
docstring: Load all of the rules related to Pattern Engines. They're located in the plugin dir
docstring_tokens: Load all of the rules related to Pattern Engines . They re located in the plugin dir