Passed
Push — 5.2 ( ab77ce...f44aef )
by liu
02:47
created

Jump::output()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
// +----------------------------------------------------------------------
1 ignored issue
show
Coding Style introduced by
You must use "/**" style comments for a file comment
Loading history...
3
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
4
// +----------------------------------------------------------------------
5
// | Copyright (c) 2006~2019 http://thinkphp.cn All rights reserved.
6
// +----------------------------------------------------------------------
7
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
8
// +----------------------------------------------------------------------
9
// | Author: liu21st <[email protected]>
10
// +----------------------------------------------------------------------
11
12
namespace think\response;
13
14
use think\Response;
15
16
class Jump extends Response
1 ignored issue
show
Coding Style introduced by
Missing class doc comment
Loading history...
17
{
18
    protected $contentType = 'text/html';
19
20
    /**
21
     * 处理数据
22
     * @access protected
23
     * @param  mixed $data 要处理的数据
24
     * @return string
25
     * @throws \Exception
26
     */
27
    protected function output($data): string
28
    {
29
        return \think\facade\View::assign($data)
30
            ->fetch($this->options['jump_template']);
31
    }
32
}
33