Code Duplication    Length = 4-7 lines in 2 locations

src/dispatcher/Dispatcher.class.php 2 locations

@@ 586-589 (lines=4) @@
583
			if($which == 'global') {
584
				$this->filters[$which] = array();
585
				$filters =& $this->filters[$which];
586
			} else {
587
				$this->filters[$which][$module] = array();
588
				$filters =& $this->filters[$which][$module];
589
			}
590
			$config = ($module == '*' ? Config::get('core.config_dir') : Config::get('core.module_dir') . '/' . $module . '/config') . '/' . $which . '_filters.xml';
591
			if(is_readable($config)) {
592
				require(ConfigCache::checkConfig($config, $this->context->getName()));
@@ 594-600 (lines=7) @@
591
			if(is_readable($config)) {
592
				require(ConfigCache::checkConfig($config, $this->context->getName()));
593
			}
594
		} else {
595
			if($which == 'global') {
596
				$filters =& $this->filters[$which];
597
			} else {
598
				$filters =& $this->filters[$which][$module];
599
			}
600
		}
601
		
602
		foreach($filters as $name => $filter) {
603
			$filterChain->register($filter, $name);