Merge "Add type hint against LinkTarget"
[lhc/web/wiklou.git] / maintenance / benchmarks / bench_utf8_title_check.php
index bd18adb..bdb197f 100644 (file)
@@ -75,24 +75,24 @@ class BenchUtf8TitleCheck extends Benchmarker {
                if ( !$this->canRun ) {
                        return;
                }
-               $benchmarks = array();
+               $benchmarks = [];
                foreach ( $this->data as $val ) {
-                       $benchmarks[] = array(
-                               'function' => array( $this, 'use_regexp' ),
-                               'args' => array( rawurldecode( $val ) )
-                       );
-                       $benchmarks[] = array(
-                               'function' => array( $this, 'use_regexp_non_capturing' ),
-                               'args' => array( rawurldecode( $val ) )
-                       );
-                       $benchmarks[] = array(
-                               'function' => array( $this, 'use_regexp_once_only' ),
-                               'args' => array( rawurldecode( $val ) )
-                       );
-                       $benchmarks[] = array(
-                               'function' => array( $this, 'use_mb_check_encoding' ),
-                               'args' => array( rawurldecode( $val ) )
-                       );
+                       $benchmarks[] = [
+                               'function' => [ $this, 'use_regexp' ],
+                               'args' => [ rawurldecode( $val ) ]
+                       ];
+                       $benchmarks[] = [
+                               'function' => [ $this, 'use_regexp_non_capturing' ],
+                               'args' => [ rawurldecode( $val ) ]
+                       ];
+                       $benchmarks[] = [
+                               'function' => [ $this, 'use_regexp_once_only' ],
+                               'args' => [ rawurldecode( $val ) ]
+                       ];
+                       $benchmarks[] = [
+                               'function' => [ $this, 'use_mb_check_encoding' ],
+                               'args' => [ rawurldecode( $val ) ]
+                       ];
                }
                $this->bench( $benchmarks );
                print $this->getFormattedResults();