Passed
Push — master ( b4d66c...c4c0f5 )
by Lexey
02:18
created

Env::parse()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
namespace LF\EnvDiff;
4
5
use InvalidArgumentException;
6
use LF\EnvDiff\Env\Dumper;
7
use LF\EnvDiff\Env\Parser;
8
9
class Env
10
{
11
    /**
12
     * @param array $envArray
13
     *
14
     * @return string
15
     */
16
    public static function dump(array $envArray)
17
    {
18
        return (new Dumper())->dump($envArray);
19
    }
20
21
    /**
22
     * @param string $path
23
     *
24
     * @return array
25
     *
26
     * @throws InvalidArgumentException
27
     */
28
    public static function parse($path)
29
    {
30
        return (new Parser())->parse($path);
31
    }
32
}
33