JSONResultPrinter::getOutput()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 8
c 0
b 0
f 0
ccs 0
cts 3
cp 0
rs 10
cc 1
nc 1
nop 2
crap 2
1
<?php declare(strict_types=1);
2
3
/**
4
 * @license  http://opensource.org/licenses/mit-license.php MIT
5
 * @link     https://github.com/nicoSWD
6
 * @author   Nicolas Oelgart <[email protected]>
7
 */
8
namespace nicoSWD\SecHeaderCheck\Infrastructure\ResultPrinter;
9
10
use nicoSWD\SecHeaderCheck\Domain\Result\AuditionResult;
11
use nicoSWD\SecHeaderCheck\Domain\ResultPrinter\OutputOptions;
12
use nicoSWD\SecHeaderCheck\Domain\ResultPrinter\ResultPrinterInterface;
13
14
final class JSONResultPrinter implements ResultPrinterInterface
15
{
16
    public function getOutput(AuditionResult $scanResults, OutputOptions $outputOptions): string
17
    {
18
        $data = [
19
            'score'    => '',
20
            'warnings' => '',
21
        ];
22
23
        return json_encode($data, JSON_PRETTY_PRINT);
24
    }
25
}
26