X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fbenchmarks%2FbenchmarkPurge.php;h=e006cf53e64830fd618c66b252cc01765369642a;hb=ffba23d177d5eee876bdc59cdf1b945281b18041;hp=e67d2261b9aa1f77dc74485aabbbeae046662163;hpb=1f2706b49939bfc85ec5abc8ccc24aacd938eed0;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/benchmarks/benchmarkPurge.php b/maintenance/benchmarks/benchmarkPurge.php index e67d2261b9..e006cf53e6 100644 --- a/maintenance/benchmarks/benchmarkPurge.php +++ b/maintenance/benchmarks/benchmarkPurge.php @@ -41,9 +41,9 @@ class BenchmarkPurge extends Benchmarker { } else { $this->output( "There are " . count( $wgSquidServers ) . " defined squid servers:\n" ); if ( $this->hasOption( 'count' ) ) { - $lengths = array( intval( $this->getOption( 'count' ) ) ); + $lengths = [ intval( $this->getOption( 'count' ) ) ]; } else { - $lengths = array( 1, 10, 100 ); + $lengths = [ 1, 10, 100 ]; } foreach ( $lengths as $length ) { $urls = $this->randomUrlList( $length ); @@ -79,7 +79,7 @@ class BenchmarkPurge extends Benchmarker { * @return array */ private function randomUrlList( $length ) { - $list = array(); + $list = []; for ( $i = 0; $i < $length; $i++ ) { $list[] = $this->randomUrl(); }