Passed
Branch master (db7c31)
by
unknown
59:46
created
src/plugins/onMessage/price.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/plugins/onMessage/corpInfo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
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
         {
Please login to merge, or discard this patch.
src/plugins/onTick/twitterOutput.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -97,11 +97,11 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
src/plugins/onTick/rssReader.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -114,8 +114,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/plugins/onMessage/time.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
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
         {
Please login to merge, or discard this patch.
src/plugins/onMessage/about.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
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
         {
Please login to merge, or discard this patch.
src/plugins/onMessage/fleetUpOps.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
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
         {
Please login to merge, or discard this patch.
src/plugins/onMessage/help.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
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
         {
Please login to merge, or discard this patch.
src/plugins/onMessage/eveStatus.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
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
         {
Please login to merge, or discard this patch.