src/Maintenance/Maintenance.php
public function setMaintenanceMode($value) {
		if ($value === false) {
			if (!file_exists($this->file)) {
				return true;
			}
			return unlink($this->file);
		}

		if ($value) {
			$value = time() + $value * MINUTE;
		}

		return (bool)file_put_contents($this->file, $value);
	}
public function setMaintenanceMode($value) {
		if ($value === false) {
			if (!file_exists($this->file)) {
				return true;
			}
			return unlink($this->file);
		}

		if ($value) {
			$value = time() + $value * MINUTE;
		}

		return (bool)file_put_contents($this->file, $value);
	}
public function setMaintenanceMode ( $ value ) { if ( $ value === false ) { if ( ! file_exists ( $ this -> file ) ) { return true ; } return unlink ( $ this -> file ) ; } if ( $ value ) { $ value = time ( ) + $ value * MINUTE ; } return ( bool ) file_put_contents ( $ this -> file , $ value ) ; }
Set maintenance mode.

Integer (in minutes) to activate with timeout.
Using 0 it will have no timeout.

@param int|false $value False to deactivate, or Integer to activate.
@return bool Success
Set maintenance mode .