Completed
Branch master (d5b32c)
by
unknown
01:13
created

server.php (1 issue)

Severity

Upgrade to new PHP Analysis Engine

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
The doc-type string/null could not be parsed: Unknown type name "string/null" at position 0. (view supported doc-types)

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.

Loading history...
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