Passed
Branch master (037eb0)
by
unknown
08:44
created
src/plugins/onTick/getKillmailsRedis.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@
 block discarded – undo
153 153
                 } elseif (in_array((int) $kmGroup['allianceID'], $attackerAllianceArray) && (int) $kmGroup['allianceID'] !== 0) {
154 154
                     $allianceKill = true;
155 155
                 } else {
156
-                	//if it wasn't any of these continue in case there is another group to process
156
+                    //if it wasn't any of these continue in case there is another group to process
157 157
                     continue;
158 158
                 }
159 159
 
Please login to merge, or discard this patch.
src/plugins/onTick/rssReader.php 2 patches
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     public $itemTitle;
39 39
     public $itemUrl;
40 40
     public $itemDate;
41
-	public $strDate;
41
+    public $strDate;
42 42
 
43 43
     /**
44 44
      * @param $config
@@ -91,15 +91,15 @@  discard block
 block discarded – undo
91 91
             }
92 92
 
93 93
             $rss = new SimpleXMLElement($rssUrl, null, true); // XML parser
94
-			if ($rss===null || !is_object($rss)) {
95
-				$this->logger->addInfo("Failed to load xml file: {$rssUrl}");
96
-				break;
97
-			}
98
-			if (!is_object($rss->feed)) {
99
-				$this->logger->addInfo("Feed is not an object at: {$rssUrl}");
100
-				break;
101
-			}
102
-			$feedLink = $rss->feed->id;
94
+            if ($rss===null || !is_object($rss)) {
95
+                $this->logger->addInfo("Failed to load xml file: {$rssUrl}");
96
+                break;
97
+            }
98
+            if (!is_object($rss->feed)) {
99
+                $this->logger->addInfo("Feed is not an object at: {$rssUrl}");
100
+                break;
101
+            }
102
+            $feedLink = $rss->feed->id;
103 103
             $latestTopicDate = getPermCache("rssFeed{$feedLink}");
104 104
 
105 105
             //Check if feed has been checked before
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
             $itemUrl = $rss->entry->id;
115 115
             $strDate = $rss->entry->published;
116 116
 			
117
-			$itemDate = strtotime($strDate);
117
+            $itemDate = strtotime($strDate);
118 118
 			
119 119
             //Check to see if feed is formatted correctly
120 120
             if (is_null($itemTitle) || is_null($itemUrl) || is_null($itemDate)) {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
             }
92 92
 
93 93
             $rss = new SimpleXMLElement($rssUrl, null, true); // XML parser
94
-			if ($rss===null || !is_object($rss)) {
94
+			if ($rss === null || !is_object($rss)) {
95 95
 				$this->logger->addInfo("Failed to load xml file: {$rssUrl}");
96 96
 				break;
97 97
 			}
Please login to merge, or discard this patch.
src/plugins/onTick/getKillmails.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -93,16 +93,16 @@  discard block
 block discarded – undo
93 93
             if ($kmGroup['startMail'] > $SavedKillID || null === $SavedKillID) {
94 94
                 $SavedKillID = $kmGroup['startMail'];
95 95
             }
96
-            if ((string)$kmGroup['allianceID'] === '0' & $kmGroup['lossMails'] === 'true') {
96
+            if ((string) $kmGroup['allianceID'] === '0' & $kmGroup['lossMails'] === 'true') {
97 97
                 $url = "https://zkillboard.com/api/corporationID/{$kmGroup['corpID']}/no-attackers/no-items/orderDirection/asc/pastSeconds/10800/";
98 98
             }
99
-            if ((string)$kmGroup['allianceID'] === '0' & $kmGroup['lossMails'] === 'false') {
99
+            if ((string) $kmGroup['allianceID'] === '0' & $kmGroup['lossMails'] === 'false') {
100 100
                 $url = "https://zkillboard.com/api/corporationID/{$kmGroup['corpID']}/no-attackers/no-items/kills/orderDirection/asc/pastSeconds/10800/";
101 101
             }
102
-            if ((string)$kmGroup['allianceID'] !== '0' & $kmGroup['lossMails'] === 'true') {
102
+            if ((string) $kmGroup['allianceID'] !== '0' & $kmGroup['lossMails'] === 'true') {
103 103
                 $url = "https://zkillboard.com/api/allianceID/{$kmGroup['allianceID']}/no-attackers/no-items/orderDirection/asc/pastSeconds/10800/";
104 104
             }
105
-            if ((string)$kmGroup['allianceID'] !== '0' & $kmGroup['lossMails'] === 'false') {
105
+            if ((string) $kmGroup['allianceID'] !== '0' & $kmGroup['lossMails'] === 'false') {
106 106
                 $url = "https://zkillboard.com/api/allianceID/{$kmGroup['allianceID']}/no-attackers/no-items/kills/orderDirection/asc/pastSeconds/10800/";
107 107
             }
108 108
 
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
                 if ($i < 10) {
205 205
                     $killID = $kill['killID'];
206 206
                     //check if mail is old
207
-                    if ((int)$killID <= (int)$oldID) {
207
+                    if ((int) $killID <= (int) $oldID) {
208 208
                         continue;
209 209
                     }
210 210
                     //save highest killID for cache
Please login to merge, or discard this patch.