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 ( 94cc06...ac2615 )
by Anton
02:59
created
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.