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.
Passed
Push — master ( e9d99c...549e86 )
by Anton
02:53
created
contrib/sentry.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 desc('Notifies Sentry of deployment');
66 66
 task(
67 67
     'deploy:sentry',
68
-    static function () {
68
+    static function() {
69 69
         $now = date('c');
70 70
 
71 71
         $defaultConfig = [
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
         $config = array_merge($defaultConfig, (array) get('sentry'));
88 88
         array_walk(
89 89
             $config,
90
-            static function (&$value) use ($config) {
90
+            static function(&$value) use ($config) {
91 91
                 if (is_callable($value)) {
92 92
                     $value = $value($config);
93 93
                 }
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
 
223 223
 function getReleaseGitRef(): Closure
224 224
 {
225
-    return static function ($config = []): string {
225
+    return static function($config = []): string {
226 226
         if (get('update_code_strategy') === 'archive') {
227 227
             if (isset($config['git_version_command'])) {
228 228
                 cd('{{deploy_path}}/.dep/repo');
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
 
246 246
 function getGitCommitsRefs(): Closure
247 247
 {
248
-    return static function ($config = []): array {
248
+    return static function($config = []): array {
249 249
         $previousReleaseRevision = getPreviousReleaseRevision();
250 250
         $currentReleaseRevision = getCurrentReleaseRevision() ?: 'HEAD';
251 251
 
@@ -266,13 +266,13 @@  discard block
 block discarded – undo
266 266
             $lines = array_filter(
267 267
                 // limit number of commits for first release with many commits
268 268
                 array_map('trim', array_slice(explode("\n", $result), 0, 200)),
269
-                static function (string $line): bool {
269
+                static function(string $line): bool {
270 270
                     return !empty($line) && strpos($line, 'commit') !== 0;
271 271
                 },
272 272
             );
273 273
 
274 274
             return array_map(
275
-                static function (string $line): array {
275
+                static function(string $line): array {
276 276
                     [$ref, $authorName, $authorEmail, $timestamp, $message] = explode('#', $line, 5);
277 277
 
278 278
                     return [
Please login to merge, or discard this patch.
contrib/grafana.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
 use Deployer\Utility\Httpie;
36 36
 
37 37
 desc('Creates Grafana annotation of deployment');
38
-task('grafana:annotation', function () {
38
+task('grafana:annotation', function() {
39 39
     $defaultConfig = [
40 40
         'url' => null,
41 41
         'token' => null,
Please login to merge, or discard this patch.
contrib/cloudflare.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 namespace Deployer;
22 22
 
23 23
 desc('Clears Cloudflare Cache');
24
-task('deploy:cloudflare', function () {
24
+task('deploy:cloudflare', function() {
25 25
 
26 26
     $config = get('cloudflare', []);
27 27
 
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 
46 46
     $headers['Content-Type'] = 'application/json';
47 47
 
48
-    $makeRequest = function ($url, $opts = []) use ($headers) {
48
+    $makeRequest = function($url, $opts = []) use ($headers) {
49 49
         $ch = curl_init("https://api.cloudflare.com/client/v4/$url");
50 50
 
51 51
         $parsedHeaders = [];
Please login to merge, or discard this patch.
contrib/npm.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 
15 15
 namespace Deployer;
16 16
 
17
-set('bin/npm', function () {
17
+set('bin/npm', function() {
18 18
     return which('npm');
19 19
 });
20 20
 
@@ -24,6 +24,6 @@  discard block
 block discarded – undo
24 24
 // any situation where you want to make sure you're doing a clean
25 25
 // install of your dependencies.
26 26
 desc('Installs npm packages');
27
-task('npm:install', function () {
27
+task('npm:install', function() {
28 28
     run("cd {{release_path}} && {{bin/npm}} ci");
29 29
 });
Please login to merge, or discard this patch.
contrib/crontab.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,12 +25,12 @@  discard block
 block discarded – undo
25 25
 namespace Deployer;
26 26
 
27 27
 // Get path to bin
28
-set('bin/crontab', function () {
28
+set('bin/crontab', function() {
29 29
     return which('crontab');
30 30
 });
31 31
 
32 32
 // Set the identifier used in the crontab, application name by default
33
-set('crontab:identifier', function () {
33
+set('crontab:identifier', function() {
34 34
     return get('application', 'application');
35 35
 });
36 36
 
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 set('crontab:use_sudo', false);
39 39
 
40 40
 desc('Sync crontab jobs');
41
-task('crontab:sync', function () {
41
+task('crontab:sync', function() {
42 42
     $cronJobsLocal = array_map(
43 43
         fn($job) => parse($job),
44 44
         get('crontab:jobs', []),
Please login to merge, or discard this patch.
contrib/chatwork.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -90,13 +90,13 @@  discard block
 block discarded – undo
90 90
 use Deployer\Utility\Httpie;
91 91
 
92 92
 // Chatwork settings
93
-set('chatwork_token', function () {
93
+set('chatwork_token', function() {
94 94
     throw new \RuntimeException('Please configure "chatwork_token" parameter.');
95 95
 });
96
-set('chatwork_room_id', function () {
96
+set('chatwork_room_id', function() {
97 97
     throw new \RuntimeException('Please configure "chatwork_room_id" parameter.');
98 98
 });
99
-set('chatwork_api', function () {
99
+set('chatwork_api', function() {
100 100
     return 'https://api.chatwork.com/v2/rooms/' . get('chatwork_room_id') . '/messages';
101 101
 });
102 102
 
@@ -106,16 +106,16 @@  discard block
 block discarded – undo
106 106
 set('chatwork_failure_text', "[info]\n[title](*) Deployment Status: Failed[/title]\nRepo: {{repository}}\nBranch: {{branch}}\nServer: {{hostname}}\nRelease Path: {{release_path}}\nCurrent Path: {{current_path}}\n[/info]");
107 107
 
108 108
 // Helpers
109
-task('chatwork_send_message', function () {
109
+task('chatwork_send_message', function() {
110 110
     Httpie::post(get('chatwork_api'))
111
-        ->query(['body' => get('chatwork_message'),])
111
+        ->query(['body' => get('chatwork_message'), ])
112 112
         ->header("X-ChatWorkToken", get('chatwork_token'))
113 113
         ->send();
114 114
 });
115 115
 
116 116
 // Tasks
117 117
 desc('Tests messages');
118
-task('chatwork:test', function () {
118
+task('chatwork:test', function() {
119 119
     set('chatwork_message', get('chatwork_notify_text'));
120 120
     invoke('chatwork_send_message');
121 121
     set('chatwork_message', get('chatwork_success_text'));
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
     ->once();
127 127
 
128 128
 desc('Notifies Chatwork');
129
-task('chatwork:notify', function () {
129
+task('chatwork:notify', function() {
130 130
     if (!get('chatwork_token', false)) {
131 131
         return;
132 132
     }
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
     ->hidden();
142 142
 
143 143
 desc('Notifies Chatwork about deploy finish');
144
-task('chatwork:notify:success', function () {
144
+task('chatwork:notify:success', function() {
145 145
     if (!get('chatwork_token', false)) {
146 146
         return;
147 147
     }
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
     ->hidden();
158 158
 
159 159
 desc('Notifies Chatwork about deploy failure');
160
-task('chatwork:notify:failure', function () {
160
+task('chatwork:notify:failure', function() {
161 161
     if (!get('chatwork_token', false)) {
162 162
         return;
163 163
     }
Please login to merge, or discard this patch.
contrib/cachetool.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -58,13 +58,13 @@  discard block
 block discarded – undo
58 58
  */
59 59
 set('cachetool_url', 'https://github.com/gordalina/cachetool/releases/download/9.0.0/cachetool.phar');
60 60
 set('cachetool_args', '');
61
-set('bin/cachetool', function () {
61
+set('bin/cachetool', function() {
62 62
     if (!test('[ -f {{release_or_current_path}}/cachetool.phar ]')) {
63 63
         run("cd {{release_or_current_path}} && curl -sLO {{cachetool_url}}");
64 64
     }
65 65
     return '{{release_or_current_path}}/cachetool.phar';
66 66
 });
67
-set('cachetool_options', function () {
67
+set('cachetool_options', function() {
68 68
     $options = (array) get('cachetool');
69 69
     $fullOptions = (string) get('cachetool_args');
70 70
     $return = [];
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
  * Clear opcache cache
87 87
  */
88 88
 desc('Clears OPcode cache');
89
-task('cachetool:clear:opcache', function () {
89
+task('cachetool:clear:opcache', function() {
90 90
     $options = get('cachetool_options');
91 91
     foreach ($options as $option) {
92 92
         run("cd {{release_or_current_path}} && {{bin/php}} {{bin/cachetool}} opcache:reset $option");
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
  * Clear APCu cache
98 98
  */
99 99
 desc('Clears APCu system cache');
100
-task('cachetool:clear:apcu', function () {
100
+task('cachetool:clear:apcu', function() {
101 101
     $options = get('cachetool_options');
102 102
     foreach ($options as $option) {
103 103
         run("cd {{release_or_current_path}} && {{bin/php}} {{bin/cachetool}} apcu:cache:clear $option");
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
  * Clear file status cache, including the realpath cache
109 109
  */
110 110
 desc('Clears file status and realpath caches');
111
-task('cachetool:clear:stat', function () {
111
+task('cachetool:clear:stat', function() {
112 112
     $options = get('cachetool_options');
113 113
     foreach ($options as $option) {
114 114
         run("cd {{release_or_current_path}} && {{bin/php}} {{bin/cachetool}} stat:clear $option");
Please login to merge, or discard this patch.
contrib/directadmin.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
 }
74 74
 
75 75
 desc('Creates a database on DirectAdmin');
76
-task('directadmin:createdb', function () {
76
+task('directadmin:createdb', function() {
77 77
     $config = getDirectAdminConfig();
78 78
 
79 79
     if (!is_array($config) ||
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 });
94 94
 
95 95
 desc('Deletes a database on DirectAdmin');
96
-task('directadmin:deletedb', function () {
96
+task('directadmin:deletedb', function() {
97 97
     $config = getDirectAdminConfig();
98 98
 
99 99
     if (!is_array($config) ||
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
 });
109 109
 
110 110
 desc('Creates a domain on DirectAdmin');
111
-task('directadmin:createdomain', function () {
111
+task('directadmin:createdomain', function() {
112 112
     $config = getDirectAdminConfig();
113 113
 
114 114
     if (!is_array($config) ||
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
 });
127 127
 
128 128
 desc('Deletes a domain on DirectAdmin');
129
-task('directadmin:deletedomain', function () {
129
+task('directadmin:deletedomain', function() {
130 130
     $config = getDirectAdminConfig();
131 131
 
132 132
     if (!is_array($config) ||
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
 });
143 143
 
144 144
 desc('Symlink your private_html to public_html');
145
-task('directadmin:symlink-private-html', function () {
145
+task('directadmin:symlink-private-html', function() {
146 146
     $config = getDirectAdminConfig();
147 147
 
148 148
     if (!is_array($config) ||
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
 });
159 159
 
160 160
 desc('Changes the PHP version from a domain');
161
-task('directadmin:php-version', function () {
161
+task('directadmin:php-version', function() {
162 162
     $config = getDirectAdminConfig();
163 163
 
164 164
     if (!is_array($config) ||
Please login to merge, or discard this patch.
src/Documentation/DocRecipe.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
             }
66 66
 
67 67
             $m = [];
68
-            $match = function ($regexp) use ($line, &$m) {
68
+            $match = function($regexp) use ($line, &$m) {
69 69
                 return preg_match("#$regexp#", $line, $m);
70 70
             };
71 71
             switch ($state) {
Please login to merge, or discard this patch.