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

LoadEnvironmentVariables   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Test Coverage

Coverage 60%

Importance

Changes 0
Metric Value
dl 0
loc 14
ccs 3
cts 5
cp 0.6
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 2

1 Method

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