X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fprofiler%2FProfilerSectionOnly.php;h=41260a83882cdd94866c32dca4bb2641e35e8842;hp=1f8d33b1927fb5d5b79dfb1775c3f531e6880e6f;hb=203cedd029e42bd3c55e50a9cff6f14373d8aa67;hpb=f873b499650ef5d27570f9cb96d01d1477f9e089 diff --git a/includes/profiler/ProfilerSectionOnly.php b/includes/profiler/ProfilerSectionOnly.php index 1f8d33b192..41260a8388 100644 --- a/includes/profiler/ProfilerSectionOnly.php +++ b/includes/profiler/ProfilerSectionOnly.php @@ -27,7 +27,6 @@ * $wgProfiler['visible'] = true; * @endcode * - * @author Aaron Schulz * @ingroup Profiler * @since 1.25 */ @@ -35,7 +34,7 @@ class ProfilerSectionOnly extends Profiler { /** @var SectionProfiler */ protected $sprofiler; - public function __construct( array $params = array() ) { + public function __construct( array $params = [] ) { parent::__construct( $params ); $this->sprofiler = new SectionProfiler(); } @@ -73,7 +72,7 @@ class ProfilerSectionOnly extends Profiler { */ protected function getFunctionReport() { $data = $this->getFunctionStats(); - usort( $data, function( $a, $b ) { + usort( $data, function ( $a, $b ) { if ( $a['real'] === $b['real'] ) { return 0; } @@ -83,7 +82,7 @@ class ProfilerSectionOnly extends Profiler { $width = 140; $nameWidth = $width - 65; $format = "%-{$nameWidth}s %6d %9d %9d %9d %9d %7.3f%% %9d"; - $out = array(); + $out = []; $out[] = sprintf( "%-{$nameWidth}s %6s %9s %9s %9s %9s %7s %9s", 'Name', 'Calls', 'Total', 'Min', 'Each', 'Max', '%', 'Mem' );