Code Duplication    Length = 16-16 lines in 2 locations

Helper/ConsoleReporter.php 1 location

@@ 43-58 (lines=16) @@
40
41
    public function onAfterRun(CheckInterface $check, ResultInterface $result, $checkAlias = null)
42
    {
43
        switch (true) {
44
            case $result instanceof SuccessInterface:
45
                $this->output->write('<info>OK</info>');
46
                break;
47
48
            case $result instanceof WarningInterface:
49
                $this->output->write('<comment>WARNING</comment>');
50
                break;
51
52
            case $result instanceof SkipInterface:
53
                $this->output->write('<question>SKIP</question>');
54
                break;
55
56
            default:
57
                $this->output->write('<error>FAIL</error>');
58
        }
59
60
        $this->output->write(sprintf(' %s', $check->getLabel()));
61

Helper/RawConsoleReporter.php 1 location

@@ 43-58 (lines=16) @@
40
41
    public function onAfterRun(CheckInterface $check, ResultInterface $result, $checkAlias = null)
42
    {
43
        switch (true) {
44
            case $result instanceof SuccessInterface:
45
                $this->output->write('OK');
46
                break;
47
48
            case $result instanceof WarningInterface:
49
                $this->output->write('WARNING');
50
                break;
51
52
            case $result instanceof SkipInterface:
53
                $this->output->write('SKIP');
54
                break;
55
56
            default:
57
                $this->output->write('FAIL');
58
        }
59
60
        $performanceData = $this->getNagiosPerformanceData();
61