Code Duplication    Length = 7-7 lines in 2 locations

src/Context/XMLContext.php 1 location

@@ 510-516 (lines=7) @@
507
     * @param string $defaultClass the class to use if none is set in config. 
508
     * @return object the router instance
509
     */
510
    public function createRouter($config, $defaultClass = false){
511
        $resolver = $config['channel_resolver'] ? (string)$config['channel_resolver'] : $this->channelRegistry;
512
        return $this->buildAndModify($config, array(
513
            $resolver,
514
            $this->doGetChannel('input', $config)
515
        ), $defaultClass);
516
    }
517
518
    /**
519
     * Creates and registers splitter from a configuration object.

src/Plugins/BasePlugin.php 1 location

@@ 114-120 (lines=7) @@
111
     * @param string $defaultClass the class to use if none is set in config.
112
     * @return object the router instance
113
     */
114
    public function createRouter($config, $defaultClass = false){
115
        $resolver = $config['channel_resolver'] ? (string)$config['channel_resolver'] : $this->channelRegistry;
116
        return $this->buildAndModify($config, array(
117
            $resolver,
118
            $this->doGetChannel('input', $config)
119
        ), $defaultClass);
120
    }
121
122
    /**
123
     * Creates and registers splitter from a configuration object.