Improve code legibility in MDConsole
This commit is contained in:
		| @@ -116,7 +116,12 @@ final class MDConsole { | ||||
|  | ||||
|             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); | ||||
|  | ||||
|     } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user