Passed
Branch develop (1ecfd6)
by Nuno
02:37
created

LoadEnvironmentVariables::bootstrap()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 2
nc 2
nop 1
crap 2
1
<?php
2
3
declare(strict_types=1);
4
5
/**
6
 * This file is part of Laravel Zero.
7
 *
8
 * (c) Nuno Maduro <[email protected]>
9
 *
10
 *  For the full copyright and license information, please view the LICENSE
11
 *  file that was distributed with this source code.
12
 */
13
14
namespace LaravelZero\Framework\Bootstrap;
15
16
use function class_exists;
17
use Illuminate\Contracts\Foundation\Application;
18
use LaravelZero\Framework\Contracts\BoostrapperContract;
19
use Illuminate\Foundation\Bootstrap\LoadEnvironmentVariables as BaseLoadEnvironmentVariables;
20
21
final class LoadEnvironmentVariables extends BaseLoadEnvironmentVariables implements BoostrapperContract
22
{
23
    /**
24
     * {@inheritdoc}
25
     */
26 22
    public function bootstrap(Application $app): void
27
    {
28 22
        if (class_exists(\Dotenv\Dotenv::class)) {
29 22
            parent::bootstrap($app);
30
        }
31 22
    }
32
}
33