diff --git a/lib/Config/Permissions.php b/lib/Config/Permissions.php
index b0ea848c73..d224a82dfe 100644
--- a/lib/Config/Permissions.php
+++ b/lib/Config/Permissions.php
@@ -25,7 +25,7 @@ class Permissions {
'mailpoet_statistics'
);
- foreach($roles as $role_key){
+ foreach($roles as $role_key) {
// get role based on role key
$role = get_role($role_key);
@@ -40,4 +40,4 @@ class Permissions {
}
}
}
-}
\ No newline at end of file
+}
diff --git a/lib/Cron/Supervisor.php b/lib/Cron/Supervisor.php
index a598283e85..9490bd159a 100644
--- a/lib/Cron/Supervisor.php
+++ b/lib/Cron/Supervisor.php
@@ -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
@@ -90,4 +89,4 @@ class Supervisor {
}
return $formattedResult;
}
-}
\ No newline at end of file
+}
diff --git a/lib/Cron/Workers/Scheduler.php b/lib/Cron/Workers/Scheduler.php
index d3d220272a..d1083050d4 100644
--- a/lib/Cron/Workers/Scheduler.php
+++ b/lib/Cron/Workers/Scheduler.php
@@ -84,7 +84,7 @@ class Scheduler {
return;
}
// schedule new queue if the post notification is not destined for immediate delivery
- if ($newsletter->intervalType !== NewsletterScheduler::INTERVAL_IMMEDIATELY) {
+ if($newsletter->intervalType !== NewsletterScheduler::INTERVAL_IMMEDIATELY) {
$new_queue = SendingQueue::create();
$new_queue->newsletter_id = $newsletter->id;
$new_queue->status = NewsletterScheduler::STATUS_SCHEDULED;
@@ -174,4 +174,4 @@ class Scheduler {
}
return;
}
-}
\ No newline at end of file
+}
diff --git a/lib/Form/Renderer.php b/lib/Form/Renderer.php
index a7bea54f62..afa67bc01d 100644
--- a/lib/Form/Renderer.php
+++ b/lib/Form/Renderer.php
@@ -41,7 +41,7 @@ class Renderer {
static function renderBlocks($blocks = array()) {
$html = '';
- foreach ($blocks as $key => $block) {
+ foreach($blocks as $key => $block) {
$html .= static::renderBlock($block)."\n";
}
@@ -93,4 +93,4 @@ class Renderer {
}
return $html;
}
-}
\ No newline at end of file
+}
diff --git a/lib/Form/Widget.php b/lib/Form/Widget.php
index c53777b15f..7ea2be7a4a 100644
--- a/lib/Form/Widget.php
+++ b/lib/Form/Widget.php
@@ -67,7 +67,7 @@ class Widget extends \WP_Widget {