Improve code legibility in MDConsole

This commit is contained in:
Joshua Ramon Enslin 2020-09-05 22:32:12 +02:00 committed by Stefan Rohde-Enslin
parent f40613cb05
commit 16e8e5eb61

View File

@ -116,7 +116,12 @@ final class MDConsole {
if ($duration < 30) return; if ($duration < 30) return;
self::note("Long script run" . PHP_EOL . "Script run time, that's: " . \round($duration, 2) . PHP_EOL . "Peak memory usage: " . memory_get_peak_usage() . PHP_EOL . "Memory usage at end of script: " . \memory_get_usage()); $longDurationMsg = "Long script run" . PHP_EOL;
$longDurationMsg .= "Script run time, that's: " . \round($duration, 2) . PHP_EOL;
$longDurationMsg .= "Peak memory usage: " . \memory_get_peak_usage() . PHP_EOL;
$longDurationMsg .= "Memory usage at end of script: " . \memory_get_usage() . PHP_EOL;
self::note($longDurationMsg);
}, $startTime); }, $startTime);
} }