X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fprofiler%2FProfilerXhprof.php;h=ffa441ed87284cd136e9466080c9d46baac689a4;hp=51070136730936ccefd9bd631f26808d52d21a84;hb=689c847a32e7fe8a0b3a559a88a627a252c5018e;hpb=aaf1e17088d1f8349e386167ca0f2585f7dbdae5 diff --git a/includes/profiler/ProfilerXhprof.php b/includes/profiler/ProfilerXhprof.php index 5107013673..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 @@ -200,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; }