@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | { |
30 | 30 | $channelID = (int) $msgData['message']['channelID']; |
31 | 31 | |
32 | - if(in_array($channelID, $this->excludeChannel, true)) |
|
32 | + if (in_array($channelID, $this->excludeChannel, true)) |
|
33 | 33 | { |
34 | 34 | return null; |
35 | 35 | } |
@@ -40,10 +40,10 @@ discard block |
||
40 | 40 | $user = $msgData['message']['from']; |
41 | 41 | |
42 | 42 | $data = command($message, $this->information()['trigger'], $this->config['bot']['trigger']); |
43 | - if(isset($data['trigger'])) |
|
43 | + if (isset($data['trigger'])) |
|
44 | 44 | { |
45 | 45 | $messageString = strstr($data['messageString'], '@') ? str_replace('<@', '', str_replace('>', '', $data['messageString'])) : $data['messageString']; |
46 | - if(is_numeric($messageString)) |
|
46 | + if (is_numeric($messageString)) |
|
47 | 47 | { |
48 | 48 | $messageString = dbQueryField('SELECT name FROM usersSeen WHERE id = :id', 'name', array(':id' => $messageString)); |
49 | 49 | } |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | $sysID = urlencode(getSystemID($cleanString)); |
52 | 52 | |
53 | 53 | //Check if we get a system back, otherwise check for partials |
54 | - if(empty($sysID)) |
|
54 | + if (empty($sysID)) |
|
55 | 55 | { |
56 | 56 | return $this->message->reply('**Error:** no data available'); |
57 | 57 | } |
@@ -68,8 +68,8 @@ discard block |
||
68 | 68 | $regionID = $json->info->regionID; |
69 | 69 | $regionName = getRegionName($regionID); |
70 | 70 | |
71 | - $thisMonth = (string)date('Ym'); |
|
72 | - $lastMonth = (string)date('Ym', strtotime('first day of previous month')); |
|
71 | + $thisMonth = (string) date('Ym'); |
|
72 | + $lastMonth = (string) date('Ym', strtotime('first day of previous month')); |
|
73 | 73 | |
74 | 74 | $thisMonthKill = $json->months->$thisMonth->shipsDestroyed; |
75 | 75 | $lastMonthKill = $json->months->$lastMonth->shipsDestroyed; |
@@ -79,12 +79,12 @@ discard block |
||
79 | 79 | $activeChars = $activePVP->characters->count; |
80 | 80 | |
81 | 81 | $sysName = $systemDetails['name']; |
82 | - $secStatus = round($systemDetails['security_status'],2); |
|
82 | + $secStatus = round($systemDetails['security_status'], 2); |
|
83 | 83 | |
84 | 84 | $npc = "https://api.eveonline.com/map/kills.xml.aspx"; |
85 | 85 | $npc = new SimpleXMLElement(file_get_contents($npc)); |
86 | - foreach($npc->result->rowset->row as $row){ |
|
87 | - if($row->attributes()->solarSystemID == $sysID){ |
|
86 | + foreach ($npc->result->rowset->row as $row) { |
|
87 | + if ($row->attributes()->solarSystemID == $sysID) { |
|
88 | 88 | $npcKills = $row->attributes()->factionKills; |
89 | 89 | $podKills = $row->attributes()->podKills; |
90 | 90 | } |