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

View   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 10
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getFacadeClass() 0 3 1
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\facade;
13
14
use think\Facade;
15
16
/**
0 ignored issues
show
Coding Style introduced by
Missing short description in doc comment
Loading history...
17
 * @see \think\View
18
 * @mixin \think\View
19
 * @method \think\View assign(mixed $name, mixed $value = null) static 模板变量赋值
20
 * @method \think\View config(array $config ) static 配置模板引擎
21
 * @method \think\View exists(string $name) static 检查模板是否存在
22
 * @method \think\View filter(Callable $filter) static 视图内容过滤
23
 * @method \think\View engine(string $type, array $options = []) static 设置/切换当前模板解析的引擎
24
 * @method string fetch(string $template = '') static 解析和获取模板内容
25
 * @method string display(string $content = '') static 渲染内容输出
26
 */
5 ignored issues
show
Coding Style introduced by
Missing @category tag in class comment
Loading history...
Coding Style introduced by
Missing @package tag in class comment
Loading history...
Coding Style introduced by
Missing @author tag in class comment
Loading history...
Coding Style introduced by
Missing @license tag in class comment
Loading history...
Coding Style introduced by
Missing @link tag in class comment
Loading history...
27
class View extends Facade
28
{
29
    /**
30
     * 获取当前Facade对应类名(或者已经绑定的容器对象标识)
31
     * @access protected
32
     * @return string
33
     */
34
    protected static function getFacadeClass()
35
    {
36
        return 'think\View';
37
    }
38
}
39