Merge "Rewrite pref cleanup script"
[lhc/web/wiklou.git] / maintenance / benchmarks / benchmarkCSSMin.php
index 3eaa88d..a7d998d 100644 (file)
@@ -52,11 +52,11 @@ class BenchmarkCSSMin extends Benchmarker {
 
                $this->bench( [
                        "minify ($filename)" => [
-                               'function' => [ 'CSSMin', 'minify' ],
+                               'function' => [ CSSMin::class, 'minify' ],
                                'args' => [ $css ]
                        ],
                        "remap ($filename)" => [
-                               'function' => [ 'CSSMin', 'remap' ],
+                               'function' => [ CSSMin::class, 'remap' ],
                                'args' => [ $css, dirname( $file ), 'https://example.org/test/', true ]
                        ],
                ] );
@@ -72,5 +72,5 @@ class BenchmarkCSSMin extends Benchmarker {
        }
 }
 
-$maintClass = 'BenchmarkCSSMin';
+$maintClass = BenchmarkCSSMin::class;
 require_once RUN_MAINTENANCE_IF_MAIN;