Code Duplication    Length = 7-7 lines in 2 locations

src/Context/XMLContext.php 1 location

@@ 541-547 (lines=7) @@
538
     *
539
     * @return object the router instance
540
     */
541
    public function createRouter($config, $defaultClass = false)
542
    {
543
        $resolver = $config['channel_resolver'] ? (string) $config['channel_resolver'] : $this->channelRegistry;
544
545
        return $this->buildAndModify($config, [
546
            $resolver,
547
            $this->doGetChannel('input', $config),
548
        ], $defaultClass);
549
    }
550

src/Plugins/BasePlugin.php 1 location

@@ 117-123 (lines=7) @@
114
     *
115
     * @return object the router instance
116
     */
117
    public function createRouter($config, $defaultClass = false)
118
    {
119
        $resolver = $config['channel_resolver'] ? (string) $config['channel_resolver'] : $this->channelRegistry;
120
121
        return $this->buildAndModify($config, [
122
            $resolver,
123
            $this->doGetChannel('input', $config),
124
        ], $defaultClass);
125
    }
126