UrlManager::createUrl()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 5
rs 10
c 0
b 0
f 0
ccs 3
cts 3
cp 1
cc 1
nc 1
nop 1
crap 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
}