Completed
Push — master ( d69358...27ffc6 )
by Dmitry
04:53 queued 53s
created

Response   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A sendContent() 0 7 2
1
<?php
2
3
/*
4
 * HiPanel core package
5
 *
6
 * @link      https://hipanel.com/
7
 * @package   hipanel-core
8
 * @license   BSD-3-Clause
9
 * @copyright Copyright (c) 2014-2016, HiQDev (http://hiqdev.com/)
10
 */
11
12
namespace hipanel\components;
13
14
class Response extends \yii\web\Response
15
{
16
    public function sendContent()
17
    {
18
        if ($this->stream === null) {
19
            $this->content = Lang::lang($this->content);
20
        }
21
        parent::sendContent();
22
    }
23
}
24