Fix spacing between control structure and opening parenthesis

This commit is contained in:
Tautvidas Sipavičius
2016-06-29 18:54:01 +03:00
parent 0bfbe6dc79
commit 48f0c03425
16 changed files with 35 additions and 35 deletions

View File

@ -32,17 +32,16 @@ class Supervisor {
// force-running the daemon, return its status and do nothing // force-running the daemon, return its status and do nothing
if($elapsed_time < CronHelper::DAEMON_EXECUTION_TIMEOUT && !$this->force_run) { if($elapsed_time < CronHelper::DAEMON_EXECUTION_TIMEOUT && !$this->force_run) {
return $this->formatDaemonStatusMessage($daemon['status']); return $this->formatDaemonStatusMessage($daemon['status']);
} } elseif($elapsed_time < CronHelper::DAEMON_EXECUTION_TIMEOUT &&
// 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 &&
$this->force_run && $this->force_run &&
in_array($daemon['status'], array( in_array($daemon['status'], array(
Daemon::STATUS_STOPPING, Daemon::STATUS_STOPPING,
Daemon::STATUS_STARTING 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']); return $this->formatDaemonStatusMessage($daemon['status']);
} }
// re-create (restart) daemon // re-create (restart) daemon

View File

@ -23,8 +23,7 @@ class Renderer {
// vertical orientation denotes column container // vertical orientation denotes column container
if($block['type'] === 'container' && $block['orientation'] === 'vertical') { if($block['type'] === 'container' && $block['orientation'] === 'vertical') {
$column_content[] = $rendered_block_element; $column_content[] = $rendered_block_element;
} } else {
else {
$block_content .= $rendered_block_element; $block_content .= $rendered_block_element;
} }
}, $data['blocks']); }, $data['blocks']);

View File

@ -86,7 +86,9 @@ class Router {
} }
function checkPermissions() { function checkPermissions() {
if(!current_user_can('manage_options')) { die(); } if(!current_user_can('manage_options')) {
die();
}
} }
function verifyToken() { function verifyToken() {