JsonOutput   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 3

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 3
dl 0
loc 10
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A result() 0 4 1
1
<?php
2
namespace phphound\output;
3
4
use phphound\AnalysisResult;
5
6
class JsonOutput extends AbstractOutput
7
{
8
    /**
9
     * @inheritdoc
10
     */
11
    public function result(AnalysisResult $result)
12
    {
13
        $this->cli->out(json_encode($result->toArray()));
14
    }
15
}
16