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 ( 68b9aa...4161ac )
by Anton
03:45
created
recipe/provision/nodejs.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 set('node_version', '23.x');
8 8
 
9 9
 desc('Installs npm packages');
10
-task('provision:node', function () {
10
+task('provision:node', function() {
11 11
     if (has('nodejs_version')) {
12 12
         throw new \RuntimeException('nodejs_version is deprecated, use node_version_version instead.');
13 13
     }
Please login to merge, or discard this patch.
recipe/provision/website.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -4,16 +4,16 @@  discard block
 block discarded – undo
4 4
 
5 5
 namespace Deployer;
6 6
 
7
-set('domain', function () {
7
+set('domain', function() {
8 8
     return ask(' Domain: ');
9 9
 });
10 10
 
11
-set('public_path', function () {
11
+set('public_path', function() {
12 12
     return ask(' Public path: ', 'public');
13 13
 });
14 14
 
15 15
 desc('Configures a server');
16
-task('provision:server', function () {
16
+task('provision:server', function() {
17 17
     run('usermod -a -G www-data caddy');
18 18
     $html = <<<'HTML'
19 19
         <!DOCTYPE html>
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 })->oncePerNode();
75 75
 
76 76
 desc('Provision website');
77
-task('provision:website', function () {
77
+task('provision:website', function() {
78 78
     $restoreBecome = become('deployer');
79 79
 
80 80
     run("[ -d {{deploy_path}} ] || mkdir -p {{deploy_path}}");
@@ -118,11 +118,11 @@  discard block
 block discarded – undo
118 118
 })->limit(1);
119 119
 
120 120
 desc('Shows access logs');
121
-task('logs:access', function () {
121
+task('logs:access', function() {
122 122
     run('tail -f {{deploy_path}}/log/access.log');
123 123
 })->verbose();
124 124
 
125 125
 desc('Shows caddy syslog');
126
-task('logs:caddy', function () {
126
+task('logs:caddy', function() {
127 127
     run('sudo journalctl -u caddy -f');
128 128
 })->verbose();
Please login to merge, or discard this patch.
recipe/provision/user.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -5,13 +5,13 @@  discard block
 block discarded – undo
5 5
 
6 6
 use function Deployer\Support\parse_home_dir;
7 7
 
8
-set('sudo_password', function () {
8
+set('sudo_password', function() {
9 9
     return askHiddenResponse(' Password for sudo: ');
10 10
 });
11 11
 
12 12
 
13 13
 desc('Setups a deployer user');
14
-task('provision:user', function () {
14
+task('provision:user', function() {
15 15
     if (test('id deployer >/dev/null 2>&1')) {
16 16
         // TODO: Check what created deployer user configured correctly.
17 17
         // TODO: Update sudo_password of deployer user.
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 
52 52
 
53 53
 desc('Copy public key to remote server');
54
-task('provision:ssh_copy_id', function () {
54
+task('provision:ssh_copy_id', function() {
55 55
     $defaultKeys = [
56 56
         '~/.ssh/id_rsa.pub',
57 57
         '~/.ssh/id_ed25519.pub',
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
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 
16 16
 // Name of lsb_release like: focal, bionic, etc.
17 17
 // As only Ubuntu 20.04 LTS is supported for provision should be the `focal`.
18
-set('lsb_release', function () {
18
+set('lsb_release', function() {
19 19
     return run("lsb_release -s -c");
20 20
 });
21 21
 
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 ]);
40 40
 
41 41
 desc('Checks pre-required state');
42
-task('provision:check', function () {
42
+task('provision:check', function() {
43 43
     if (get('remote_user') !== 'root' && get('become') !== 'root') {
44 44
         warning('');
45 45
         warning('Run provision as root: -o remote_user=root');
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 })->oncePerNode();
70 70
 
71 71
 desc('Collects required params');
72
-task('provision:configure', function () {
72
+task('provision:configure', function() {
73 73
     $params = [
74 74
         'sudo_password',
75 75
         'domain',
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 
116 116
 
117 117
 desc('Adds repositories and update');
118
-task('provision:update', function () {
118
+task('provision:update', function() {
119 119
     // PHP
120 120
     run('apt-add-repository ppa:ondrej/php -y', ['env' => ['DEBIAN_FRONTEND' => 'noninteractive']]);
121 121
 
@@ -130,14 +130,14 @@  discard block
 block discarded – undo
130 130
     ->verbose();
131 131
 
132 132
 desc('Upgrades all packages');
133
-task('provision:upgrade', function () {
133
+task('provision:upgrade', function() {
134 134
     run('apt-get upgrade -y', ['env' => ['DEBIAN_FRONTEND' => 'noninteractive'], 'timeout' => 900]);
135 135
 })
136 136
     ->oncePerNode()
137 137
     ->verbose();
138 138
 
139 139
 desc('Installs packages');
140
-task('provision:install', function () {
140
+task('provision:install', function() {
141 141
     $packages = [
142 142
         'acl',
143 143
         'apt-transport-https',
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
     ->oncePerNode();
172 172
 
173 173
 desc('Configures the ssh');
174
-task('provision:ssh', function () {
174
+task('provision:ssh', function() {
175 175
     run("sed -i 's/PasswordAuthentication .*/PasswordAuthentication no/' /etc/ssh/sshd_config");
176 176
     run('ssh-keygen -A');
177 177
     run('service ssh restart');
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
 })->oncePerNode();
183 183
 
184 184
 desc('Setups a firewall');
185
-task('provision:firewall', function () {
185
+task('provision:firewall', function() {
186 186
     run('ufw allow 22');
187 187
     run('ufw allow 80');
188 188
     run('ufw allow 443');
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
 })->oncePerNode();
191 191
 
192 192
 desc('Verifies what provision was successful');
193
-task('provision:verify', function () {
193
+task('provision:verify', function() {
194 194
     fetch('{{domain}}', 'get', [], null, $info, true);
195 195
     if ($info['http_code'] === 404) {
196 196
         info("provisioned successfully!");
Please login to merge, or discard this patch.
src/functions.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
         $deployer->hosts->set($aliases[0], $host);
75 75
         return $host;
76 76
     } else {
77
-        $hosts = array_map(function ($hostname) use ($deployer): Host {
77
+        $hosts = array_map(function($hostname) use ($deployer): Host {
78 78
             $host = new Host($hostname);
79 79
             $deployer->hosts->set($hostname, $host);
80 80
             return $host;
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
         $deployer->hosts->set($host->getAlias(), $host);
97 97
         return $host;
98 98
     } else {
99
-        $hosts = array_map(function ($hostname) use ($deployer): Localhost {
99
+        $hosts = array_map(function($hostname) use ($deployer): Localhost {
100 100
             $host = new Localhost($hostname);
101 101
             $deployer->hosts->set($host->getAlias(), $host);
102 102
             return $host;
@@ -333,7 +333,7 @@  discard block
 block discarded – undo
333 333
 {
334 334
     $currentBecome = get('become');
335 335
     set('become', $user);
336
-    return function () use ($currentBecome) {
336
+    return function() use ($currentBecome) {
337 337
         set('become', $currentBecome);
338 338
     };
339 339
 }
@@ -392,7 +392,7 @@  discard block
 block discarded – undo
392 392
         }
393 393
     }
394 394
     $options = array_merge($namedArguments, $options);
395
-    $run = function ($command, $options = []): string {
395
+    $run = function($command, $options = []): string {
396 396
         $host = currentHost();
397 397
 
398 398
         $command = parse($command);
@@ -851,7 +851,7 @@  discard block
 block discarded – undo
851 851
     }
852 852
 
853 853
     if (Deployer::isWorker()) {
854
-        return (string)Deployer::proxyCallToMaster(currentHost(), __FUNCTION__, ...func_get_args());
854
+        return (string) Deployer::proxyCallToMaster(currentHost(), __FUNCTION__, ...func_get_args());
855 855
     }
856 856
 
857 857
     /** @var QuestionHelper */
@@ -865,7 +865,7 @@  discard block
 block discarded – undo
865 865
     $question->setHidden(true);
866 866
     $question->setHiddenFallback(false);
867 867
 
868
-    return (string)$helper->ask(input(), output(), $question);
868
+    return (string) $helper->ask(input(), output(), $question);
869 869
 }
870 870
 
871 871
 function input(): InputInterface
Please login to merge, or discard this patch.