Passed
Push — master ( c4f942...fa5a0e )
by 世昌
03:00
created

conf()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 2
dl 0
loc 2
rs 10
c 1
b 0
f 0
1
<?php
2
3
use nebula\NebulaApplication;
4
5
/**
6
 * 获取配置信息
7
 *
8
 * @param string $name
9
 * @param mixed $default
10
 * @return mixed
11
 */
12
function conf(string $name, $default) {
13
    return NebulaApplication::instance()->getConfig()->get($name, $default);
14
}