Passed
Pull Request — master (#8)
by Bob
03:01
created
src/plugins/onMessage/eveStatus.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -23,8 +23,6 @@
 block discarded – undo
23 23
  * SOFTWARE.
24 24
  */
25 25
 
26
-use Discord\Discord;
27
-use Discord\Parts\Channel\Message;
28 26
 use Discord\Parts\Channel\Channel;
29 27
 
30 28
 /**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
     {
92 92
         return [
93 93
             'name'        => 'tq',
94
-            'trigger'     => [$this->config['bot']['trigger'].'tq', $this->config['bot']['trigger'].'status'],
94
+            'trigger'     => [$this->config['bot']['trigger'] . 'tq', $this->config['bot']['trigger'] . 'status'],
95 95
             'information' => 'Shows the current status of Tranquility',
96 96
         ];
97 97
     }
Please login to merge, or discard this patch.
src/plugins/onMessage/help.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -23,8 +23,6 @@
 block discarded – undo
23 23
  * SOFTWARE.
24 24
  */
25 25
 
26
-use Discord\Discord;
27
-use Discord\Parts\Channel\Message;
28 26
 use Discord\Parts\Channel\Channel;
29 27
 
30 28
 /**
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
                     }
95 95
                 }
96 96
 
97
-                $this->message->reply('Here is a list of plugins available: **'.implode('** |  **', $commands)."** If you'd like help with a specific plugin simply use the command !help <PluginName>");
97
+                $this->message->reply('Here is a list of plugins available: **' . implode('** |  **', $commands) . "** If you'd like help with a specific plugin simply use the command !help <PluginName>");
98 98
             } else {
99 99
                 foreach ($plugins as $plugin) {
100 100
                     if ($messageString == $plugin->information()['name']) {
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
     {
113 113
         return [
114 114
             'name'        => 'help',
115
-            'trigger'     => [$this->config['bot']['trigger'].'help'],
115
+            'trigger'     => [$this->config['bot']['trigger'] . 'help'],
116 116
             'information' => 'Shows help for a plugin, or all the plugins available. Example: **!help pc**',
117 117
         ];
118 118
     }
Please login to merge, or discard this patch.
src/plugins/onMessage/price.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -23,8 +23,6 @@
 block discarded – undo
23 23
  * SOFTWARE.
24 24
  */
25 25
 
26
-use Discord\Discord;
27
-use Discord\Parts\Channel\Message;
28 26
 use Discord\Parts\Channel\Channel;
29 27
 
30 28
 /**
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -67,9 +67,9 @@  discard block
 block discarded – undo
67 67
         $systems = dbQuery('SELECT solarSystemName, solarSystemID FROM mapSolarSystems', [], 'ccp');
68 68
         foreach ($systems as $system) {
69 69
             $this->solarSystems[strtolower($system['solarSystemName'])] = $system['solarSystemID'];
70
-            $this->triggers[] = $this->config['bot']['trigger'].strtolower($system['solarSystemName']);
70
+            $this->triggers[] = $this->config['bot']['trigger'] . strtolower($system['solarSystemName']);
71 71
         }
72
-        $this->triggers[] = $this->config['bot']['trigger'].'pc';
72
+        $this->triggers[] = $this->config['bot']['trigger'] . 'pc';
73 73
         $this->excludeChannel = $config['plugins']['priceChecker']['channelID'];
74 74
     }
75 75
 
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
             $itemName = $data['messageString'];
114 114
 
115 115
             $single = dbQueryRow('SELECT typeID, typeName FROM invTypes WHERE typeName = :item COLLATE NOCASE', [':item' => ucfirst($itemName)], 'ccp');
116
-            $multiple = dbQuery('SELECT typeID, typeName FROM invTypes WHERE typeName LIKE :item COLLATE NOCASE LIMIT 5', [':item' => '%'.ucfirst($itemName).'%'], 'ccp');
116
+            $multiple = dbQuery('SELECT typeID, typeName FROM invTypes WHERE typeName LIKE :item COLLATE NOCASE LIMIT 5', [':item' => '%' . ucfirst($itemName) . '%'], 'ccp');
117 117
 
118 118
             // Quick lookups
119 119
             if (isset($quickLookUps[$itemName])) {
Please login to merge, or discard this patch.
src/plugins/onMessage/time.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -23,8 +23,6 @@
 block discarded – undo
23 23
  * SOFTWARE.
24 24
  */
25 25
 
26
-use Discord\Discord;
27
-use Discord\Parts\Channel\Message;
28 26
 use Discord\Parts\Channel\Channel;
29 27
 
30 28
 /**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@
 block discarded – undo
103 103
     {
104 104
         return [
105 105
             'name'        => 'time',
106
-            'trigger'     => [$this->config['bot']['trigger'].'time'],
106
+            'trigger'     => [$this->config['bot']['trigger'] . 'time'],
107 107
             'information' => 'This shows the time for various timezones compared to EVE Time. To use simply type <!time>',
108 108
         ];
109 109
     }
Please login to merge, or discard this patch.
src/plugins/onTick/authCheck.php 2 patches
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -22,10 +22,7 @@
 block discarded – undo
22 22
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23 23
  * SOFTWARE.
24 24
  */
25
-use Discord\Discord;
26 25
 use Discord\Parts\Channel\Channel;
27
-use Discord\Parts\User\User;
28
-use Discord\WebSockets\Event;
29 26
 
30 27
 /**
31 28
  * Class fileAuthCheck.
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -136,11 +136,11 @@  discard block
 block discarded – undo
136 136
                                 }
137 137
 
138 138
                                 // Send the info to the channel
139
-                                $msg = $discordName.' roles have been removed via the auth.';
139
+                                $msg = $discordName . ' roles have been removed via the auth.';
140 140
                                 $channelID = $toDiscordChannel;
141 141
                                 $channel = Channel::find($channelID);
142 142
                                 $channel->sendMessage($msg, false);
143
-                                $this->logger->addInfo($discordName." roles ({$role}) have been removed via the auth.");
143
+                                $this->logger->addInfo($discordName . " roles ({$role}) have been removed via the auth.");
144 144
 
145 145
                                 $sql = "UPDATE authUsers SET active='no' WHERE discordID='$discordID'";
146 146
                                 $conn->query($sql);
@@ -164,11 +164,11 @@  discard block
 block discarded – undo
164 164
                             }
165 165
 
166 166
                             // Send the info to the channel
167
-                            $msg = $discordName.' roles have been removed because their name no longer matches their ingame name.';
167
+                            $msg = $discordName . ' roles have been removed because their name no longer matches their ingame name.';
168 168
                             $channelID = $toDiscordChannel;
169 169
                             $channel = Channel::find($channelID);
170 170
                             $channel->sendMessage($msg, false);
171
-                            $this->logger->addInfo($discordName.' roles have been removed because their name no longer matches their ingame name.');
171
+                            $this->logger->addInfo($discordName . ' roles have been removed because their name no longer matches their ingame name.');
172 172
 
173 173
                             $sql = "UPDATE authUsers SET active='no' WHERE discordID='$discordID'";
174 174
                             $conn->query($sql);
Please login to merge, or discard this patch.
src/plugins/onTick/fleetUpOperations.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,6 @@
 block discarded – undo
24 24
  */
25 25
 
26 26
 
27
-use Discord\Discord;
28 27
 use Discord\Parts\Channel\Message;
29 28
 use Discord\Parts\Channel\Channel;
30 29
 
Please login to merge, or discard this patch.
src/plugins/onTick/getKillmails.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,6 @@
 block discarded – undo
24 24
  */
25 25
 
26 26
 
27
-use Discord\Discord;
28 27
 use Discord\Parts\Channel\Message;
29 28
 use Discord\Parts\Channel\Channel;
30 29
 
Please login to merge, or discard this patch.
src/plugins/onTick/periodicStatusCheck.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,6 @@
 block discarded – undo
24 24
  */
25 25
 
26 26
 
27
-use Discord\Discord;
28 27
 use Discord\Parts\Channel\Message;
29 28
 use Discord\Parts\Channel\Channel;
30 29
 
Please login to merge, or discard this patch.
src/plugins/onTick/siloFull.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,6 @@
 block discarded – undo
24 24
  */
25 25
 
26 26
 
27
-use Discord\Discord;
28 27
 use Discord\Parts\Channel\Message;
29 28
 use Discord\Parts\Channel\Channel;
30 29
 
Please login to merge, or discard this patch.