@@ -153,7 +153,7 @@ |
||
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 |
@@ -38,7 +38,7 @@ discard block |
||
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 |
||
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 |
||
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)) { |