Passed
Push — stable ( bf53fe...29e605 )
by Nuno
06:22
created

LoadEnvironmentVariables::bootstrap()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 2.2559

Importance

Changes 0
Metric Value
cc 2
eloc 4
nc 2
nop 0
dl 0
loc 8
ccs 3
cts 5
cp 0.6
crap 2.2559
rs 9.4285
c 0
b 0
f 0
1
<?php
2
3
namespace LaravelZero\Framework\Bootstrappers;
4
5
/**
6
 * This is the Laravel Zero Framework Bootstrapper Load Environment Variables class.
7
 *
8
 * Loads environment variables.
9
 *
10
 * @author Nuno Maduro <[email protected]>
11
 */
12
class LoadEnvironmentVariables extends Bootstrapper
13
{
14
    /**
15
     * {@inheritdoc}
16
     */
17 57
    public function bootstrap(): void
18
    {
19 57
        if (class_exists(\Dotenv\Dotenv::class)) {
20
            $this->container->make(\Illuminate\Foundation\Bootstrap\LoadEnvironmentVariables::class)->bootstrap(
21
                $this->container
22
            );
23
        }
24 57
    }
25
}
26