Follow up r75446 : simpler bench function, correct parenthesis.
authorAntoine Musso <hashar@users.mediawiki.org>
Tue, 26 Oct 2010 20:09:58 +0000 (20:09 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Tue, 26 Oct 2010 20:09:58 +0000 (20:09 +0000)
maintenance/benchmarks/bench_wfIsWindows.php

index c729206..c53b991 100644 (file)
@@ -20,16 +20,12 @@ class bench_wfIsWindows extends Benchmarker {
        }
 
        static function is_win() {
-               return substr( php_uname(), 0, 7 == 'Windows' );
+               return substr( php_uname(), 0, 7 ) == 'Windows' ;
        }
 
        // bench function 1
        function wfIsWindows() {
-               if( self::is_win() ) {
-                       return true;
-               } else {
-                       return false;
-               }
+               return self::is_win();
        }
 
        // bench function 2