1
0
mirror of https://github.com/maximebf/php-debugbar.git synced 2025-01-17 13:28:35 +01:00

Add spaces

This commit is contained in:
Barry vd. Heuvel 2013-10-02 16:04:40 +02:00
parent ebe4e87851
commit 5dcce0235a

View File

@ -52,9 +52,9 @@ abstract class DataCollector implements DataCollectorInterface
*/ */
public function formatDuration($seconds) public function formatDuration($seconds)
{ {
if($seconds < 0.001){ if ($seconds < 0.001) {
return round($seconds * 1000000) . 'μs'; return round($seconds * 1000000) . 'μs';
}elseif ($seconds < 1) { } else if ($seconds < 1) {
return round($seconds * 1000, 2) . 'ms'; return round($seconds * 1000, 2) . 'ms';
} }
return round($seconds, 2) . 's'; return round($seconds, 2) . 's';