Passed
Pull Request — master (#24)
by Dmitriy
11:44
created

JsonReader::readRaw()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
c 0
b 0
f 0
rs 10
cc 1
nc 1
nop 1
1
<?php
2
3
namespace Yiisoft\Composer\Config\Reader;
4
5
/**
6
 * JsonReader - reads PHP files.
7
 */
8
class JsonReader extends AbstractReader
9
{
10
    protected function readRaw($path)
11
    {
12
        return json_decode($this->getFileContents($path), true, 512, JSON_THROW_ON_ERROR);
13
    }
14
}
15