Completed
Push — master ( b97c15...2a91fa )
by Loban
03:36
created

UrlManager   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 1 Features 1
Metric Value
wmc 1
c 1
b 1
f 1
lcom 0
cbo 2
dl 0
loc 18
ccs 3
cts 3
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A createUrl() 0 5 1
1
<?php
2
/**
3
 * @link https://github.com/LAV45/yii2-translated-behavior
4
 * @copyright Copyright (c) 2015 LAV45!
5
 * @author Alexey Loban <[email protected]>
6
 * @license http://opensource.org/licenses/BSD-3-Clause
7
 */
8
9
namespace lav45\translate\web;
10
11
/**
12
 * Class UrlManager
13
 * @package lav45\translate\web
14
 */
15
class UrlManager extends \yii\web\UrlManager
16
{
17
    use LanguageUrlTrait;
18
19
    /**
20
     * @var array
21
     */
22
    public $ruleConfig = ['class' => 'lav45\translate\web\UrlRule'];
23
24
    /**
25
     * @inheritdoc
26
     */
27 1
    public function createUrl($params)
28
    {
29 1
        $params = $this->checkLanguageParams($params);
30 1
        return parent::createUrl($params);
31
    }
32
}