diff --git a/push_notifications_web.module b/push_notifications_web.module
index 59b3e07..67dd53e 100644
--- a/push_notifications_web.module
+++ b/push_notifications_web.module
@@ -1,4 +1,5 @@
 <?php
+
 /**
  * @file
  * Emrys push notifications module file.
@@ -17,7 +18,7 @@ function push_notifications_web_help($path, $arg) {
  * Implements hook_menu().
  */
 function push_notifications_web_menu() {
-  $items                                                 = array();
+  $items = array();
   $items['admin/config/services/push_notifications_web'] = array(
     'title' => 'Push Notifications',
     'description' => 'Configuration for the Push Notifications module API',
@@ -56,20 +57,20 @@ function push_notifications_web_form($form, &$form_state) {
   );
 
   if (variable_get('push_notifications_web_UID', NULL) != NULL && variable_get('push_notifications_web_API', NULL) != NULL) {
-    $url    = 'https://pushem.org/api/user/get_license/?uid=' . variable_get("push_notifications_web_UID", NULL) . '&key=' . variable_get("push_notifications_web_API", NULL);
+    $url = 'https://pushem.org/api/user/get_license/?uid=' . variable_get("push_notifications_web_UID", NULL) . '&key=' . variable_get("push_notifications_web_API", NULL);
     $result = file_get_contents($url, FALSE);
     if (!empty($result)) {
       drupal_set_message(t('Your current License on <a href="https://pushem.org" target="_blank">PushEm</a> is'));
       print ' ' . $result;
       drupal_set_message(t('. Improve your license <a href="https://pushem.org/?q=pricing" target="_blank">HERE</a>'));
-      $url    = 'https://pushem.org/api/sources/get_all/?uid=' . variable_get("push_notifications_web_UID", NULL) . '&key=' . variable_get("push_notifications_web_API", NULL);
+      $url = 'https://pushem.org/api/sources/get_all/?uid=' . variable_get("push_notifications_web_UID", NULL) . '&key=' . variable_get("push_notifications_web_API", NULL);
       $result = file_get_contents($url, FALSE);
       if (!empty($result)) {
         $result = json_decode($result);
         foreach ($result as $value) {
           $push_notifications_web_options[$value->id] = $value->domain;
         }
-        $form['push_notifications_web_SOURCE']     = array(
+        $form['push_notifications_web_SOURCE'] = array(
           '#type' => 'select',
           '#title' => t('Select SOURCE'),
           '#options' => $push_notifications_web_options,
@@ -97,12 +98,12 @@ function push_notifications_web_form($form, &$form_state) {
     }
 
     if (variable_get('push_notifications_web_SOURCE', NULL) != NULL && variable_get('push_notifications_web_UID', NULL) != NULL && variable_get('push_notifications_web_API', NULL) != NULL) {
-      $url    = 'https://pushem.org/api/sources/get_by_id/?uid=' . variable_get('push_notifications_web_UID', NULL) . '&key=' . variable_get('push_notifications_web_API', NULL) . '&source=' . variable_get('push_notifications_web_SOURCE', NULL);
+      $url = 'https://pushem.org/api/sources/get_by_id/?uid=' . variable_get('push_notifications_web_UID', NULL) . '&key=' . variable_get('push_notifications_web_API', NULL) . '&source=' . variable_get('push_notifications_web_SOURCE', NULL);
       $result = file_get_contents($url, FALSE);
       if (!empty($result)) {
-        $result    = json_decode($result);
+        $result = json_decode($result);
         $token_url = 'https://pushem.org/api/user/get_token/?uid=' . variable_get('push_notifications_web_UID', NULL) . '&key=' . variable_get('push_notifications_web_API', NULL) . '&source=' . variable_get('push_notifications_web_SOURCE', NULL);
-        $token     = file_get_contents($token_url, FALSE);
+        $token = file_get_contents($token_url, FALSE);
         variable_set('push_notifications_web_TOKEN', $token);
         variable_set('push_notifications_web_DOMAIN', $result[0]->domain);
         variable_set('push_notifications_web_SUBDOMAIN', $result[0]->subdomain);
@@ -155,7 +156,7 @@ function push_notifications_web_page_build(&$page) {
       }
       if (variable_get('push_notifications_web_TYPE', NULL) == 1) {
         $manifest_file = '/' . drupal_get_path('module', 'push_notifications_web') . '/js/sdk/manifest.json.php';
-        $element       = array(
+        $element = array(
           '#tag' => 'link',
           '#attributes' => array(
             'href' => $manifest_file,
@@ -163,7 +164,7 @@ function push_notifications_web_page_build(&$page) {
           ),
         );
         drupal_add_html_head($element, 'pushem_mainfest');
-        $token      = variable_get("push_notifications_web_TOKEN", NULL);
+        $token = variable_get("push_notifications_web_TOKEN", NULL);
         $showwidget = variable_get("push_notifications_web_SHOWWIDGET", NULL);
         if ($user->uid > 0) {
           if ($showwidget != 1) {
diff --git a/push_notifications_web.rules.inc b/push_notifications_web.rules.inc
index e27df2b..9f73bb3 100644
--- a/push_notifications_web.rules.inc
+++ b/push_notifications_web.rules.inc
@@ -1,4 +1,5 @@
 <?php
+
 /**
  * @file
  * Emrys push notifications rules.
@@ -35,7 +36,6 @@ function push_notifications_web_rules_action_info() {
         ),
       ),
     ),
-
     'push_notifications_web_rules_action_send_notification_user' => array(
       'label' => t('Send PN to single user'),
       'group' => t('Push Notifications'),
@@ -66,7 +66,6 @@ function push_notifications_web_rules_action_info() {
         ),
       ),
     ),
-
     'push_notifications_web_rules_action_send_notification_user_sub_id' => array(
       'label' => t('Send PN to single subscribtion ID'),
       'group' => t('Push Notifications'),
@@ -98,7 +97,6 @@ function push_notifications_web_rules_action_info() {
         ),
       ),
     ),
-
     'push_notifications_web_rules_action_send_notification_endpoint' => array(
       'label' => t('Send PN to single endpoint'),
       'group' => t('Push Notifications'),
@@ -138,11 +136,11 @@ function push_notifications_web_rules_action_info() {
  */
 function push_notifications_web_rules_action_send_notification_all($title, $body, $link, $icon) {
   $settings = push_notifications_get_settings();
-  $pushem_uid    = $settings['pushem_uid'];
-  $pushem_key    = $settings['pushem_key'];
+  $pushem_uid = $settings['pushem_uid'];
+  $pushem_key = $settings['pushem_key'];
   $pushem_source = $settings['pushem_source'];
   if ($pushem_uid != NULL && $pushem_key != NULL && $pushem_source != NULL) {
-    $url    = 'https://pushem.org/api/subscribers/get_all/?uid=' . $pushem_uid . '&key=' . $pushem_key . '&source=' . $pushem_source;
+    $url = 'https://pushem.org/api/subscribers/get_all/?uid=' . $pushem_uid . '&key=' . $pushem_key . '&source=' . $pushem_source;
     $result = file_get_contents($url, FALSE);
     $result = json_decode($result);
     if (!empty($result)) {
@@ -153,9 +151,9 @@ function push_notifications_web_rules_action_send_notification_all($title, $body
         $pushem_sub_ids = implode(',', $pushem_sub_ids);
       }
       if (isset($pushem_sub_ids) && !empty($pushem_sub_ids)) {
-        $time   = time();
-        $body   = substr($body, 0, 200);
-        $url    = 'https://pushem.org/api/notifications/add/?uid=' . $pushem_uid . '&key=' . $pushem_key . '&source=' . $pushem_source . '&title=' . urlencode($title) . '&body=' . urlencode($body) . '&icon=' . urlencode($icon) . '&link=' . urlencode($link) . '&timestamp=' . $time . '&subscribers=' . $pushem_sub_ids;
+        $time = time();
+        $body = substr($body, 0, 200);
+        $url = 'https://pushem.org/api/notifications/add/?uid=' . $pushem_uid . '&key=' . $pushem_key . '&source=' . $pushem_source . '&title=' . urlencode($title) . '&body=' . urlencode($body) . '&icon=' . urlencode($icon) . '&link=' . urlencode($link) . '&timestamp=' . $time . '&subscribers=' . $pushem_sub_ids;
         $result = file_get_contents($url, FALSE);
       }
     }
@@ -167,11 +165,11 @@ function push_notifications_web_rules_action_send_notification_all($title, $body
  */
 function push_notifications_web_rules_action_send_notification_user($title, $body, $link, $icon, $account) {
   $settings = push_notifications_get_settings();
-  $pushem_uid    = $settings['pushem_uid'];
-  $pushem_key    = $settings['pushem_key'];
+  $pushem_uid = $settings['pushem_uid'];
+  $pushem_key = $settings['pushem_key'];
   $pushem_source = $settings['pushem_source'];
   if ($pushem_uid != NULL && $pushem_key != NULL && $pushem_source != NULL) {
-    $url    = 'https://pushem.org/api/subscribers/get_by_site_id/?uid=' . $pushem_uid . '&key=' . $pushem_key . '&source=' . $pushem_source . '&site_id=' . $account->uid;
+    $url = 'https://pushem.org/api/subscribers/get_by_site_id/?uid=' . $pushem_uid . '&key=' . $pushem_key . '&source=' . $pushem_source . '&site_id=' . $account->uid;
     $result = file_get_contents($url, FALSE);
     $result = json_decode($result);
     if (!empty($result)) {
@@ -182,9 +180,9 @@ function push_notifications_web_rules_action_send_notification_user($title, $bod
         $pushem_sub_ids = implode(',', $pushem_sub_ids);
       }
       if (isset($pushem_sub_ids) && !empty($pushem_sub_ids)) {
-        $time   = time();
-        $body   = substr($body, 0, 200);
-        $url    = 'https://pushem.org/api/notifications/add/?uid=' . $pushem_uid . '&key=' . $pushem_key . '&source=' . $pushem_source . '&title=' . urlencode($title) . '&body=' . urlencode($body) . '&icon=' . urlencode($icon) . '&link=' . urlencode($link) . '&timestamp=' . $time . '&subscribers=' . $pushem_sub_ids;
+        $time = time();
+        $body = substr($body, 0, 200);
+        $url = 'https://pushem.org/api/notifications/add/?uid=' . $pushem_uid . '&key=' . $pushem_key . '&source=' . $pushem_source . '&title=' . urlencode($title) . '&body=' . urlencode($body) . '&icon=' . urlencode($icon) . '&link=' . urlencode($link) . '&timestamp=' . $time . '&subscribers=' . $pushem_sub_ids;
         $result = file_get_contents($url, FALSE);
       }
     }
@@ -196,11 +194,11 @@ function push_notifications_web_rules_action_send_notification_user($title, $bod
  */
 function push_notifications_web_rules_action_send_notification_user_sub_id($title, $body, $link, $icon, $subid) {
   $settings = push_notifications_get_settings();
-  $pushem_uid    = $settings['pushem_uid'];
-  $pushem_key    = $settings['pushem_key'];
+  $pushem_uid = $settings['pushem_uid'];
+  $pushem_key = $settings['pushem_key'];
   $pushem_source = $settings['pushem_source'];
   if ($pushem_uid != NULL && $pushem_key != NULL && $pushem_source != NULL) {
-    $url    = 'https://pushem.org/api/subscribers/get_by_sub_id/?uid=' . $pushem_uid . '&key=' . $pushem_key . '&source=' . $pushem_source . '&sub_id=' . $subid;
+    $url = 'https://pushem.org/api/subscribers/get_by_sub_id/?uid=' . $pushem_uid . '&key=' . $pushem_key . '&source=' . $pushem_source . '&sub_id=' . $subid;
     $result = file_get_contents($url, FALSE);
     $result = json_decode($result);
     if (!empty($result)) {
@@ -211,9 +209,9 @@ function push_notifications_web_rules_action_send_notification_user_sub_id($titl
         $pushem_sub_ids = implode(',', $pushem_sub_ids);
       }
       if (isset($pushem_sub_ids) && !empty($pushem_sub_ids)) {
-        $time   = time();
-        $body   = substr($body, 0, 200);
-        $url    = 'https://pushem.org/api/notifications/add/?uid=' . $pushem_uid . '&key=' . $pushem_key . '&source=' . $pushem_source . '&title=' . urlencode($title) . '&body=' . urlencode($body) . '&icon=' . urlencode($icon) . '&link=' . urlencode($link) . '&timestamp=' . $time . '&subscribers=' . $pushem_sub_ids;
+        $time = time();
+        $body = substr($body, 0, 200);
+        $url = 'https://pushem.org/api/notifications/add/?uid=' . $pushem_uid . '&key=' . $pushem_key . '&source=' . $pushem_source . '&title=' . urlencode($title) . '&body=' . urlencode($body) . '&icon=' . urlencode($icon) . '&link=' . urlencode($link) . '&timestamp=' . $time . '&subscribers=' . $pushem_sub_ids;
         $result = file_get_contents($url, FALSE);
       }
     }
@@ -224,12 +222,12 @@ function push_notifications_web_rules_action_send_notification_user_sub_id($titl
  * Implements rule send notification endpoint().
  */
 function push_notifications_web_rules_action_send_notification_endpoint($title, $body, $link, $icon, $endpoint) {
-  $pushem_uid    = variable_get('push_notifications_web_UID', NULL);
-  $pushem_key    = variable_get('push_notifications_web_API', NULL);
+  $pushem_uid = variable_get('push_notifications_web_UID', NULL);
+  $pushem_key = variable_get('push_notifications_web_API', NULL);
   $pushem_source = variable_get('push_notifications_web_SOURCE', NULL);
-  $pushem_token  = variable_get('push_notifications_web_TOKEN', NULL);
+  $pushem_token = variable_get('push_notifications_web_TOKEN', NULL);
   if ($pushem_uid != NULL && $pushem_key != NULL && $pushem_source != NULL && $pushem_token != NULL) {
-    $url    = 'https://pushem.org/api/subscribers/get_by_endpoint/?token=' . $pushem_token . '&sub_endpoint=' . $endpoint;
+    $url = 'https://pushem.org/api/subscribers/get_by_endpoint/?token=' . $pushem_token . '&sub_endpoint=' . $endpoint;
     $result = file_get_contents($url, FALSE);
     $result = json_decode($result);
     if (!empty($result)) {
@@ -240,9 +238,9 @@ function push_notifications_web_rules_action_send_notification_endpoint($title,
         $pushem_sub_ids = implode(',', $pushem_sub_ids);
       }
       if (isset($pushem_sub_ids) && !empty($pushem_sub_ids)) {
-        $time   = time();
-        $body   = substr($body, 0, 200);
-        $url    = 'https://pushem.org/api/notifications/add/?uid=' . $pushem_uid . '&key=' . $pushem_key . '&source=' . $pushem_source . '&title=' . urlencode($title) . '&body=' . urlencode($body) . '&icon=' . urlencode($icon) . '&link=' . urlencode($link) . '&timestamp=' . $time . '&subscribers=' . $pushem_sub_ids;
+        $time = time();
+        $body = substr($body, 0, 200);
+        $url = 'https://pushem.org/api/notifications/add/?uid=' . $pushem_uid . '&key=' . $pushem_key . '&source=' . $pushem_source . '&title=' . urlencode($title) . '&body=' . urlencode($body) . '&icon=' . urlencode($icon) . '&link=' . urlencode($link) . '&timestamp=' . $time . '&subscribers=' . $pushem_sub_ids;
         $result = file_get_contents($url, FALSE);
       }
     }
