GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Branch develop (a1d3bb)
by Dane
11:05
created
app/Http/Middleware/AdminAuthenticate.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
             }
64 64
         }
65 65
 
66
-        if($this->auth->user()->root_admin !== 1) {
66
+        if ($this->auth->user()->root_admin !== 1) {
67 67
             return abort(403);
68 68
         }
69 69
 
Please login to merge, or discard this patch.
app/Http/Middleware/APISecretToken.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -79,9 +79,9 @@  discard block
 block discarded – undo
79 79
 
80 80
         // Check for Resource Permissions
81 81
         if (!empty($request->route()->getName())) {
82
-            if(!is_null($key->allowed_ips)) {
82
+            if (!is_null($key->allowed_ips)) {
83 83
                 $inRange = false;
84
-                foreach(json_decode($key->allowed_ips) as $ip) {
84
+                foreach (json_decode($key->allowed_ips) as $ip) {
85 85
                     if (Range::parse($ip)->contains(new IP($request->ip()))) {
86 86
                         $inRange = true;
87 87
                         break;
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
             // Suport Wildcards
99 99
             if (starts_with($request->route()->getName(), 'api.user')) {
100 100
                 $permission->orWhere('permission', 'api.user.*');
101
-            } else if(starts_with($request->route()->getName(), 'api.admin')) {
101
+            } else if (starts_with($request->route()->getName(), 'api.admin')) {
102 102
                 $permission->orWhere('permission', 'api.admin.*');
103 103
             }
104 104
 
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
         }
117 117
 
118 118
         $this->url = urldecode($request->fullUrl());
119
-        if($this->_generateHMAC($request->getContent(), $decrypted) !== base64_decode($hashed)) {
119
+        if ($this->_generateHMAC($request->getContent(), $decrypted) !== base64_decode($hashed)) {
120 120
             APILogService::log($request, 'The hashed body was not valid. Potential modification of contents in route.');
121 121
             throw new BadRequestHttpException('The hashed body was not valid. Potential modification of contents in route.');
122 122
         }
Please login to merge, or discard this patch.
app/Http/Middleware/LanguageMiddleware.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
     {
50 50
         if (Session::has('applocale')) {
51 51
             App::setLocale(Session::get('applocale'));
52
-        } else if(Auth::check() && isset(Auth::user()->language)) {
52
+        } else if (Auth::check() && isset(Auth::user()->language)) {
53 53
             Session::set('applocale', Auth::user()->language);
54 54
             App::setLocale(Auth::user()->language);
55 55
         } else {
Please login to merge, or discard this patch.
app/Http/Routes/BaseRoutes.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
         ]);
39 39
 
40 40
         // Handle Index. Redirect /index to /
41
-        $router->get('/index', function () {
41
+        $router->get('/index', function() {
42 42
             return redirect()->route('index');
43 43
         });
44 44
 
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
                 'auth',
57 57
                 'csrf'
58 58
             ]
59
-        ], function () use ($router) {
59
+        ], function() use ($router) {
60 60
             $router->get('/', [
61 61
                 'as' => 'account',
62 62
                 'uses' => 'Base\AccountController@index'
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
                 'auth',
77 77
                 'csrf'
78 78
             ]
79
-        ], function () use ($router) {
79
+        ], function() use ($router) {
80 80
             $router->get('/', [
81 81
                 'as' => 'account.api',
82 82
                 'uses' => 'Base\APIController@index'
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
                 'auth',
102 102
                 'csrf'
103 103
             ]
104
-        ], function () use ($router) {
104
+        ], function() use ($router) {
105 105
             $router->get('/', [
106 106
                 'as' => 'account.security',
107 107
                 'uses' => 'Base\SecurityController@index'
Please login to merge, or discard this patch.
app/Http/Routes/AdminRoutes.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
                 'admin',
49 49
                 'csrf'
50 50
             ]
51
-        ], function () use ($router) {
51
+        ], function() use ($router) {
52 52
             $router->get('/', [
53 53
                 'as' => 'admin.settings',
54 54
                 'uses' => 'Admin\BaseController@getSettings'
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
                 'admin',
66 66
                 'csrf'
67 67
             ]
68
-        ], function () use ($router) {
68
+        ], function() use ($router) {
69 69
 
70 70
             // View All Accounts on System
71 71
             $router->get('/', [
@@ -115,12 +115,12 @@  discard block
 block discarded – undo
115 115
                 'admin',
116 116
                 'csrf'
117 117
             ]
118
-        ], function () use ($router) {
118
+        ], function() use ($router) {
119 119
 
120 120
             // View All Servers
121 121
             $router->get('/', [
122 122
                 'as' => 'admin.servers',
123
-                'uses' => 'Admin\ServersController@getIndex' ]);
123
+                'uses' => 'Admin\ServersController@getIndex']);
124 124
 
125 125
             // View Create Server Page
126 126
             $router->get('/new', [
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
                 'admin',
226 226
                 'csrf'
227 227
             ]
228
-        ], function () use ($router) {
228
+        ], function() use ($router) {
229 229
 
230 230
             // View All Nodes
231 231
             $router->get('/', [
@@ -297,7 +297,7 @@  discard block
 block discarded – undo
297 297
                 'admin',
298 298
                 'csrf'
299 299
             ]
300
-        ], function () use ($router) {
300
+        ], function() use ($router) {
301 301
             $router->get('/', [
302 302
                 'as' => 'admin.locations',
303 303
                 'uses' => 'Admin\LocationsController@getIndex'
@@ -321,7 +321,7 @@  discard block
 block discarded – undo
321 321
                 'admin',
322 322
                 'csrf'
323 323
             ]
324
-        ], function () use ($router) {
324
+        ], function() use ($router) {
325 325
             $router->get('/', [
326 326
                 'as' => 'admin.databases',
327 327
                 'uses' => 'Admin\DatabaseController@getIndex'
@@ -351,7 +351,7 @@  discard block
 block discarded – undo
351 351
                 'admin',
352 352
                 'csrf'
353 353
             ]
354
-        ], function () use ($router) {
354
+        ], function() use ($router) {
355 355
             $router->get('/', [
356 356
                 'as' => 'admin.services',
357 357
                 'uses' => 'Admin\ServiceController@getIndex'
Please login to merge, or discard this patch.
app/Http/Routes/RemoteRoutes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
 class RemoteRoutes {
30 30
 
31 31
     public function map(Router $router) {
32
-        $router->group(['prefix' => 'remote'], function () use ($router) {
32
+        $router->group(['prefix' => 'remote'], function() use ($router) {
33 33
             // Handles Remote Download Authentication Requests
34 34
             $router->post('download', [
35 35
                 'as' => 'remote.download',
Please login to merge, or discard this patch.
app/Http/Routes/APIRoutes.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     public function map(Router $router) {
33 33
 
34 34
         $api = app('Dingo\Api\Routing\Router');
35
-        $api->version('v1', ['prefix' => 'api/me', 'middleware' => 'api.auth'], function ($api) {
35
+        $api->version('v1', ['prefix' => 'api/me', 'middleware' => 'api.auth'], function($api) {
36 36
             $api->get('/', [
37 37
                 'as' => 'api.user.me',
38 38
                 'uses' => 'Pterodactyl\Http\Controllers\API\User\InfoController@me'
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
             ]);
50 50
         });
51 51
 
52
-        $api->version('v1', ['prefix' => 'api', 'middleware' => 'api.auth'], function ($api) {
52
+        $api->version('v1', ['prefix' => 'api', 'middleware' => 'api.auth'], function($api) {
53 53
 
54 54
             /**
55 55
              * User Routes
Please login to merge, or discard this patch.
app/Http/Routes/AuthRoutes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
                 'guest',
39 39
                 'csrf'
40 40
             ]
41
-        ], function () use ($router) {
41
+        ], function() use ($router) {
42 42
 
43 43
             // Display Login Page
44 44
             $router->get('login', [
Please login to merge, or discard this patch.
app/Http/Routes/ServerRoutes.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
                 'server',
37 37
                 'csrf'
38 38
             ]
39
-        ], function ($server) use ($router) {
39
+        ], function($server) use ($router) {
40 40
 
41 41
             // Index View for Server
42 42
             $router->get('/', [
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
             ]);
150 150
 
151 151
             // Assorted AJAX Routes
152
-            $router->group(['prefix' => 'ajax'], function ($server) use ($router) {
152
+            $router->group(['prefix' => 'ajax'], function($server) use ($router) {
153 153
                 // Returns Server Status
154 154
                 $router->get('status', [
155 155
                     'uses' => 'Server\AjaxController@getStatus'
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
             });
168 168
 
169 169
             // Assorted AJAX Routes
170
-            $router->group(['prefix' => 'js'], function ($server) use ($router) {
170
+            $router->group(['prefix' => 'js'], function($server) use ($router) {
171 171
                 // Returns Server Status
172 172
                 $router->get('{folder}/{file}', [
173 173
                     'as' => 'server.js',
Please login to merge, or discard this patch.