Code Duplication    Length = 4-7 lines in 2 locations

src/dispatcher/Dispatcher.class.php 2 locations

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