Completed
Pull Request — master (#13)
by
unknown
01:19
created

helpers.php ➔ config_path()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
nc 2
nop 1
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
if (!function_exists('config_path')) {
3
    /**
4
     * Get the configuration path.
5
     *
6
     * @param  string $path
7
     * @return string
8
     */
9
    function config_path($path = '')
10
    {
11
        return app()->basePath() . DIRECTORY_SEPARATOR . 'config' . ($path ? DIRECTORY_SEPARATOR . $path : $path);
12
    }
13
}