DotEnv   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 1
cbo 1
dl 0
loc 22
ccs 4
cts 4
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A setEnvironmentVariable() 0 6 1
1
<?php namespace Lanin\Laravel\SetupWizard\Support;
2
3
class DotEnv extends \Dotenv
4
{
5
    /**
6
     * @var array
7
     */
8
    public static $variables = [];
9
10
    /**
11
     * Overwrite to save variables to array.
12
     *
13
     * @param string $name
14
     * @param string|null $value
15
     *
16
     * @return void
17
     */
18 4
    public static function setEnvironmentVariable($name, $value = null)
19
    {
20 4
        list($name, $value) = static::normaliseEnvironmentVariable($name, $value);
21
22 4
        static::$variables[$name] = $value;
23
    }
24
}