@@ -112,7 +112,7 @@ |
||
| 112 | 112 | $cacheClr = $baseUnix - 13500; |
| 113 | 113 | |
| 114 | 114 | //Set timer for next key based on number of keys |
| 115 | - $nextKey = (1900 / (int)$this->numberOfKeys) + time(); |
|
| 115 | + $nextKey = (1900 / (int) $this->numberOfKeys) + time(); |
|
| 116 | 116 | $nextKeyTime = gmdate('Y-m-d H:i:s', $nextKey); |
| 117 | 117 | setPermCache('mailLastChecked', $nextKey); |
| 118 | 118 | |
@@ -125,7 +125,7 @@ |
||
| 125 | 125 | $this->fuelChannel = $this->toDiscordChannel; |
| 126 | 126 | } |
| 127 | 127 | //Set timer for next key based on number of keys |
| 128 | - $nextKey = (1900 / (int)$this->numberOfKeys) + time(); |
|
| 128 | + $nextKey = (1900 / (int) $this->numberOfKeys) + time(); |
|
| 129 | 129 | $nextKeyTime = gmdate('Y-m-d H:i:s', $nextKey); |
| 130 | 130 | setPermCache('notificationsLastChecked', $nextKey); |
| 131 | 131 | //Set cache timer for api key |
@@ -71,7 +71,7 @@ |
||
| 71 | 71 | $roles = $member->roles; |
| 72 | 72 | foreach ($roles as $role) { |
| 73 | 73 | if (in_array(strtolower($role->name), $adminRoles, true)) { |
| 74 | - $avatarURL = strtolower((string)$data['messageString']); |
|
| 74 | + $avatarURL = strtolower((string) $data['messageString']); |
|
| 75 | 75 | $ch = curl_init($avatarURL); |
| 76 | 76 | if (substr($avatarURL, -4) === '.jpg') { |
| 77 | 77 | $fp = fopen('/tmp/avatar.jpg', 'wb'); |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | GLOBAL $logger; |
| 56 | 56 | |
| 57 | 57 | //Check we are not running on a 32bit platform |
| 58 | -if(PHP_INT_SIZE == 4) |
|
| 58 | +if (PHP_INT_SIZE == 4) |
|
| 59 | 59 | { |
| 60 | 60 | $logger->error('32bit PHP found, if you are running a 64bit OS please install 64bit PHP'); |
| 61 | 61 | die(); |
@@ -206,7 +206,7 @@ discard block |
||
| 206 | 206 | clearQueuedMessages($id); |
| 207 | 207 | continue; |
| 208 | 208 | } |
| 209 | - $channel = $guild->channels->get('id', (int)$queuedMessage['channel']); |
|
| 209 | + $channel = $guild->channels->get('id', (int) $queuedMessage['channel']); |
|
| 210 | 210 | //Check if channel is bad |
| 211 | 211 | if (null === $channel) { |
| 212 | 212 | $logger->addInfo("QueueProcessing Error- Item #{$id} : Channel provided is incorrect, removing it from the queue"); |
@@ -197,7 +197,7 @@ |
||
| 197 | 197 | if ($i < 10) { |
| 198 | 198 | $killID = $kill['killID']; |
| 199 | 199 | //check if mail is old |
| 200 | - if ((int)$killID <= (int)$oldID) { |
|
| 200 | + if ((int) $killID <= (int) $oldID) { |
|
| 201 | 201 | continue; |
| 202 | 202 | } |
| 203 | 203 | //save highest killID for cache |
@@ -193,7 +193,7 @@ discard block |
||
| 193 | 193 | if ($timeout > 9) { |
| 194 | 194 | continue; |
| 195 | 195 | } |
| 196 | - else{ |
|
| 196 | + else { |
|
| 197 | 197 | $character = characterDetails($charID); |
| 198 | 198 | $timeout++; |
| 199 | 199 | } |
@@ -205,13 +205,13 @@ discard block |
||
| 205 | 205 | if ($timeout > 9) { |
| 206 | 206 | continue; |
| 207 | 207 | } |
| 208 | - else{ |
|
| 208 | + else { |
|
| 209 | 209 | $corporationDetails = corpDetails($corporationID); |
| 210 | 210 | $timeout++; |
| 211 | 211 | } |
| 212 | 212 | } |
| 213 | 213 | $allianceID = @$corporationDetails['alliance_id']; |
| 214 | - if ($rows['active'] == "yes"){ |
|
| 214 | + if ($rows['active'] == "yes") { |
|
| 215 | 215 | |
| 216 | 216 | //check if user authed based on standings |
| 217 | 217 | $standings = null; |
@@ -236,7 +236,7 @@ discard block |
||
| 236 | 236 | continue; |
| 237 | 237 | } |
| 238 | 238 | } |
| 239 | - elseif($rows['active'] == "no") { |
|
| 239 | + elseif ($rows['active'] == "no") { |
|
| 240 | 240 | $roles = @$guild->roles; |
| 241 | 241 | $member = @$guild->members->get('id', $discordID); |
| 242 | 242 | if (in_array((int) $allianceID, $allianceArray) || in_array((int) $corporationID, $corpArray)) { |
@@ -455,7 +455,7 @@ discard block |
||
| 455 | 455 | if ($timeout > 9) { |
| 456 | 456 | continue; |
| 457 | 457 | } |
| 458 | - else{ |
|
| 458 | + else { |
|
| 459 | 459 | $character = characterDetails($charID); |
| 460 | 460 | $timeout++; |
| 461 | 461 | } |
@@ -192,8 +192,7 @@ discard block |
||
| 192 | 192 | while (null === $character) { //try 10 times to pull characterDetails |
| 193 | 193 | if ($timeout > 9) { |
| 194 | 194 | continue; |
| 195 | - } |
|
| 196 | - else{ |
|
| 195 | + } else{ |
|
| 197 | 196 | $character = characterDetails($charID); |
| 198 | 197 | $timeout++; |
| 199 | 198 | } |
@@ -204,8 +203,7 @@ discard block |
||
| 204 | 203 | while (null === $corporationDetails) { //try 10 times to pull corporationDetails |
| 205 | 204 | if ($timeout > 9) { |
| 206 | 205 | continue; |
| 207 | - } |
|
| 208 | - else{ |
|
| 206 | + } else{ |
|
| 209 | 207 | $corporationDetails = corpDetails($corporationID); |
| 210 | 208 | $timeout++; |
| 211 | 209 | } |
@@ -235,8 +233,7 @@ discard block |
||
| 235 | 233 | $conn->query($sql); |
| 236 | 234 | continue; |
| 237 | 235 | } |
| 238 | - } |
|
| 239 | - elseif($rows['active'] == "no") { |
|
| 236 | + } elseif($rows['active'] == "no") { |
|
| 240 | 237 | $roles = @$guild->roles; |
| 241 | 238 | $member = @$guild->members->get('id', $discordID); |
| 242 | 239 | if (in_array((int) $allianceID, $allianceArray) || in_array((int) $corporationID, $corpArray)) { |
@@ -454,8 +451,7 @@ discard block |
||
| 454 | 451 | while (null === $character) { //try 10 times to pull characterDetails |
| 455 | 452 | if ($timeout > 9) { |
| 456 | 453 | continue; |
| 457 | - } |
|
| 458 | - else{ |
|
| 454 | + } else{ |
|
| 459 | 455 | $character = characterDetails($charID); |
| 460 | 456 | $timeout++; |
| 461 | 457 | } |