Test Failed
Push — stable ( 994ca0...7d5c83 )
by Nuno
04:30
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
eloc 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 LaravelZero\Framework\Application;
18
use LaravelZero\Framework\Contracts\BoostrapperContract;
19
use Illuminate\Foundation\Bootstrap\LoadEnvironmentVariables as BaseLoadEnvironmentVariables;
20
21
/**
22
 * @internal
23
 */
24
final class LoadEnvironmentVariables implements BoostrapperContract
25
{
26
    /**
27
     * {@inheritdoc}
28
     */
29 29
    public function bootstrap(Application $app): void
30
    {
31 29
        if (class_exists(\Dotenv\Dotenv::class)) {
32 29
            $app->make(BaseLoadEnvironmentVariables::class)->bootstrap($app);
33
        }
34 29
    }
35
}
36