Code Duplication    Length = 22-23 lines in 10 locations

app/modules/Admin/Module.php 1 location

@@ 5-27 (lines=23) @@
2
3
namespace Admin;
4
5
class Module
6
{
7
8
    public function registerAutoloaders()
9
    {
10
11
    }
12
13
    public function registerServices($di)
14
    {
15
        $dispatcher = $di->get('dispatcher');
16
        $dispatcher->setDefaultNamespace("Admin\Controller");
17
        $di->set('dispatcher', $dispatcher);
18
19
        /**
20
         * Setting up the view component
21
         */
22
        $view = $di->get('view');
23
        $view->setViewsDir(__DIR__ . '/views/');
24
25
    }
26
27
}

app/modules/Cms/Module.php 1 location

@@ 5-27 (lines=23) @@
2
3
namespace Cms;
4
5
class Module
6
{
7
8
    public function registerAutoloaders()
9
    {
10
11
    }
12
13
    public function registerServices($di)
14
    {
15
        $dispatcher = $di->get('dispatcher');
16
        $dispatcher->setDefaultNamespace("Cms\Controller");
17
        $di->set('dispatcher', $dispatcher);
18
19
        /**
20
         * Setting up the view component
21
         */
22
        $view = $di->get('view');
23
        $view->setViewsDir(__DIR__ . '/views/');
24
25
    }
26
27
}

app/modules/FileManager/Module.php 1 location

@@ 5-27 (lines=23) @@
2
3
namespace FileManager;
4
5
class Module
6
{
7
8
    public function registerAutoloaders()
9
    {
10
11
    }
12
13
    public function registerServices($di)
14
    {
15
        $dispatcher = $di->get('dispatcher');
16
        $dispatcher->setDefaultNamespace('FileManager\Controller');
17
        $di->set('dispatcher', $dispatcher);
18
19
        /**
20
         * Setting up the view component
21
         */
22
        $view = $di->get('view');
23
        $view->setViewsDir(__DIR__ . '/views/');
24
25
    }
26
27
}

app/modules/Index/Module.php 1 location

@@ 5-27 (lines=23) @@
2
3
namespace Index;
4
5
class Module
6
{
7
8
    public function registerAutoloaders()
9
    {
10
11
    }
12
13
    public function registerServices($di)
14
    {
15
        $dispatcher = $di->get('dispatcher');
16
        $dispatcher->setDefaultNamespace('Index\Controller');
17
        $di->set('dispatcher', $dispatcher);
18
19
        /**
20
         * Setting up the view component
21
         */
22
        $view = $di->get('view');
23
        $view->setViewsDir(__DIR__ . '/views/');
24
25
    }
26
27
}

app/modules/Page/Module.php 1 location

@@ 5-27 (lines=23) @@
2
3
namespace Page;
4
5
class Module
6
{
7
8
    public function registerAutoloaders()
9
    {
10
11
    }
12
13
    public function registerServices($di)
14
    {
15
        $dispatcher = $di->get('dispatcher');
16
        $dispatcher->setDefaultNamespace("Page\Controller");
17
        $di->set('dispatcher', $dispatcher);
18
19
        /**
20
         * Setting up the view component
21
         */
22
        $view = $di->get('view');
23
        $view->setViewsDir(__DIR__ . '/views/');
24
25
    }
26
27
}

app/modules/Publication/Module.php 1 location

@@ 5-27 (lines=23) @@
2
3
namespace Publication;
4
5
class Module
6
{
7
8
    public function registerAutoloaders()
9
    {
10
11
    }
12
13
    public function registerServices($di)
14
    {
15
        $dispatcher = $di->get('dispatcher');
16
        $dispatcher->setDefaultNamespace("Publication\Controller");
17
        $di->set('dispatcher', $dispatcher);
18
19
        /**
20
         * Setting up the view component
21
         */
22
        $view = $di->get('view');
23
        $view->setViewsDir(__DIR__ . '/views/');
24
25
    }
26
27
}

app/modules/Seo/Module.php 1 location

@@ 5-27 (lines=23) @@
2
3
namespace Seo;
4
5
class Module
6
{
7
8
    public function registerAutoloaders()
9
    {
10
11
    }
12
13
    public function registerServices($di)
14
    {
15
        $dispatcher = $di->get('dispatcher');
16
        $dispatcher->setDefaultNamespace('Seo\Controller');
17
        $di->set('dispatcher', $dispatcher);
18
19
        /**
20
         * Setting up the view component
21
         */
22
        $view = $di->get('view');
23
        $view->setViewsDir(__DIR__ . '/views/');
24
25
    }
26
27
}

app/modules/Sitemap/Module.php 1 location

@@ 5-26 (lines=22) @@
2
3
namespace Sitemap;
4
5
class Module
6
{
7
8
    public function registerAutoloaders()
9
    {
10
11
    }
12
13
    public function registerServices($di)
14
    {
15
        $dispatcher = $di->get('dispatcher');
16
        $dispatcher->setDefaultNamespace("Sitemap\Controller");
17
        $di->set('dispatcher', $dispatcher);
18
19
        /**
20
         * Setting up the view component
21
         */
22
        $view = $di->get('view');
23
        $view->setViewsDir(__DIR__ . '/views/');
24
25
    }
26
}

app/modules/Tree/Module.php 1 location

@@ 5-27 (lines=23) @@
2
3
namespace Tree;
4
5
class Module
6
{
7
8
    public function registerAutoloaders()
9
    {
10
11
    }
12
13
    public function registerServices($di)
14
    {
15
        $dispatcher = $di->get('dispatcher');
16
        $dispatcher->setDefaultNamespace('Tree\Controller');
17
        $di->set('dispatcher', $dispatcher);
18
19
        /**
20
         * Setting up the view component
21
         */
22
        $view = $di->get('view');
23
        $view->setViewsDir(__DIR__ . '/views/');
24
25
    }
26
27
}

app/modules/Widget/Module.php 1 location

@@ 5-27 (lines=23) @@
2
3
namespace Widget;
4
5
class Module
6
{
7
8
    public function registerAutoloaders()
9
    {
10
11
    }
12
13
    public function registerServices($di)
14
    {
15
        $dispatcher = $di->get('dispatcher');
16
        $dispatcher->setDefaultNamespace('Widget\Controller');
17
        $di->set('dispatcher', $dispatcher);
18
19
        /**
20
         * Setting up the view component
21
         */
22
        $view = $di->get('view');
23
        $view->setViewsDir(__DIR__ . '/views/');
24
25
    }
26
27
}