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 ( b59d79...3801f0 )
by Anton
11:39
created
contrib/phinx.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
 /**
78 78
  * Path to Phinx
79 79
  */
80
-set('bin/phinx', function () {
80
+set('bin/phinx', function() {
81 81
     try {
82 82
         $phinxPath = which('phinx');
83 83
     } catch (RunException $e) {
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
 
146 146
 
147 147
 desc('Migrats database with phinx');
148
-task('phinx:migrate', function () {
148
+task('phinx:migrate', function() {
149 149
     $ALLOWED_OPTIONS = [
150 150
         'configuration',
151 151
         'date',
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
 });
167 167
 
168 168
 desc('Rollbacks database migrations with phinx');
169
-task('phinx:rollback', function () {
169
+task('phinx:rollback', function() {
170 170
     $ALLOWED_OPTIONS = [
171 171
         'configuration',
172 172
         'date',
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
 });
188 188
 
189 189
 desc('Seeds database with phinx');
190
-task('phinx:seed', function () {
190
+task('phinx:seed', function() {
191 191
     $ALLOWED_OPTIONS = [
192 192
         'configuration',
193 193
         'environment',
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
 });
208 208
 
209 209
 desc('Sets a migrations breakpoint with phinx');
210
-task('phinx:breakpoint', function () {
210
+task('phinx:breakpoint', function() {
211 211
     $ALLOWED_OPTIONS = [
212 212
         'configuration',
213 213
         'environment',
Please login to merge, or discard this patch.
contrib/discord.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 use Deployer\Task\Context;
51 51
 use Deployer\Utility\Httpie;
52 52
 
53
-set('discord_webhook', function () {
53
+set('discord_webhook', function() {
54 54
     return 'https://discordapp.com/api/webhooks/{{discord_channel}}/{{discord_token}}/slack';
55 55
 });
56 56
 
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 set('discord_message', 'discord_notify_text');
76 76
 
77 77
 // Helpers
78
-task('discord_send_message', function(){
78
+task('discord_send_message', function() {
79 79
     $message = get(get('discord_message'));
80 80
 
81 81
     Httpie::post(get('discord_webhook'))->jsonBody($message)->send();
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 
84 84
 // Tasks
85 85
 desc('Tests messages');
86
-task('discord:test', function () {
86
+task('discord:test', function() {
87 87
     set('discord_message', 'discord_notify_text');
88 88
     invoke('discord_send_message');
89 89
     set('discord_message', 'discord_success_text');
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
     ->once();
95 95
 
96 96
 desc('Notifies Discord');
97
-task('discord:notify', function () {
97
+task('discord:notify', function() {
98 98
     set('discord_message', 'discord_notify_text');
99 99
     invoke('discord_send_message');
100 100
 })
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
     ->isHidden();
103 103
 
104 104
 desc('Notifies Discord about deploy finish');
105
-task('discord:notify:success', function () {
105
+task('discord:notify:success', function() {
106 106
     set('discord_message', 'discord_success_text');
107 107
     invoke('discord_send_message');
108 108
 })
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
     ->isHidden();
111 111
 
112 112
 desc('Notifies Discord about deploy failure');
113
-task('discord:notify:failure', function () {
113
+task('discord:notify:failure', function() {
114 114
     set('discord_message', 'discord_failure_text');
115 115
     invoke('discord_send_message');
116 116
 })
Please login to merge, or discard this patch.
contrib/npm.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
  */
14 14
 namespace Deployer;
15 15
 
16
-set('bin/npm', function () {
16
+set('bin/npm', function() {
17 17
     return which('npm');
18 18
 });
19 19
 
@@ -23,6 +23,6 @@  discard block
 block discarded – undo
23 23
 // any situation where you want to make sure you're doing a clean
24 24
 // install of your dependencies.
25 25
 desc('Installs npm packages');
26
-task('npm:install', function () {
26
+task('npm:install', function() {
27 27
     run("cd {{release_path}} && {{bin/npm}} ci");
28 28
 });
Please login to merge, or discard this patch.
contrib/cpanel.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
         !isset($config['port']) ||
163 163
         !isset($config['username']) ||
164 164
         !isset($config['token']) ||
165
-        !isset($config['user']) ) {
165
+        !isset($config['user'])) {
166 166
         throw new \RuntimeException("<comment>Please configure CPanel config:</comment> <info>set('cpanel', array('host' => 'xxx.xxx.xxx.xxx:', 'port' => 2087 , 'username' => 'root', 'token' => 'asdfasdf', 'cpaneluser' => 'guy'));</info>");
167 167
     }
168 168
 
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
 }
193 193
 
194 194
 desc('Creates database though CPanel API');
195
-task('cpanel:createdb', function () {
195
+task('cpanel:createdb', function() {
196 196
 
197 197
     $cpanel = getCPanel();
198 198
     $config = get('cpanel', []);
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
 });
221 221
 
222 222
 desc('Creates addon domain though CPanel API');
223
-task('cpanel:createaddondomain', function () {
223
+task('cpanel:createaddondomain', function() {
224 224
     $cpanel = getCPanel();
225 225
     $config = get('cpanel', []);
226 226
     $domain = getDomainInfo()['domain'];
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
 });
244 244
 
245 245
 desc('Deletes addon domain though CPanel API');
246
-task('cpanel:deleteaddondomain', function () {
246
+task('cpanel:deleteaddondomain', function() {
247 247
     $cpanel = getCPanel();
248 248
     $config = get('cpanel', []);
249 249
     $domain = getDomainInfo()['domain'];
Please login to merge, or discard this patch.
contrib/yarn.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,13 +12,13 @@
 block discarded – undo
12 12
  */
13 13
 namespace Deployer;
14 14
 
15
-set('bin/yarn', function () {
15
+set('bin/yarn', function() {
16 16
     return which('yarn');
17 17
 });
18 18
 
19 19
 // In there is a {{previous_release}}, node_modules will be copied from it before installing deps with yarn.
20 20
 desc('Installs Yarn packages');
21
-task('yarn:install', function () {
21
+task('yarn:install', function() {
22 22
     if (has('previous_release')) {
23 23
         if (test('[ -d {{previous_release}}/node_modules ]')) {
24 24
             run('cp -R {{previous_release}}/node_modules {{release_path}}');
Please login to merge, or discard this patch.
tests/src/Host/ConfigurationTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
         $config->set('hyphen-ated', 'hyphen');
23 23
         $config->set('parse', 'is {{int}}');
24 24
         $config->set('parse-hyphen', 'has {{hyphen-ated}}');
25
-        $config->set('callback', function () {
25
+        $config->set('callback', function() {
26 26
             return 'callback';
27 27
         });
28 28
         $this->assertEquals(42, $config->get('int'));
Please login to merge, or discard this patch.
tests/src/Host/HostTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
     public function testHostWithUserFromConfig()
71 71
     {
72 72
         $parent = new Configuration();
73
-        $parent->set("deploy_user", function () {
73
+        $parent->set("deploy_user", function() {
74 74
             return "test_user";
75 75
         });
76 76
 
Please login to merge, or discard this patch.
tests/src/FunctionsTest.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@
 block discarded – undo
158 158
     public function testWithinReturningValue()
159 159
     {
160 160
         $output = within('/foo', function () {
161
-           return 'bar';
161
+            return 'bar';
162 162
         });
163 163
 
164 164
         self::assertEquals('bar', $output);
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 
70 70
     public function testTask()
71 71
     {
72
-        task('task', function () {
72
+        task('task', function() {
73 73
         });
74 74
 
75 75
         $task = $this->deployer->tasks->get('task');
@@ -85,10 +85,10 @@  discard block
 block discarded – undo
85 85
 
86 86
     public function testBefore()
87 87
     {
88
-        task('main', function () {});
89
-        task('before', function () {});
88
+        task('main', function() {});
89
+        task('before', function() {});
90 90
         before('main', 'before');
91
-        before('before', function () {});
91
+        before('before', function() {});
92 92
 
93 93
         $names = $this->taskToNames($this->deployer->scriptManager->getTasks('main'));
94 94
         self::assertEquals(['before:before', 'before', 'main'], $names);
@@ -96,10 +96,10 @@  discard block
 block discarded – undo
96 96
 
97 97
     public function testAfter()
98 98
     {
99
-        task('main', function () {});
100
-        task('after', function () {});
99
+        task('main', function() {});
100
+        task('after', function() {});
101 101
         after('main', 'after');
102
-        after('after', function () {});
102
+        after('after', function() {});
103 103
 
104 104
         $names = $this->taskToNames($this->deployer->scriptManager->getTasks('main'));
105 105
         self::assertEquals(['main', 'after', 'after:after'], $names);
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
     {
131 131
         Context::get()->getConfig()->set('working_path', '/foo');
132 132
 
133
-        within('/bar', function () {
133
+        within('/bar', function() {
134 134
             $withinWorkingPath = Context::get()->getConfig()->get('working_path');
135 135
             self::assertEquals('/bar', $withinWorkingPath);
136 136
         });
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
         Context::get()->getConfig()->set('working_path', '/foo');
145 145
 
146 146
         try {
147
-            within('/bar', function () {
147
+            within('/bar', function() {
148 148
                 throw new \Exception('Dummy exception');
149 149
             });
150 150
         } catch (\Exception $exception) {
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
 
158 158
     public function testWithinReturningValue()
159 159
     {
160
-        $output = within('/foo', function () {
160
+        $output = within('/foo', function() {
161 161
            return 'bar';
162 162
         });
163 163
 
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
 
167 167
     public function testWithinWithVoidFunction()
168 168
     {
169
-        $output = within('/foo', function () {
169
+        $output = within('/foo', function() {
170 170
             // noop
171 171
         });
172 172
 
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
 
176 176
     private function taskToNames($tasks)
177 177
     {
178
-        return array_map(function (Task $task) {
178
+        return array_map(function(Task $task) {
179 179
             return $task->getName();
180 180
         }, $tasks);
181 181
     }
Please login to merge, or discard this patch.
tests/src/Collection/CollectionTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
         $this->assertTrue($collection->has('object'));
36 36
         $this->assertEquals($object, $collection->get('object'));
37 37
 
38
-        $this->assertEquals(['object' => $object], $collection->select(function ($value, $key) use ($object) {
38
+        $this->assertEquals(['object' => $object], $collection->select(function($value, $key) use ($object) {
39 39
             return $value === $object && $key === 'object';
40 40
         }));
41 41
     }
Please login to merge, or discard this patch.