Completed
Push — master ( 0ebb9f...1e9b87 )
by Marcel
14s
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
     * This is a polyfill for the missing shorthand function in lumen.
7
     *
8
     * @param  string $path
9
     * @return string
10
     */
11
    function config_path($path = '')
12
    {
13
        return app()->basePath('config') . ($path ? DIRECTORY_SEPARATOR . $path : $path);
14
    }
15
}