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

LoadEnvironmentVariables   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
dl 0
loc 9
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A bootstrap() 0 4 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