Passed
Push — master ( c423ac...6bd0a6 )
by Enjoys
10:06
created

INI::parseFile()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 4
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 6
ccs 5
cts 5
cp 1
crap 1
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Enjoys\Config\Parse;
6
7
use Enjoys\Config\Parse;
8
9
/**
10
 * Class INI
11
 * @package Enjoys\Config\Parse
12
 */
13
class INI extends Parse
14
{
15
16
    /**
17
     * {@inheritDoc}
18
     */
19 10
    protected function parseString(string $input)
20
    {
21 10
        return parse_ini_string(
22 10
            $input,
23 10
            (bool) $this->getOption('process_sections', true),
24 10
            (int) $this->getOption('scanner_mode', \INI_SCANNER_TYPED)
25 10
        );
26
    }
27
28
}
29