Code Duplication    Length = 4-4 lines in 3 locations

src/Renderer/Text/MicrotimePlugin.php 3 locations

@@ 33-36 (lines=4) @@
30
        $out .= $indent.$this->renderer->colorType('TIME:').' ';
31
        $out .= $this->renderer->colorValue($r->getDateTime()->format('Y-m-d H:i:s.u')).PHP_EOL;
32
33
        if ($r->lap !== null) {
34
            $out .= $indent.$this->renderer->colorType('SINCE LAST CALL:').' ';
35
            $out .= $this->renderer->colorValue(round($r->lap, 4).'s').'.'.PHP_EOL;
36
        }
37
        if ($r->total !== null) {
38
            $out .= $indent.$this->renderer->colorType('SINCE START:').' ';
39
            $out .= $this->renderer->colorValue(round($r->total, 4).'s').'.'.PHP_EOL;
@@ 37-40 (lines=4) @@
34
            $out .= $indent.$this->renderer->colorType('SINCE LAST CALL:').' ';
35
            $out .= $this->renderer->colorValue(round($r->lap, 4).'s').'.'.PHP_EOL;
36
        }
37
        if ($r->total !== null) {
38
            $out .= $indent.$this->renderer->colorType('SINCE START:').' ';
39
            $out .= $this->renderer->colorValue(round($r->total, 4).'s').'.'.PHP_EOL;
40
        }
41
        if ($r->avg !== null) {
42
            $out .= $indent.$this->renderer->colorType('AVERAGE DURATION:').' ';
43
            $out .= $this->renderer->colorValue(round($r->avg, 4).'s').'.'.PHP_EOL;
@@ 41-44 (lines=4) @@
38
            $out .= $indent.$this->renderer->colorType('SINCE START:').' ';
39
            $out .= $this->renderer->colorValue(round($r->total, 4).'s').'.'.PHP_EOL;
40
        }
41
        if ($r->avg !== null) {
42
            $out .= $indent.$this->renderer->colorType('AVERAGE DURATION:').' ';
43
            $out .= $this->renderer->colorValue(round($r->avg, 4).'s').'.'.PHP_EOL;
44
        }
45
46
        $bytes = Utils::getHumanReadableBytes($r->mem);
47
        $mem = $r->mem.' bytes ('.round($bytes['value'], 3).' '.$bytes['unit'].')';