Code Duplication    Length = 4-4 lines in 2 locations

src/Tool/Performance.php 2 locations

@@ 37-40 (lines=4) @@
34
        if (strlen($file)) $file = " ($file)";
35
36
        $_mem = memory_get_usage() / (1024 * 1024) - $this->data['lastMemory'];
37
        if ($type == 'all' || $type == 'endnote' || $type == 'memory' || $_GET['data'] == $this->data['lastIndex']) {
38
            $line .= number_format(round($_mem, 3), 3) . ' Mb';
39
            $this->data['lastMemory'] = memory_get_usage() / (1024 * 1024);
40
        }
41
42
        $_time = microtime(TRUE) - $this->data['lastMicrotime'];
43
        if ($type == 'all' || $type == 'endnote' || $type == 'time' || $_GET['data'] == $this->data['lastIndex']) {
@@ 43-46 (lines=4) @@
40
        }
41
42
        $_time = microtime(TRUE) - $this->data['lastMicrotime'];
43
        if ($type == 'all' || $type == 'endnote' || $type == 'time' || $_GET['data'] == $this->data['lastIndex']) {
44
            $line .= (($line == '[') ? '' : ', ') . (round($_time, 3)) . ' secs';
45
            $this->data['lastMicrotime'] = microtime(TRUE);
46
        }
47
        $line .= '] ' . $title;
48
        $line = (($type != 'note') ? '[' . number_format(round(memory_get_usage() / (1024 * 1024), 3), 3) . ' Mb, '
49
                . (round(microtime(TRUE) - $this->data['initMicrotime'], 3))