Passed
Pull Request — master (#8)
by Bob
03:01
created
config/config.new.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
     ],
57 57
 ];
58 58
 
59
-$config['enabledPlugins'] = [ // remove the slashes for the plugins you want
59
+$config['enabledPlugins'] = [// remove the slashes for the plugins you want
60 60
     'about', //info on the bot
61 61
     'auth', //sso based auth system
62 62
     'authCheck', // checks if users have left corp or alliance
Please login to merge, or discard this patch.
src/lib/cURL.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 
49 49
         return $result;
50 50
     } catch (Exception $e) {
51
-        var_dump('cURL Error: '.$e->getMessage());
51
+        var_dump('cURL Error: ' . $e->getMessage());
52 52
 
53 53
         return;
54 54
     }
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 
78 78
         return true;
79 79
     } catch (Exception $e) {
80
-        var_dump('Download Error: '.$e->getMessage());
80
+        var_dump('Download Error: ' . $e->getMessage());
81 81
 
82 82
         return false;
83 83
     }
Please login to merge, or discard this patch.
src/lib/eveApi.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         // Return a new SimpleXMLElement based upon the received data
48 48
         return new SimpleXMLElement($data);
49 49
     } catch (Exception $e) {
50
-        var_dump('EVE API Error: '.$e->getMessage());
50
+        var_dump('EVE API Error: ' . $e->getMessage());
51 51
 
52 52
         return;
53 53
     }
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         //If server is up return true
82 82
         return $true;
83 83
     } catch (Exception $e) {
84
-        var_dump('EVE API Error: '.$e->getMessage());
84
+        var_dump('EVE API Error: ' . $e->getMessage());
85 85
 
86 86
         return;
87 87
     }
Please login to merge, or discard this patch.
src/lib/updateCCPData.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 {
33 33
     $ccpDataURL = 'https://mambaonline.org/bot/sqlite-latest.sqlite.bz2';
34 34
     $ccpDataMD5URL = 'https://mambaonline.org/bot/sqlite-latest.sqlite.bz2.md5';
35
-    $databaseDir = __DIR__.'/../../database/';
35
+    $databaseDir = __DIR__ . '/../../database/';
36 36
     $md5 = explode(' ', downloadData($ccpDataMD5URL))[0];
37 37
     $lastSeenMD5 = getPermCache('CCPDataMD5');
38 38
     $lastChecked = getPermCache('CCPDataLastAttempt');
@@ -62,9 +62,9 @@  discard block
 block discarded – undo
62 62
             file_put_contents("{$databaseDir}/ccpData.sqlite", $data);
63 63
             $logger->addInfo('Flushing bz2 data from memory');
64 64
             $data = null;
65
-            $logger->addInfo('Memory in use: '.memory_get_usage() / 1024 / 1024 .'MB');
65
+            $logger->addInfo('Memory in use: ' . memory_get_usage() / 1024 / 1024 . 'MB');
66 66
             gc_collect_cycles(); // Collect garbage
67
-            $logger->addInfo('Memory in use after garbage collection: '.memory_get_usage() / 1024 / 1024 .'MB');
67
+            $logger->addInfo('Memory in use after garbage collection: ' . memory_get_usage() / 1024 / 1024 . 'MB');
68 68
             $logger->addInfo('Deleting bz2 file');
69 69
             unlink("{$databaseDir}/ccpData.sqlite.bz2");
70 70
             setPermCache('CCPDataMD5', $md5);
Please login to merge, or discard this patch.
src/lib/updateDramielDB.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -81,8 +81,8 @@
 block discarded – undo
81 81
     ];
82 82
 
83 83
     // Does the file exist?
84
-    if (!file_exists(__DIR__.'/../../database/dramiel.sqlite')) {
85
-        touch(__DIR__.'/../../database/dramiel.sqlite');
84
+    if (!file_exists(__DIR__ . '/../../database/dramiel.sqlite')) {
85
+        touch(__DIR__ . '/../../database/dramiel.sqlite');
86 86
     }
87 87
 
88 88
     // Create table if not exists
Please login to merge, or discard this patch.
src/lib/git.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,8 +27,8 @@
 block discarded – undo
27 27
     exec('git describe --always', $version_mini_hash);
28 28
     exec('git rev-list HEAD | wc -l', $version_number);
29 29
     exec('git log -1', $line);
30
-    $version['short'] = 'v0.'.trim($version_number[0]).'.'.$version_mini_hash[0];
31
-    $version['full'] = 'v0.'.trim($version_number[0]).".$version_mini_hash[0] (".str_replace('commit ', '', $line[0]).')';
30
+    $version['short'] = 'v0.' . trim($version_number[0]) . '.' . $version_mini_hash[0];
31
+    $version['full'] = 'v0.' . trim($version_number[0]) . ".$version_mini_hash[0] (" . str_replace('commit ', '', $line[0]) . ')';
32 32
     $version['lastChangeDate'] = trim(str_replace('Date:', '', $line[2]));
33 33
 
34 34
     return $version;
Please login to merge, or discard this patch.
src/lib/seat.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -38,14 +38,14 @@
 block discarded – undo
38 38
         curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
39 39
         $headers = [];
40 40
         $headers[] = 'Accept: application/json';
41
-        $headers[] = 'X-Token:'.$token;
41
+        $headers[] = 'X-Token:' . $token;
42 42
         curl_setopt($ch, CURLOPT_URL, $seat);
43 43
         curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
44 44
         $result = curl_exec($ch);
45 45
 
46 46
         return $result;
47 47
     } catch (Exception $e) {
48
-        $this->logger->info('SeAT Error: '.$e->getMessage());
48
+        $this->logger->info('SeAT Error: ' . $e->getMessage());
49 49
 
50 50
         return;
51 51
     }
Please login to merge, or discard this patch.