* @licence GNU General Public Licence 2.0 or later
*/
-require_once( dirname(__FILE__) . '/Maintenance.php' );
+require_once( dirname( __FILE__ ) . '/Maintenance.php' );
class InitStats extends Maintenance {
public function __construct() {
$image = $counter->files();
$this->output( "{$image}\n" );
- if( !$this->hasOption('noviews') ) {
+ if ( !$this->hasOption( 'noviews' ) ) {
$this->output( "Counting total page views..." );
$views = $counter->views();
$this->output( "{$views}\n" );
}
- if( $this->hasOption( 'active' ) ) {
+ if ( $this->hasOption( 'active' ) ) {
$this->output( "Counting active users..." );
$active = SiteStatsUpdate::cacheUpdate();
$this->output( "{$active}\n" );
$this->output( "\nUpdating site statistics..." );
- if( $this->hasOption( 'update' ) ) {
+ if ( $this->hasOption( 'update' ) ) {
$counter->update();
} else {
$counter->refresh();