dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove unused title parameter from EditPage::getEditToolbar()
[lhc/web/wiklou.git]
/
includes
/
profiler
/
ProfilerSectionOnly.php
diff --git
a/includes/profiler/ProfilerSectionOnly.php
b/includes/profiler/ProfilerSectionOnly.php
index
41260a8
..
504859d
100644
(file)
--- a/
includes/profiler/ProfilerSectionOnly.php
+++ b/
includes/profiler/ProfilerSectionOnly.php
@@
-22,7
+22,7
@@
* Profiler that only tracks explicit profiling sections
*
* @code
* Profiler that only tracks explicit profiling sections
*
* @code
- * $wgProfiler['class'] =
'ProfilerSectionOnly'
;
+ * $wgProfiler['class'] =
ProfilerSectionOnly::class
;
* $wgProfiler['output'] = 'text';
* $wgProfiler['visible'] = true;
* @endcode
* $wgProfiler['output'] = 'text';
* $wgProfiler['visible'] = true;
* @endcode
@@
-73,10
+73,7
@@
class ProfilerSectionOnly extends Profiler {
protected function getFunctionReport() {
$data = $this->getFunctionStats();
usort( $data, function ( $a, $b ) {
protected function getFunctionReport() {
$data = $this->getFunctionStats();
usort( $data, function ( $a, $b ) {
- if ( $a['real'] === $b['real'] ) {
- return 0;
- }
- return ( $a['real'] > $b['real'] ) ? -1 : 1; // descending
+ return $b['real'] <=> $a['real']; // descending
} );
$width = 140;
} );
$width = 140;