Merge "Remove "@author Aaron Schulz" annotations"
[lhc/web/wiklou.git] / includes / profiler / ProfilerSectionOnly.php
index 1f8d33b..41260a8 100644 (file)
@@ -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'
                );