Merge "Perform a permission check on the title when changing the page language"
[lhc/web/wiklou.git] / includes / profiler / output / ProfilerOutput.php
index e8e0085..20b0780 100644 (file)
@@ -28,10 +28,9 @@ abstract class ProfilerOutput {
        /** @var Profiler */
        protected $collector;
        /** @var array Configuration of $wgProfiler */
-       protected $params = array();
+       protected $params = [];
 
        /**
-        * Constructor
         * @param Profiler $collector The actual profiler
         * @param array $params Configuration array, passed down from $wgProfiler
         */
@@ -48,17 +47,10 @@ abstract class ProfilerOutput {
                return true;
        }
 
-       /**
-        * Delegate to the proper method
-        */
-       public function log() {
-               $this->logStandardData( $this->collector->getFunctionStats() );
-       }
-
        /**
         * Log MediaWiki-style profiling data
         *
         * @param array $stats Result of Profiler::getFunctionStats()
         */
-       abstract protected function logStandardData( array $stats );
+       abstract public function log( array $stats );
 }