Fix spacing between control structure and opening parenthesis
This commit is contained in:
@ -32,17 +32,16 @@ class Supervisor {
|
||||
// force-running the daemon, return its status and do nothing
|
||||
if($elapsed_time < CronHelper::DAEMON_EXECUTION_TIMEOUT && !$this->force_run) {
|
||||
return $this->formatDaemonStatusMessage($daemon['status']);
|
||||
}
|
||||
// if it's been less than 40 seconds since last execution, we are
|
||||
// force-running the daemon and it's either being started or stopped,
|
||||
// return its status and do nothing
|
||||
elseif($elapsed_time < CronHelper::DAEMON_EXECUTION_TIMEOUT &&
|
||||
} elseif($elapsed_time < CronHelper::DAEMON_EXECUTION_TIMEOUT &&
|
||||
$this->force_run &&
|
||||
in_array($daemon['status'], array(
|
||||
Daemon::STATUS_STOPPING,
|
||||
Daemon::STATUS_STARTING
|
||||
))
|
||||
) {
|
||||
// if it's been less than 40 seconds since last execution, we are
|
||||
// force-running the daemon and it's either being started or stopped,
|
||||
// return its status and do nothing
|
||||
return $this->formatDaemonStatusMessage($daemon['status']);
|
||||
}
|
||||
// re-create (restart) daemon
|
||||
|
@ -23,8 +23,7 @@ class Renderer {
|
||||
// vertical orientation denotes column container
|
||||
if($block['type'] === 'container' && $block['orientation'] === 'vertical') {
|
||||
$column_content[] = $rendered_block_element;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$block_content .= $rendered_block_element;
|
||||
}
|
||||
}, $data['blocks']);
|
||||
|
@ -86,7 +86,9 @@ class Router {
|
||||
}
|
||||
|
||||
function checkPermissions() {
|
||||
if(!current_user_can('manage_options')) { die(); }
|
||||
if(!current_user_can('manage_options')) {
|
||||
die();
|
||||
}
|
||||
}
|
||||
|
||||
function verifyToken() {
|
||||
|
Reference in New Issue
Block a user