JsonReader   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A readRaw() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yiisoft\Composer\Config\Reader;
6
7
/**
8
 * JsonReader - reads PHP files.
9
 */
10
class JsonReader extends AbstractReader
11
{
12
    protected function readRaw(string $path)
13
    {
14
        return json_decode($this->getFileContents($path), true, 512, JSON_THROW_ON_ERROR);
15
    }
16
}
17