$this->bench( array(
array( 'function' => array( $this, 'wfIsWindows' ) ),
array( 'function' => array( $this, 'wfIsWindowsCached' ) ),
- ));
+ ) );
print $this->getFormattedResults();
}
// bench function 2
function wfIsWindowsCached() {
static $isWindows = null;
- if( $isWindows == null ) {
+ if ( $isWindows == null ) {
$isWindows = self::is_win();
}
+
return $isWindows;
}
}