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 ( ac2615...734ced )
by
unknown
05:34 queued 02:38
created
src/ProcessRunner/ProcessRunner.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
         $this->pop->command($host, 'run', $command);
39 39
 
40 40
         $terminalOutput = $this->pop->callback($host, $params->forceOutput);
41
-        $callback = function ($type, $buffer) use ($host, $terminalOutput) {
41
+        $callback = function($type, $buffer) use ($host, $terminalOutput) {
42 42
             $this->logger->printBuffer($host, $type, $buffer);
43 43
             $terminalOutput($type, $buffer);
44 44
         };
Please login to merge, or discard this patch.
src/Ssh/SshClient.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
             ->setTimeout($params->timeout)
79 79
             ->setIdleTimeout($params->idleTimeout);
80 80
 
81
-        $callback = function ($type, $buffer) use ($params, $host) {
81
+        $callback = function($type, $buffer) use ($params, $host) {
82 82
             $this->logger->printBuffer($host, $type, $buffer);
83 83
             $this->pop->callback($host, $params->forceOutput)($type, $buffer);
84 84
         };
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.1.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.
recipe/deploy/env.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
 set('dotenv_example', '.env.example');
6 6
 
7 7
 desc('Configure .env file');
8
-task('deploy:env', function () {
8
+task('deploy:env', function() {
9 9
     cd('{{release_or_current_path}}');
10 10
     if (test('[ ! -e .env ] && [ -f {{dotenv_example}} ]')) {
11 11
         run('cp {{dotenv_example}} .env');
Please login to merge, or discard this patch.
recipe/deploy/writable.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
 // Used in `chown` and `acl` modes of {{writable_mode}}.
7 7
 // Attempts automatically to detect http user in process list.
8 8
 
9
-set('http_user', function () {
9
+set('http_user', function() {
10 10
     $candidates = explode("\n", run("ps axo comm,user | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | sort | awk '{print \$NF}' | uniq"));
11 11
     $httpUser = array_shift($candidates);
12 12
 
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 // Used to make a writable directory by a server.
24 24
 // Used in `chgrp` mode of {{writable_mode}} only.
25 25
 // Attempts automatically to detect http user in process list.
26
-set('http_group', function () {
26
+set('http_group', function() {
27 27
     $candidates = explode("\n", run("ps axo comm,group | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | sort | awk '{print \$NF}' | uniq"));
28 28
     $httpGroup = array_shift($candidates);
29 29
 
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 set('writable_acl_groups', []);
63 63
 
64 64
 desc('Makes writable dirs');
65
-task('deploy:writable', function () {
65
+task('deploy:writable', function() {
66 66
     $dirs = join(' ', get('writable_dirs'));
67 67
     $mode = get('writable_mode');
68 68
     $recursive = get('writable_recursive') ? '-R' : '';
Please login to merge, or discard this patch.
recipe/pimcore.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,13 +13,13 @@
 block discarded – undo
13 13
 add('writable_dirs', ['public/var', 'var/cache/dev']);
14 14
 
15 15
 desc('Rebuilds Pimcore Classes');
16
-task('pimcore:rebuild-classes', function () {
16
+task('pimcore:rebuild-classes', function() {
17 17
     run('{{bin/console}} pimcore:build:classes');
18 18
     run('{{bin/console}} pimcore:deployment:classes-rebuild --create-classes --delete-classes --no-interaction');
19 19
 });
20 20
 
21 21
 desc('Removes cache');
22
-task('pimcore:cache_clear', function () {
22
+task('pimcore:cache_clear', function() {
23 23
     run('rm -rf {{release_or_current_path}}/var/cache/dev/*');
24 24
 });
25 25
 
Please login to merge, or discard this patch.
recipe/shopware.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -72,20 +72,20 @@  discard block
 block discarded – undo
72 72
 ]);
73 73
 
74 74
 // This sets the shopware version to the version of the shopware console command.
75
-set('shopware_version', function () {
75
+set('shopware_version', function() {
76 76
     $versionOutput = run('cd {{release_path}} && {{bin/console}} -V');
77 77
     preg_match('/(\d+\.\d+\.\d+\.\d+)/', $versionOutput, $matches);
78 78
     return $matches[0] ?? '6.6.0';
79 79
 });
80 80
 
81 81
 // This task remotely executes the `cache:clear` console command on the target server.
82
-task('sw:cache:clear', static function () {
82
+task('sw:cache:clear', static function() {
83 83
     run('cd {{release_path}} && {{bin/console}} cache:clear --no-warmup');
84 84
 });
85 85
 
86 86
 // This task remotely executes the cache warmup console commands on the target server, so that the first user, who
87 87
 // visits the website, doesn't have to wait for the cache to be built up.
88
-task('sw:cache:warmup', static function () {
88
+task('sw:cache:warmup', static function() {
89 89
     run('cd {{release_path}} && {{bin/console}} cache:warmup');
90 90
 
91 91
     // Shopware 6.6+ dropped support for the http:cache:warmup command, so only execute it if the version is less than 6.6
@@ -95,25 +95,25 @@  discard block
 block discarded – undo
95 95
 });
96 96
 
97 97
 // This task remotely executes the `database:migrate` console command on the target server.
98
-task('sw:database:migrate', static function () {
98
+task('sw:database:migrate', static function() {
99 99
     run('cd {{release_path}} && {{bin/console}} database:migrate --all');
100 100
 });
101 101
 
102
-task('sw:plugin:refresh', function () {
102
+task('sw:plugin:refresh', function() {
103 103
     run('cd {{release_path}} && {{bin/console}} plugin:refresh');
104 104
 });
105 105
 
106
-task('sw:scheduled-task:register', function () {
106
+task('sw:scheduled-task:register', function() {
107 107
     run('cd {{release_path}} && {{bin/console}} scheduled-task:register');
108 108
 });
109 109
 
110
-task('sw:theme:refresh', function () {
110
+task('sw:theme:refresh', function() {
111 111
     run('cd {{release_path}} && {{bin/console}} theme:refresh');
112 112
 });
113 113
 
114 114
 // This task is not used per default, but can be used, e.g. in combination with `SHOPWARE_SKIP_THEME_COMPILE=1`,
115 115
 // to build the theme remotely instead of locally.
116
-task('sw:theme:compile', function () {
116
+task('sw:theme:compile', function() {
117 117
     run('cd {{release_path}} && {{bin/console}} theme:compile');
118 118
 });
119 119
 
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
     return $plugins;
126 126
 }
127 127
 
128
-task('sw:plugin:update:all', static function () {
128
+task('sw:plugin:update:all', static function() {
129 129
     $plugins = getPlugins();
130 130
     foreach ($plugins as $plugin) {
131 131
         if ($plugin->installedAt && $plugin->upgradeVersion) {
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
     }
136 136
 });
137 137
 
138
-task('sw:writable:jwt', static function () {
138
+task('sw:writable:jwt', static function() {
139 139
     run('cd {{release_path}} && chmod -R 660 config/jwt/*');
140 140
 });
141 141
 
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
     'deploy:publish',
163 163
 ]);
164 164
 
165
-task('deploy:update_code')->setCallback(static function () {
165
+task('deploy:update_code')->setCallback(static function() {
166 166
     upload('.', '{{release_path}}', [
167 167
         'options' => [
168 168
             '--exclude=.git',
@@ -172,11 +172,11 @@  discard block
 block discarded – undo
172 172
     ]);
173 173
 });
174 174
 
175
-task('sw-build-without-db:get-remote-config', static function () {
175
+task('sw-build-without-db:get-remote-config', static function() {
176 176
     if (!test('[ -d {{current_path}} ]')) {
177 177
         return;
178 178
     }
179
-    within('{{current_path}}', function () {
179
+    within('{{current_path}}', function() {
180 180
         run('{{bin/php}} ./bin/console bundle:dump');
181 181
         download('{{current_path}}/var/plugins.json', './var/');
182 182
 
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
     });
186 186
 });
187 187
 
188
-task('sw-build-without-db:build', static function () {
188
+task('sw-build-without-db:build', static function() {
189 189
     runLocally('CI=1 SHOPWARE_SKIP_BUNDLE_DUMP=1 ./bin/build-js.sh');
190 190
 });
191 191
 
Please login to merge, or discard this patch.
contrib/crontab.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -27,12 +27,12 @@  discard block
 block discarded – undo
27 27
 use function Deployer\Support\escape_shell_argument;
28 28
 
29 29
 // Get path to bin
30
-set('bin/crontab', function () {
30
+set('bin/crontab', function() {
31 31
     return which('crontab');
32 32
 });
33 33
 
34 34
 // Set the identifier used in the crontab, application name by default
35
-set('crontab:identifier', function () {
35
+set('crontab:identifier', function() {
36 36
     return get('application', 'application');
37 37
 });
38 38
 
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
 set('crontab:use_sudo', false);
41 41
 
42 42
 desc('Sync crontab jobs');
43
-task('crontab:sync', function () {
43
+task('crontab:sync', function() {
44 44
     $cronJobsLocal = array_map(
45 45
         fn($job) => parse($job),
46 46
         get('crontab:jobs', []),
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 });
85 85
 
86 86
 desc('Remove crontab jobs');
87
-task('crontab:remove', function () {
87
+task('crontab:remove', function() {
88 88
     $cronJobsLocal = array_map(
89 89
         fn($job) => parse($job),
90 90
         get('crontab:jobs', []),
Please login to merge, or discard this patch.
recipe/provision.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 
17 17
 // Name of lsb_release like: focal, bionic, etc.
18 18
 // As only Ubuntu 20.04 LTS is supported for provision should be the `focal`.
19
-set('lsb_release', function () {
19
+set('lsb_release', function() {
20 20
     return run("lsb_release -s -c");
21 21
 });
22 22
 
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 set('provision_user', 'root');
44 44
 
45 45
 desc('Checks pre-required state');
46
-task('provision:check', function () {
46
+task('provision:check', function() {
47 47
     set('remote_user', get('provision_user'));
48 48
 
49 49
     $release = run('cat /etc/os-release');
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 })->oncePerNode();
69 69
 
70 70
 desc('Collects required params');
71
-task('provision:configure', function () {
71
+task('provision:configure', function() {
72 72
     set('remote_user', get('provision_user'));
73 73
 
74 74
     $params = [
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
 
121 121
 
122 122
 desc('Adds repositories and update');
123
-task('provision:update', function () {
123
+task('provision:update', function() {
124 124
     set('remote_user', get('provision_user'));
125 125
 
126 126
     // Update before installing anything
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
     ->verbose();
147 147
 
148 148
 desc('Upgrades all packages');
149
-task('provision:upgrade', function () {
149
+task('provision:upgrade', function() {
150 150
     set('remote_user', get('provision_user'));
151 151
     run('apt-get upgrade -y', env: ['DEBIAN_FRONTEND' => 'noninteractive'], timeout: 900);
152 152
 })
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
     ->verbose();
155 155
 
156 156
 desc('Installs packages');
157
-task('provision:install', function () {
157
+task('provision:install', function() {
158 158
     set('remote_user', get('provision_user'));
159 159
     $packages = [
160 160
         'acl',
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
     ->oncePerNode();
190 190
 
191 191
 desc('Configures the ssh');
192
-task('provision:ssh', function () {
192
+task('provision:ssh', function() {
193 193
     set('remote_user', get('provision_user'));
194 194
     run("sed -i 's/PasswordAuthentication .*/PasswordAuthentication no/' /etc/ssh/sshd_config");
195 195
     run('ssh-keygen -A');
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
 })->oncePerNode();
202 202
 
203 203
 desc('Setups a firewall');
204
-task('provision:firewall', function () {
204
+task('provision:firewall', function() {
205 205
     set('remote_user', get('provision_user'));
206 206
     run('ufw allow 22');
207 207
     run('ufw allow 80');
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
 })->oncePerNode();
211 211
 
212 212
 desc('Verifies what provision was successful');
213
-task('provision:verify', function () {
213
+task('provision:verify', function() {
214 214
     fetch('{{domain}}', 'get', [], null, $info, true);
215 215
     if ($info['http_code'] === 404) {
216 216
         info("provisioned successfully!");
Please login to merge, or discard this patch.