Code Duplication    Length = 9-9 lines in 2 locations

src/dispatcher/ExecutionContainer.class.php 1 location

@@ 472-480 (lines=9) @@
469
     * @author     David Zülke <[email protected]>
470
     * @since      1.1.0
471
     */
472
    public function getFilterChain()
473
    {
474
        if ($this->filterChain === null) {
475
            $this->filterChain = $this->context->createInstanceFor('filter_chain');
476
            $this->filterChain->setType(FilterChain::TYPE_CONTROLLER);
477
        }
478
        
479
        return $this->filterChain;
480
    }
481
    
482
    /**
483
     * Execute the Controller.

src/dispatcher/Dispatcher.class.php 1 location

@@ 559-567 (lines=9) @@
556
     * @author     David Zülke <[email protected]>
557
     * @since      1.1.0
558
     */
559
    public function getFilterChain()
560
    {
561
        if ($this->filterChain === null) {
562
            $this->filterChain = $this->context->createInstanceFor('filter_chain');
563
            $this->filterChain->setType(FilterChain::TYPE_GLOBAL);
564
        }
565
        
566
        return $this->filterChain;
567
    }
568
    
569
    /**
570
     * Load filters.