INI   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 12
rs 10
ccs 5
cts 5
cp 1
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A parseString() 0 6 1
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 12
    protected function parseString(string $input)
20
    {
21 12
        return parse_ini_string(
22 12
            $input,
23 12
            (bool) $this->getOption('process_sections', true),
24 12
            (int) $this->getOption('scanner_mode', \INI_SCANNER_TYPED)
25 12
        );
26
    }
27
28
}
29