Code Duplication    Length = 9-10 lines in 2 locations

src/PlaygroundCore/Controller/Admin/ElfinderController.php 2 locations

@@ 33-41 (lines=9) @@
30
    /**
31
     * @return array|\Zend\View\Model\ViewModel
32
     */
33
    public function indexAction()
34
    {
35
        $view = new ViewModel();
36
        $this->getConfig();
37
        $view->BasePath = $this->Config['BasePath'];
38
        $view->ConnectorPath = '/admin/elfinder/connector';
39
40
        return $view;
41
    }
42
43
    /**
44
     * @return \Zend\View\Model\ViewModel
@@ 46-55 (lines=10) @@
43
    /**
44
     * @return \Zend\View\Model\ViewModel
45
     */
46
    public function ckeditorAction()
47
    {
48
        $view = new ViewModel();
49
        $this->getConfig();
50
        $view->BasePath    = $this->Config['BasePath'];
51
        $view->ConnectorPath = '/admin/elfinder/connector';
52
        $view->setTerminal(true);
53
54
        return $view;
55
    }
56
57
    /**
58
     * @return \Zend\View\Model\ViewModel