Routes::init()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 11

Duplication

Lines 11
Ratio 100 %

Importance

Changes 0
Metric Value
dl 11
loc 11
rs 9.9
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
/**
4
 * Routes
5
 * @copyright Copyright (c) 2011 - 2014 Aleksandr Torosh (http://wezoom.com.ua)
6
 * @author Aleksandr Torosh <[email protected]>
7
 */
8
9
namespace Index;
10
11
class Routes
12
{
13
14 View Code Duplication
    public function init($router)
15
    {
16
        $router->addML('/', array(
17
            'module' => 'index',
18
            'controller' => 'index',
19
            'action' => 'index',
20
        ), 'index');
21
22
        return $router;
23
24
    }
25
26
}