Completed
Pull Request — master (#1)
by
unknown
02:15
created

env_function.php ➔ env()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 1
Metric Value
cc 1
eloc 2
c 1
b 1
f 1
nc 1
nop 1
dl 0
loc 4
rs 10
1
<?php
2
3
/**
4
 * Gets the value of an environment variable.
5
 *
6
 * @param string $name The value name
7
 *
8
 * @return mixed
9
 */
10
if (!function_exists('env')) {
11
    function env($name)
12
    {
13
        return Env::get($name);
14
    }
15
}