* @ingroup Benchmark
*/
-require_once( __DIR__ . '/Benchmarker.php' );
+require_once __DIR__ . '/Benchmarker.php';
function bfNormalizeTitleStrTr( $str ) {
- return strtr( $str, '_', ' ' );
+ return strtr( $str, '_', ' ' );
}
function bfNormalizeTitleStrReplace( $str ) {
- return str_replace( '_', ' ', $str );
+ return str_replace( '_', ' ', $str );
}
/**
str_replace( "_", " ", "[[MediaWiki:Some_random_test_page]]");
}
-
function benchstrtr_indirect() {
bfNormalizeTitleStrTr( "[[MediaWiki:Some_random_test_page]]" );
}
}
$maintClass = 'bench_strtr_str_replace';
-require_once( RUN_MAINTENANCE_IF_MAIN );
+require_once RUN_MAINTENANCE_IF_MAIN;