Completed
Branch master (1f9106)
by Nils
02:44
created

LiveReporter::processResult()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 0
loc 8
rs 9.4285
cc 2
eloc 5
nc 2
nop 1
1
<?php
2
3
namespace whm\Smoke\Extensions\SmokeReporter\Reporter;
4
5
use Symfony\Component\Console\Output\OutputInterface;
6
use whm\Smoke\Scanner\Result;
7
8
class LiveReporter extends CliReporter
9
{
10
    public function init(OutputInterface $_output)
11
    {
12
        $this->setOutputInterface($_output);
13
    }
14
15
    public function processResult(Result $result)
16
    {
17
        if ($result->isSuccess()) {
18
            $this->renderSuccess($result);
19
        } else {
20
            $this->renderFailure($result);
21
        }
22
    }
23
24
    public function finish()
25
    {
26
    }
27
}
28