Passed
Pull Request — master (#22)
by Dmitriy
37:40 queued 22:25
created

JsonReader   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 2
dl 0
loc 5
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A readRaw() 0 3 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