These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | $dotenv = new Dotenv\Dotenv(__DIR__); |
||
3 | $dotenv->overload(); |
||
4 | |||
5 | /** |
||
6 | * Get Environment variable |
||
7 | * |
||
8 | * @param string $key |
||
9 | * @param null $default |
||
10 | * @return string/null |
||
0 ignored issues
–
show
|
|||
11 | */ |
||
12 | function env($key = '', $default = null) |
||
13 | { |
||
14 | return $_ENV[$key] != '' ? $_ENV[$key] : $default; |
||
15 | } |
||
16 | |||
17 | if (env('APP_DEBUG') === 'true') { |
||
18 | error_reporting(E_ALL); |
||
19 | ini_set('display_errors', 1); |
||
20 | } |
||
21 | |||
22 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.