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 ( 1ba53f...1aef6d )
by Anton
02:42
created
recipe/common.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 // Name of current user who is running deploy.
29 29
 // If not set will try automatically get git user name,
30 30
 // otherwise output of `whoami` command.
31
-set('user', function () {
31
+set('user', function() {
32 32
     if (getenv('CI') !== false) {
33 33
         $ciUserVars = ['GITLAB_USER_NAME', 'GITHUB_ACTOR', 'CIRCLE_USERNAME', 'DRONE_BUILD_TRIGGER'];
34 34
         foreach ($ciUserVars as $var) {
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
  * set('deploy_path', '~/{{alias}}');
95 95
  * ```
96 96
  */
97
-set('deploy_path', function () {
97
+set('deploy_path', function() {
98 98
     throw new ConfigurationException('Please, specify `deploy_path`.');
99 99
 });
100 100
 
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 set('current_path', '{{deploy_path}}/current');
108 108
 
109 109
 // Path to the `php` bin.
110
-set('bin/php', function () {
110
+set('bin/php', function() {
111 111
     if (currentHost()->hasOwn('php_version')) {
112 112
         return '/usr/bin/php{{php_version}}';
113 113
     }
@@ -115,25 +115,25 @@  discard block
 block discarded – undo
115 115
 });
116 116
 
117 117
 // Path to the `git` bin.
118
-set('bin/git', function () {
118
+set('bin/git', function() {
119 119
     return which('git');
120 120
 });
121 121
 
122 122
 // Should {{bin/symlink}} use `--relative` option or not. Will detect
123 123
 // automatically.
124
-set('use_relative_symlink', function () {
124
+set('use_relative_symlink', function() {
125 125
     return commandSupportsOption('ln', '--relative');
126 126
 });
127 127
 
128 128
 // Path to the `ln` bin. With predefined options `-nfs`.
129
-set('bin/symlink', function () {
129
+set('bin/symlink', function() {
130 130
     return get('use_relative_symlink') ? 'ln -nfs --relative' : 'ln -nfs';
131 131
 });
132 132
 
133 133
 // Path to a file which will store temp script with sudo password.
134 134
 // Defaults to `.dep/sudo_pass`. This script is only temporary and will be deleted after
135 135
 // sudo command executed.
136
-set('sudo_askpass', function () {
136
+set('sudo_askpass', function() {
137 137
     if (test('[ -d {{deploy_path}}/.dep ]')) {
138 138
         return '{{deploy_path}}/.dep/sudo_pass';
139 139
     } else {
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
 /**
172 172
  * Prints success message
173 173
  */
174
-task('deploy:success', function () {
174
+task('deploy:success', function() {
175 175
     info('successfully deployed!');
176 176
 })
177 177
     ->hidden();
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
 /**
181 181
  * Hook on deploy failure.
182 182
  */
183
-task('deploy:failed', function () {})
183
+task('deploy:failed', function() {})
184 184
     ->hidden();
185 185
 
186 186
 fail('deploy', 'deploy:failed');
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
  * Follows latest application logs.
190 190
  */
191 191
 desc('Shows application logs');
192
-task('logs:app', function () {
192
+task('logs:app', function() {
193 193
     if (!has('log_files')) {
194 194
         warning("Please, specify \"log_files\" option.");
195 195
         return;
Please login to merge, or discard this patch.
recipe/spiral.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
  */
26 26
 function command(string $command, array $options = []): \Closure
27 27
 {
28
-    return function () use ($command, $options): void {
28
+    return function() use ($command, $options): void {
29 29
         $output = run("cd {{release_or_current_path}} && {{bin/php}} app.php $command");
30 30
 
31 31
         if (\in_array('showOutput', $options, true)) {
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
  */
43 43
 function rr(string $command, array $options = []): \Closure
44 44
 {
45
-    return function () use ($command, $options): void {
45
+    return function() use ($command, $options): void {
46 46
         $output = run("cd {{roadrunner_path}} && ./rr $command");
47 47
 
48 48
         if (\in_array('showOutput', $options, true)) {
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
  * RoadRunner console commands
110 110
  */
111 111
 desc('Start RoadRunner server');
112
-task('roadrunner:serve', function (): void {
112
+task('roadrunner:serve', function(): void {
113 113
     exec(parse('cd {{roadrunner_path}} && ./rr serve -p > /dev/null 2>&1 &'));
114 114
 });
115 115
 
@@ -123,13 +123,13 @@  discard block
 block discarded – undo
123 123
  * Download and restart RoadRunner
124 124
  */
125 125
 desc('Download RoadRunner');
126
-task('deploy:download-rr', function (): void {
126
+task('deploy:download-rr', function(): void {
127 127
     $output = run("cd {{release_or_current_path}} && {{bin/php}} ./vendor/bin/rr get-binary -l {{roadrunner_path}}");
128 128
     writeln("<info>$output</info>");
129 129
 });
130 130
 
131 131
 desc('Restart RoadRunner');
132
-task('deploy:restart-rr', function (): void {
132
+task('deploy:restart-rr', function(): void {
133 133
     try {
134 134
         invoke('roadrunner:reset');
135 135
         writeln("<info>Roadrunner successfully restarted.</info>");
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('[ ! -f .env ] && [ -f {{dotenv_example}} ]')) {
11 11
         run('cp {{dotenv_example}} .env');
Please login to merge, or discard this patch.
recipe/symfony.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
 
7 7
 add('recipes', ['symfony']);
8 8
 
9
-set('symfony_version', function () {
9
+set('symfony_version', function() {
10 10
     $result = run('{{bin/console}} --version');
11 11
     preg_match_all('/(\d+\.?)+/', $result, $matches);
12 12
     return $matches[0][0] ?? 5.0;
@@ -35,12 +35,12 @@  discard block
 block discarded – undo
35 35
 
36 36
 set('bin/console', '{{bin/php}} {{release_or_current_path}}/bin/console');
37 37
 
38
-set('console_options', function () {
38
+set('console_options', function() {
39 39
     return '--no-interaction';
40 40
 });
41 41
 
42 42
 desc('Migrates database');
43
-task('database:migrate', function () {
43
+task('database:migrate', function() {
44 44
     $options = '--allow-no-migration';
45 45
     if (get('migrations_config') !== '') {
46 46
         $options = "$options --configuration={{release_or_current_path}}/{{migrations_config}}";
@@ -50,12 +50,12 @@  discard block
 block discarded – undo
50 50
 });
51 51
 
52 52
 desc('Validate the Doctrine mapping files');
53
-task('doctrine:schema:validate', function () {
53
+task('doctrine:schema:validate', function() {
54 54
     run("cd {{release_or_current_path}} && {{bin/console}} doctrine:schema:validate {{doctrine_schema_validate_config}} {{console_options}}");
55 55
 });
56 56
 
57 57
 desc('Clears cache');
58
-task('deploy:cache:clear', function () {
58
+task('deploy:cache:clear', function() {
59 59
     // composer install scripts usually clear and warmup symfony cache
60 60
     // so we only need to do it if composer install was run with --no-scripts
61 61
     if (false !== strpos(get('composer_options', ''), '--no-scripts')) {
@@ -64,8 +64,8 @@  discard block
 block discarded – undo
64 64
 });
65 65
 
66 66
 desc('Optimize environment variables');
67
-task('deploy:dump-env', function () {
68
-    within('{{release_or_current_path}}', function () {
67
+task('deploy:dump-env', function() {
68
+    within('{{release_or_current_path}}', function() {
69 69
         run('{{bin/composer}} dump-env "${APP_ENV:-prod}"');
70 70
     });
71 71
 });
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
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
             ->setTimeout((null === $config['timeout']) ? null : (float) $config['timeout'])
89 89
             ->setIdleTimeout((null === $config['idle_timeout']) ? null : (float) $config['idle_timeout']);
90 90
 
91
-        $callback = function ($type, $buffer) use ($config, $host) {
91
+        $callback = function($type, $buffer) use ($config, $host) {
92 92
             $this->logger->printBuffer($host, $type, $buffer);
93 93
             $this->pop->callback($host, boolval($config['real_time_output']))($type, $buffer);
94 94
         };
Please login to merge, or discard this patch.
src/Deployer.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -86,19 +86,19 @@  discard block
 block discarded – undo
86 86
             new InputOption('file', 'f', InputOption::VALUE_REQUIRED, 'Recipe file path'),
87 87
         );
88 88
 
89
-        $this['console'] = function () use ($console) {
89
+        $this['console'] = function() use ($console) {
90 90
             return $console;
91 91
         };
92
-        $this['input'] = function () {
92
+        $this['input'] = function() {
93 93
             throw new \RuntimeException('Uninitialized "input" in Deployer container.');
94 94
         };
95
-        $this['output'] = function () {
95
+        $this['output'] = function() {
96 96
             throw new \RuntimeException('Uninitialized "output" in Deployer container.');
97 97
         };
98
-        $this['inputDefinition'] = function () {
98
+        $this['inputDefinition'] = function() {
99 99
             return new InputDefinition();
100 100
         };
101
-        $this['questionHelper'] = function () {
101
+        $this['questionHelper'] = function() {
102 102
             return $this->getHelper('question');
103 103
         };
104 104
 
@@ -106,12 +106,12 @@  discard block
 block discarded – undo
106 106
          *           Config           *
107 107
          ******************************/
108 108
 
109
-        $this['config'] = function () {
109
+        $this['config'] = function() {
110 110
             return new Configuration();
111 111
         };
112 112
         // -l  act as if it had been invoked as a login shell (i.e. source ~/.profile file)
113 113
         // -s  commands are read from the standard input (no arguments should remain after this option)
114
-        $this->config['shell'] = function () {
114
+        $this->config['shell'] = function() {
115 115
             if (currentHost() instanceof Localhost) {
116 116
                 return 'bash -s'; // Non-login shell for localhost.
117 117
             }
@@ -124,37 +124,37 @@  discard block
 block discarded – undo
124 124
          *            Core            *
125 125
          ******************************/
126 126
 
127
-        $this['pop'] = function ($c) {
127
+        $this['pop'] = function($c) {
128 128
             return new Printer($c['output']);
129 129
         };
130
-        $this['sshClient'] = function ($c) {
130
+        $this['sshClient'] = function($c) {
131 131
             return new SshClient($c['output'], $c['pop'], $c['logger']);
132 132
         };
133
-        $this['rsync'] = function ($c) {
133
+        $this['rsync'] = function($c) {
134 134
             return new Rsync($c['pop'], $c['output']);
135 135
         };
136
-        $this['processRunner'] = function ($c) {
136
+        $this['processRunner'] = function($c) {
137 137
             return new ProcessRunner($c['pop'], $c['logger']);
138 138
         };
139
-        $this['tasks'] = function () {
139
+        $this['tasks'] = function() {
140 140
             return new TaskCollection();
141 141
         };
142
-        $this['hosts'] = function () {
142
+        $this['hosts'] = function() {
143 143
             return new HostCollection();
144 144
         };
145
-        $this['scriptManager'] = function ($c) {
145
+        $this['scriptManager'] = function($c) {
146 146
             return new ScriptManager($c['tasks']);
147 147
         };
148
-        $this['selector'] = function ($c) {
148
+        $this['selector'] = function($c) {
149 149
             return new Selector($c['hosts']);
150 150
         };
151
-        $this['fail'] = function () {
151
+        $this['fail'] = function() {
152 152
             return new Collection();
153 153
         };
154
-        $this['messenger'] = function ($c) {
154
+        $this['messenger'] = function($c) {
155 155
             return new Messenger($c['input'], $c['output'], $c['logger']);
156 156
         };
157
-        $this['master'] = function ($c) {
157
+        $this['master'] = function($c) {
158 158
             return new Master(
159 159
                 $c['hosts'],
160 160
                 $c['input'],
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
                 $c['messenger'],
163 163
             );
164 164
         };
165
-        $this['importer'] = function () {
165
+        $this['importer'] = function() {
166 166
             return new Importer();
167 167
         };
168 168
 
@@ -170,12 +170,12 @@  discard block
 block discarded – undo
170 170
          *           Logger           *
171 171
          ******************************/
172 172
 
173
-        $this['log_handler'] = function () {
173
+        $this['log_handler'] = function() {
174 174
             return !empty($this['log'])
175 175
                 ? new FileHandler($this['log'])
176 176
                 : new NullHandler();
177 177
         };
178
-        $this['logger'] = function () {
178
+        $this['logger'] = function() {
179 179
             return new Logger($this['log_handler']);
180 180
         };
181 181
 
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
         $output->writeln([
306 306
             "<fg=white;bg=red> {$class} </> <comment>in {$file} on line {$exception->getLine()}:</>",
307 307
             "",
308
-            implode("\n", array_map(function ($line) {
308
+            implode("\n", array_map(function($line) {
309 309
                 return "  " . $line;
310 310
             }, explode("\n", $exception->getMessage()))),
311 311
             "",
Please login to merge, or discard this patch.
tests/src/Ssh/IOArgumentsTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,8 +20,8 @@  discard block
 block discarded – undo
20 20
             new InputOption('plan', null, InputOption::VALUE_NONE, 'Show execution plan'),
21 21
             new InputOption('start-from', null, InputOption::VALUE_REQUIRED, 'Start execution from this task'),
22 22
             new InputOption('log', null, InputOption::VALUE_REQUIRED, 'Write log to a file'),
23
-            new InputOption('profile', null, InputOption::VALUE_REQUIRED, 'Write profile to a file', ),
24
-            new InputOption('ansi', null, InputOption::VALUE_OPTIONAL, 'Force ANSI output', ),
23
+            new InputOption('profile', null, InputOption::VALUE_REQUIRED, 'Write profile to a file',),
24
+            new InputOption('ansi', null, InputOption::VALUE_OPTIONAL, 'Force ANSI output',),
25 25
         ]);
26 26
 
27 27
         $args = IOArguments::collect(
@@ -29,6 +29,6 @@  discard block
 block discarded – undo
29 29
             new ConsoleOutput(OutputInterface::VERBOSITY_DEBUG, false),
30 30
         );
31 31
 
32
-        self::assertEquals(['--option','env=prod', '--limit', '1', '-vvv'], $args);
32
+        self::assertEquals(['--option', 'env=prod', '--limit', '1', '-vvv'], $args);
33 33
     }
34 34
 }
Please login to merge, or discard this patch.
src/ProcessRunner/ProcessRunner.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
         $this->pop->command($host, 'run', $command);
53 53
 
54 54
         $terminalOutput = $this->pop->callback($host, $config['real_time_output']);
55
-        $callback = function ($type, $buffer) use ($host, $terminalOutput) {
55
+        $callback = function($type, $buffer) use ($host, $terminalOutput) {
56 56
             $this->logger->printBuffer($host, $type, $buffer);
57 57
             $terminalOutput($type, $buffer);
58 58
         };
Please login to merge, or discard this patch.
src/ProcessRunner/Printer.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
      */
39 39
     public function callback(Host $host, bool $forceOutput): callable
40 40
     {
41
-        return function ($type, $buffer) use ($forceOutput, $host) {
41
+        return function($type, $buffer) use ($forceOutput, $host) {
42 42
             if ($this->output->isVerbose() || $forceOutput) {
43 43
                 $this->printBuffer($type, $host, $buffer);
44 44
             }
Please login to merge, or discard this patch.