X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fprofiler%2FProfilerSimpleText.php;h=0ee7aad23bc43185833e4f1d48baf90a5fe52534;hb=d7079ce27e7ad7b859f99aa6ecabe546fb581b6c;hp=37350bf35cd47b9677257d60a611d469711bf61c;hpb=4feea6a4ec1fe0a1f7a2518d89c293fdb2df5f22;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/profiler/ProfilerSimpleText.php b/includes/profiler/ProfilerSimpleText.php index 37350bf35c..0ee7aad23b 100644 --- a/includes/profiler/ProfilerSimpleText.php +++ b/includes/profiler/ProfilerSimpleText.php @@ -31,7 +31,7 @@ * * @ingroup Profiler */ -class ProfilerSimpleText extends ProfilerSimple { +class ProfilerSimpleText extends ProfilerStandard { public $visible = false; /* Show as
 or \n";
+				print "\n";
 			} elseif ( $this->getContentType() === 'text/html' ) {
 				if ( $this->visible ) {
-					print '
'.self::$out.'
'; + print '
' . self::$out . '
'; } else { - print "\n"; + print "\n"; } } elseif ( $this->getContentType() === 'text/javascript' ) { - print "\n/*\n".self::$out."*/\n"; + print "\n/*\n" . self::$out . "*/\n"; } elseif ( $this->getContentType() === 'text/css' ) { - print "\n/*\n".self::$out."*/\n"; + print "\n/*\n" . self::$out . "*/\n"; } } } @@ -71,7 +75,7 @@ class ProfilerSimpleText extends ProfilerSimple { } static function format( $item, $key, $totalReal ) { - $perc = $totalReal ? $item['real']/$totalReal*100 : 0; + $perc = $totalReal ? $item['real'] / $totalReal * 100 : 0; self::$out .= sprintf( "%6.2f%% %3.6f %6d - %s\n", $perc, $item['real'], $item['count'], $key ); }