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 ( ee651b...67f1c0 )
by Anton
03:43 queued 12s
created
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.
tests/src/Task/ScriptManagerTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -73,13 +73,13 @@
 block discarded – undo
73 73
         self::assertEquals([$a, $b, $c], $scriptManager->getTasks('group'));
74 74
         self::assertNull($a->getSelector());
75 75
         self::assertEquals([[['=', 'stage', ['beta']]]], $b->getSelector());
76
-        self::assertEquals([[['=', 'stage', ['alpha', 'beta']],['=', 'role', ['db']]]], $c->getSelector());
76
+        self::assertEquals([[['=', 'stage', ['alpha', 'beta']], ['=', 'role', ['db']]]], $c->getSelector());
77 77
 
78 78
         $group->select('role=prod');
79 79
         self::assertEquals([$a, $b, $c], $scriptManager->getTasks('group'));
80 80
         self::assertEquals([[['=', 'role', ['prod']]]], $a->getSelector());
81
-        self::assertEquals([[['=', 'stage', ['beta']]],[['=', 'role', ['prod']]]], $b->getSelector());
82
-        self::assertEquals([[['=', 'stage', ['alpha', 'beta']],['=', 'role', ['db']]],[['=', 'role', ['prod']]]], $c->getSelector());
81
+        self::assertEquals([[['=', 'stage', ['beta']]], [['=', 'role', ['prod']]]], $b->getSelector());
82
+        self::assertEquals([[['=', 'stage', ['alpha', 'beta']], ['=', 'role', ['db']]], [['=', 'role', ['prod']]]], $c->getSelector());
83 83
     }
84 84
 
85 85
     public function testThrowsExceptionIfTaskCollectionEmpty()
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
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 namespace Deployer;
4 4
 
5 5
 desc('Configure .env file');
6
-task('deploy:env', function () {
6
+task('deploy:env', function() {
7 7
     cd('{{release_path}}');
8 8
     if (test('[ -f .env.example ]')) {
9 9
         run('cp .env.example .env');
Please login to merge, or discard this patch.
recipe/laravel.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
     'storage/logs',
22 22
 ]);
23 23
 set('log_files', 'storage/logs/*.log');
24
-set('laravel_version', function () {
24
+set('laravel_version', function() {
25 25
     $result = run('{{bin/php}} {{release_or_current_path}}/artisan --version');
26 26
     preg_match_all('/(\d+\.?)+/', $result, $matches);
27 27
     return $matches[0][0] ?? 5.5;
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
  */
45 45
 function artisan($command, $options = [])
46 46
 {
47
-    return function () use ($command, $options) {
47
+    return function() use ($command, $options) {
48 48
 
49 49
         // Ensure the artisan command is available on the current version.
50 50
         $versionTooEarly = array_key_exists('min', $options)
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 task('artisan:key:generate', artisan('key:generate'));
103 103
 
104 104
 desc('Generates the application key for new deployments');
105
-task('artisan:create_key', function () {
105
+task('artisan:create_key', function() {
106 106
     if (has('new_deployment')) {
107 107
         invoke('artisan:key:generate');
108 108
     }
Please login to merge, or discard this patch.
src/functions.php 1 patch
Spacing   +4 added lines, -4 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);
Please login to merge, or discard this patch.
recipe/provision/databases.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@  discard block
 block discarded – undo
2 2
 
3 3
 namespace Deployer;
4 4
 
5
-set('db_type', function () {
5
+set('db_type', function() {
6 6
     $supportedDbTypes = [
7 7
         'none',
8 8
         'mysql',
@@ -12,20 +12,20 @@  discard block
 block discarded – undo
12 12
     return askChoice(' What DB to install? ', $supportedDbTypes, 0);
13 13
 });
14 14
 
15
-set('db_name', function () {
15
+set('db_name', function() {
16 16
     return ask(' DB name: ', 'prod');
17 17
 });
18 18
 
19
-set('db_user', function () {
19
+set('db_user', function() {
20 20
     return ask(' DB user: ', 'deployer');
21 21
 });
22 22
 
23
-set('db_password', function () {
23
+set('db_password', function() {
24 24
     return askHiddenResponse(' DB password: ');
25 25
 });
26 26
 
27 27
 desc('Provision databases');
28
-task('provision:databases', function () {
28
+task('provision:databases', function() {
29 29
     set('remote_user', get('provision_user'));
30 30
 
31 31
     $dbType = get('db_type');
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     ->limit(1);
38 38
 
39 39
 desc('Provision MySQL');
40
-task('provision:mysql', function () {
40
+task('provision:mysql', function() {
41 41
     run('apt-get install -y mysql-server', ['env' => ['DEBIAN_FRONTEND' => 'noninteractive'], 'timeout' => 900]);
42 42
     run("mysql --user=\"root\" -e \"CREATE USER IF NOT EXISTS '{{db_user}}'@'0.0.0.0' IDENTIFIED BY '%secret%';\"", ['secret' => get('db_password')]);
43 43
     run("mysql --user=\"root\" -e \"CREATE USER IF NOT EXISTS '{{db_user}}'@'%' IDENTIFIED BY '%secret%';\"", ['secret' => get('db_password')]);
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 });
49 49
 
50 50
 desc('Provision MariaDB');
51
-task('provision:mariadb', function () {
51
+task('provision:mariadb', function() {
52 52
     run('apt-get install -y mariadb-server', ['env' => ['DEBIAN_FRONTEND' => 'noninteractive'], 'timeout' => 900]);
53 53
     run("mysql --user=\"root\" -e \"CREATE USER IF NOT EXISTS '{{db_user}}'@'0.0.0.0' IDENTIFIED BY '%secret%';\"", ['secret' => get('db_password')]);
54 54
     run("mysql --user=\"root\" -e \"CREATE USER IF NOT EXISTS '{{db_user}}'@'%' IDENTIFIED BY '%secret%';\"", ['secret' => get('db_password')]);
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 });
60 60
 
61 61
 desc('Provision PostgreSQL');
62
-task('provision:postgresql', function () {
62
+task('provision:postgresql', function() {
63 63
     run('apt-get install -y postgresql postgresql-contrib', ['env' => ['DEBIAN_FRONTEND' => 'noninteractive'], 'timeout' => 900]);
64 64
     run("sudo -u postgres psql <<< $'CREATE DATABASE {{db_name}};'");
65 65
     run("sudo -u postgres psql <<< $'CREATE USER {{db_user}} WITH ENCRYPTED PASSWORD \'%secret%\';'", ['secret' => get('db_password')]);
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
@@ -4,13 +4,13 @@  discard block
 block discarded – undo
4 4
 
5 5
 use function Deployer\Support\parse_home_dir;
6 6
 
7
-set('sudo_password', function () {
7
+set('sudo_password', function() {
8 8
     return askHiddenResponse(' Password for sudo: ');
9 9
 });
10 10
 
11 11
 
12 12
 desc('Setups a deployer user');
13
-task('provision:user', function () {
13
+task('provision:user', function() {
14 14
     set('remote_user', get('provision_user'));
15 15
 
16 16
     if (test('id deployer >/dev/null 2>&1')) {
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 
53 53
 
54 54
 desc('Copy public key to remote server');
55
-task('provision:ssh_copy_id', function () {
55
+task('provision:ssh_copy_id', function() {
56 56
     $defaultKeys = [
57 57
         '~/.ssh/id_rsa.pub',
58 58
         '~/.ssh/id_ed25519.pub',
Please login to merge, or discard this patch.