@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | { |
| 89 | 89 | $this->message = $message; |
| 90 | 90 | $user = $msgData["message"]["from"]; |
| 91 | - $channelID = (int)$msgData["message"]["channelID"]; |
|
| 91 | + $channelID = (int) $msgData["message"]["channelID"]; |
|
| 92 | 92 | |
| 93 | 93 | if (in_array($channelID, $this->excludeChannel, true)) |
| 94 | 94 | { |
@@ -150,12 +150,12 @@ discard block |
||
| 150 | 150 | $data = new SimpleXMLElement(downloadData("https://api.eve-central.com/api/marketstat?usesystem={$solarSystemID}&typeid={$typeID}")); |
| 151 | 151 | } |
| 152 | 152 | |
| 153 | - $lowBuy = number_format((float)$data->marketstat->type->buy->min, 2); |
|
| 154 | - $avgBuy = number_format((float)$data->marketstat->type->buy->avg, 2); |
|
| 155 | - $highBuy = number_format((float)$data->marketstat->type->buy->max, 2); |
|
| 156 | - $lowSell = number_format((float)$data->marketstat->type->sell->min, 2); |
|
| 157 | - $avgSell = number_format((float)$data->marketstat->type->sell->avg, 2); |
|
| 158 | - $highSell = number_format((float)$data->marketstat->type->sell->max, 2); |
|
| 153 | + $lowBuy = number_format((float) $data->marketstat->type->buy->min, 2); |
|
| 154 | + $avgBuy = number_format((float) $data->marketstat->type->buy->avg, 2); |
|
| 155 | + $highBuy = number_format((float) $data->marketstat->type->buy->max, 2); |
|
| 156 | + $lowSell = number_format((float) $data->marketstat->type->sell->min, 2); |
|
| 157 | + $avgSell = number_format((float) $data->marketstat->type->sell->avg, 2); |
|
| 158 | + $highSell = number_format((float) $data->marketstat->type->sell->max, 2); |
|
| 159 | 159 | |
| 160 | 160 | $this->logger->addInfo("Price: Sending pricing info to {$user}"); |
| 161 | 161 | $solarSystemName = $systemName == "pc" ? "Global" : ucfirst($systemName); |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | */ |
| 71 | 71 | function onMessage($msgData, $message) |
| 72 | 72 | { |
| 73 | - $channelID = (int)$msgData["message"]["channelID"]; |
|
| 73 | + $channelID = (int) $msgData["message"]["channelID"]; |
|
| 74 | 74 | |
| 75 | 75 | if (in_array($channelID, $this->excludeChannel, true)) |
| 76 | 76 | { |
@@ -97,11 +97,11 @@ |
||
| 97 | 97 | try { |
| 98 | 98 | $data = $this->twitter->load(Twitter::ME_AND_FRIENDS, 5); |
| 99 | 99 | foreach ($data as $message) { |
| 100 | - $text = (array)$message->text; |
|
| 101 | - $createdAt = (array)$message->created_at; |
|
| 102 | - $postedBy = (array)$message->user->name; |
|
| 103 | - $screenName = (array)$message->user->screen_name; |
|
| 104 | - $id = (int)$message->id; |
|
| 100 | + $text = (array) $message->text; |
|
| 101 | + $createdAt = (array) $message->created_at; |
|
| 102 | + $postedBy = (array) $message->user->name; |
|
| 103 | + $screenName = (array) $message->user->screen_name; |
|
| 104 | + $id = (int) $message->id; |
|
| 105 | 105 | $this->lastID = getPermCache("twitterLatestID"); // get the last posted ID |
| 106 | 106 | |
| 107 | 107 | if ($id <= $this->lastID) { |
@@ -114,8 +114,8 @@ discard block |
||
| 114 | 114 | } |
| 115 | 115 | |
| 116 | 116 | //Find item to check if feed is formatted |
| 117 | - $itemTitle = (string)$rss->channel->item->title; |
|
| 118 | - $itemUrl = (string)$rss->channel->item->link; |
|
| 117 | + $itemTitle = (string) $rss->channel->item->title; |
|
| 118 | + $itemUrl = (string) $rss->channel->item->link; |
|
| 119 | 119 | $itemDate = strtotime($rss->channel->item->pubDate); |
| 120 | 120 | |
| 121 | 121 | //Check to see if feed is formatted correctly |
@@ -127,8 +127,8 @@ discard block |
||
| 127 | 127 | //Find item to post |
| 128 | 128 | foreach ($rss->channel->item as $item) { |
| 129 | 129 | //Get item details |
| 130 | - $itemTitle = (string)$item->title; |
|
| 131 | - $itemUrl = (string)$item->link; |
|
| 130 | + $itemTitle = (string) $item->title; |
|
| 131 | + $itemUrl = (string) $item->link; |
|
| 132 | 132 | $itemPubbed = $item->pubDate; |
| 133 | 133 | $itemDate = strtotime($item->pubDate); |
| 134 | 134 | |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | */ |
| 71 | 71 | function onMessage($msgData, $message) |
| 72 | 72 | { |
| 73 | - $channelID = (int)$msgData["message"]["channelID"]; |
|
| 73 | + $channelID = (int) $msgData["message"]["channelID"]; |
|
| 74 | 74 | |
| 75 | 75 | if (in_array($channelID, $this->excludeChannel, true)) |
| 76 | 76 | { |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | */ |
| 71 | 71 | function onMessage($msgData, $message) |
| 72 | 72 | { |
| 73 | - $channelID = (int)$msgData["message"]["channelID"]; |
|
| 73 | + $channelID = (int) $msgData["message"]["channelID"]; |
|
| 74 | 74 | |
| 75 | 75 | if (in_array($channelID, $this->excludeChannel, true)) |
| 76 | 76 | { |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | */ |
| 71 | 71 | function onMessage($msgData, $message) |
| 72 | 72 | { |
| 73 | - $channelID = (int)$msgData["message"]["channelID"]; |
|
| 73 | + $channelID = (int) $msgData["message"]["channelID"]; |
|
| 74 | 74 | |
| 75 | 75 | if (in_array($channelID, $this->excludeChannel, true)) |
| 76 | 76 | { |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | */ |
| 71 | 71 | function onMessage($msgData, $message) |
| 72 | 72 | { |
| 73 | - $channelID = (int)$msgData["message"]["channelID"]; |
|
| 73 | + $channelID = (int) $msgData["message"]["channelID"]; |
|
| 74 | 74 | |
| 75 | 75 | if (in_array($channelID, $this->excludeChannel, true)) |
| 76 | 76 | { |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | */ |
| 71 | 71 | function onMessage($msgData, $message) |
| 72 | 72 | { |
| 73 | - $channelID = (int)$msgData["message"]["channelID"]; |
|
| 73 | + $channelID = (int) $msgData["message"]["channelID"]; |
|
| 74 | 74 | |
| 75 | 75 | if (in_array($channelID, $this->excludeChannel, true)) |
| 76 | 76 | { |