X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2Fbenchmarks%2Fbench_wfIsWindows.php;h=ac0caf60962e42c2dd7b0c6e0e51e3891c48a993;hb=4b73a8b6fbb6da651af850a7d667e6e8d59e6fce;hp=8446694ba3e887e540325934fcc21ec2e071037c;hpb=27f8aa732e55f0655255152fa22655fa07424c2d;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/benchmarks/bench_wfIsWindows.php b/maintenance/benchmarks/bench_wfIsWindows.php index 8446694ba3..ac0caf6096 100644 --- a/maintenance/benchmarks/bench_wfIsWindows.php +++ b/maintenance/benchmarks/bench_wfIsWindows.php @@ -34,14 +34,14 @@ require_once __DIR__ . '/Benchmarker.php'; class BenchWfIsWindows extends Benchmarker { public function __construct() { parent::__construct(); - $this->mDescription = "Benchmark for wfIsWindows."; + $this->addDescription( 'Benchmark for wfIsWindows.' ); } public function execute() { - $this->bench( array( - array( 'function' => array( $this, 'wfIsWindows' ) ), - array( 'function' => array( $this, 'wfIsWindowsCached' ) ), - ) ); + $this->bench( [ + [ 'function' => [ $this, 'wfIsWindows' ] ], + [ 'function' => [ $this, 'wfIsWindowsCached' ] ], + ] ); print $this->getFormattedResults(); }