Issues (4)

helpers.php (1 issue)

Labels
Severity
1
<?php
2
3
if (! function_exists('config_path')) {
4
    /**
5
     * Get the configuration path.
6
     *
7
     * This is a polyfill for the missing shorthand function in lumen.
8
     *
9
     * @param  string  $path
10
     * @return string
11
     */
12
    function config_path($path = '')
13
    {
14
        return app()->basePath('config').($path ? DIRECTORY_SEPARATOR.$path : $path);
0 ignored issues
show
The function app was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

14
        return /** @scrutinizer ignore-call */ app()->basePath('config').($path ? DIRECTORY_SEPARATOR.$path : $path);
Loading history...
15
    }
16
}
17