X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fprofiler%2FProfilerXhprof.php;h=ffa441ed87284cd136e9466080c9d46baac689a4;hb=7babd362babcbf7f20adb8e12edb4f4bc1d4249f;hp=1bf4f545833044096c7b965aef9b5fb57844ec10;hpb=c8d361a38027ef5d808225b8a83f15417248aa67;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/profiler/ProfilerXhprof.php b/includes/profiler/ProfilerXhprof.php index 1bf4f54583..ffa441ed87 100644 --- a/includes/profiler/ProfilerXhprof.php +++ b/includes/profiler/ProfilerXhprof.php @@ -22,14 +22,14 @@ * Profiler wrapper for XHProf extension. * * @code - * $wgProfiler['class'] = 'ProfilerXhprof'; + * $wgProfiler['class'] = ProfilerXhprof::class; * $wgProfiler['flags'] = XHPROF_FLAGS_NO_BUILTINS; * $wgProfiler['output'] = 'text'; * $wgProfiler['visible'] = true; * @endcode * * @code - * $wgProfiler['class'] = 'ProfilerXhprof'; + * $wgProfiler['class'] = ProfilerXhprof::class; * $wgProfiler['flags'] = XHPROF_FLAGS_CPU | XHPROF_FLAGS_MEMORY | XHPROF_FLAGS_NO_BUILTINS; * $wgProfiler['output'] = 'udp'; * @endcode @@ -47,8 +47,7 @@ * a drop-in replacement for Xhprof. Just change the XHPROF_FLAGS_* constants * to TIDEWAYS_FLAGS_*. * - * @author Bryan Davis - * @copyright © 2014 Bryan Davis and Wikimedia Foundation. + * @copyright © 2014 Wikimedia Foundation and contributors * @ingroup Profiler * @see Xhprof * @see https://php.net/xhprof @@ -201,7 +200,7 @@ class ProfilerXhprof 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; }