From 4ac9fa081a7c045f6a9f1cfc529d82423f485b2e Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Sun, 8 Dec 2013 09:55:49 +0100 Subject: Update to MediaWiki 1.22.0 --- includes/profiler/ProfilerSimpleText.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'includes/profiler/ProfilerSimpleText.php') diff --git a/includes/profiler/ProfilerSimpleText.php b/includes/profiler/ProfilerSimpleText.php index 37350bf3..1d57ea8d 100644 --- a/includes/profiler/ProfilerSimpleText.php +++ b/includes/profiler/ProfilerSimpleText.php @@ -51,17 +51,17 @@ class ProfilerSimpleText extends ProfilerSimple { uasort( $this->mCollated, array( 'self', 'sort' ) ); array_walk( $this->mCollated, array( 'self', 'format' ), $totalReal ); if ( PHP_SAPI === 'cli' ) { - print "\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 +71,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 ); } -- cgit v1.2.2