UrlManager   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 100%

Importance

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

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
     * @inheritdoc
21
     */
22 1
    public function createUrl($params)
23
    {
24 1
        $params = $this->checkLanguageParams($params);
25 1
        return parent::createUrl($params);
26
    }
27
}