Merge "Revert "Parser functions now format numbers according to page language""
[lhc/web/wiklou.git] / maintenance / benchmarks / bench_HTTP_HTTPS.php
index 40a877f..5b64bee 100644 (file)
@@ -38,15 +38,15 @@ class BenchHttpHttps extends Benchmarker {
        }
 
        public function execute() {
-               $this->bench( array(
-                       array( 'function' => array( $this, 'getHTTP' ) ),
-                       array( 'function' => array( $this, 'getHTTPS' ) ),
-               ) );
+               $this->bench( [
+                       [ 'function' => [ $this, 'getHTTP' ] ],
+                       [ 'function' => [ $this, 'getHTTPS' ] ],
+               ] );
                print $this->getFormattedResults();
        }
 
        static function doRequest( $proto ) {
-               Http::get( "$proto://localhost/", array(), __METHOD__ );
+               Http::get( "$proto://localhost/", [], __METHOD__ );
        }
 
        // bench function 1