Completed
Branch master (ff4c43)
by Christian
02:19
created
Category
installer/src/Finder/CocotteFinder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
         $search = new \SplFileInfo($realPath);
10 10
 
11 11
         return $this->in($search->getPath())->filter(
12
-            function (\SplFileInfo $found) use ($search) {
12
+            function(\SplFileInfo $found) use ($search) {
13 13
                 return $search->getRealPath() === $found->getRealPath();
14 14
             }
15 15
         );
Please login to merge, or discard this patch.
installer/src/Console/MarkdownDescriptor.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
             .array_reduce(array_merge(array($synopsis),
137 137
                 $command->getAliases(),
138 138
                 $command->getUsages()),
139
-                function ($carry, $usage) {
139
+                function($carry, $usage) {
140 140
                     return $carry.'* `'.$usage.'`'."\n";
141 141
                 })
142 142
         );
@@ -160,14 +160,14 @@  discard block
 block discarded – undo
160 160
         $this->write($title."\n".str_repeat('=', Helper::strlen($title)));
161 161
 
162 162
         $commands = array_filter($description->getCommands(),
163
-            function (Command $command) {
163
+            function(Command $command) {
164 164
                 return $command instanceof DocumentedCommand;
165 165
             });
166 166
 
167 167
         $this->write("\n\n");
168 168
         $this->write(implode("\n",
169 169
                 array_map(
170
-                    function (Command $command) use ($description) {
170
+                    function(Command $command) use ($description) {
171 171
                         return sprintf(
172 172
                             "* [`%s`](#%s)\n  > %s",
173 173
                             $command->getName(),
@@ -201,14 +201,14 @@  discard block
 block discarded – undo
201 201
     {
202 202
         $options = $definition->getOptions();
203 203
         $options = array_filter($options,
204
-            function (InputOption $option) {
204
+            function(InputOption $option) {
205 205
                 return !in_array(
206 206
                     $option->getName(),
207 207
                     ['help', 'quiet', 'verbose', 'version', 'ansi', 'no-ansi', 'no-interaction']
208 208
                 );
209 209
             });
210 210
         usort($options,
211
-            function (InputOption $a, InputOption $b) {
211
+            function(InputOption $a, InputOption $b) {
212 212
                 $aRequired = $a->isValueRequired() ? 1 : 0;
213 213
                 $bRequired = $b->isValueRequired() ? 1 : 0;
214 214
                 if ($aRequired == $bRequired) {
Please login to merge, or discard this patch.
installer/src/Console/InteractionOperator.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,14 +46,14 @@
 block discarded – undo
46 46
 
47 47
     private function normalizer(): \Closure
48 48
     {
49
-        return function ($answer): string {
49
+        return function($answer): string {
50 50
             return trim((string)$answer);
51 51
         };
52 52
     }
53 53
 
54 54
     private function validator(OptionProvider $optionProvider): \Closure
55 55
     {
56
-        return function (string $answer) use ($optionProvider): string {
56
+        return function(string $answer) use ($optionProvider): string {
57 57
             if (!$answer) {
58 58
                 throw new \Exception('No answer was given. Try again.');
59 59
             }
Please login to merge, or discard this patch.
installer/src/Shell/ProcessRunner.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
             $this->style,
50 50
             $process,
51 51
             null,
52
-            function ($type, $buffer) use ($useProgress, $displayProgressText, $progressBar) {
52
+            function($type, $buffer) use ($useProgress, $displayProgressText, $progressBar) {
53 53
                 if ($useProgress) {
54 54
                     if ($displayProgressText && Process::OUT === $type) {
55 55
                         $progressBar->setMessage(substr(preg_replace('#\s+#', ' ', $buffer), 0, 100));
Please login to merge, or discard this patch.
installer/src/DependencyInjection/ConsoleCommandPass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
         $ids = array_keys($container->findTaggedServiceIds('console.command', true));
16 16
 
17 17
         $refs = array_map(
18
-            function ($id) {
18
+            function($id) {
19 19
                 return new Reference($id);
20 20
             },
21 21
             $ids
Please login to merge, or discard this patch.
installer/src/DigitalOcean/HostnameCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
     {
21 21
         return new self(
22 22
             ...array_map(
23
-                function (string $host) {
23
+                function(string $host) {
24 24
                     return Hostname::parse($host);
25 25
                 },
26 26
                 $value
Please login to merge, or discard this patch.
installer/test/Collaborator/Shell/ProcessRunnerDouble.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
         ($mock = $this->mock())
48 48
             ->expects(TestCase::once())
49 49
             ->method('mustRun')
50
-            ->with(TestCase::callback(function (Process $process) use ($command) {
50
+            ->with(TestCase::callback(function(Process $process) use ($command) {
51 51
                 TestCase::assertSame(
52 52
                     $command,
53 53
                     $process->getCommandLine()
Please login to merge, or discard this patch.
installer/test/Unit/Console/CocotteStyleTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,10 +29,10 @@  discard block
 block discarded – undo
29 29
             [
30 30
                 "\r",
31 31
             ],
32
-            function (CocotteStyle $style) {
32
+            function(CocotteStyle $style) {
33 33
                 self::assertSame(null, $style->pause());
34 34
             },
35
-            function (string $display) {
35
+            function(string $display) {
36 36
                 self::assertSame(
37 37
                     "\n Press ENTER to continue or press CTRL+D to quit:\n > \n",
38 38
                     $display
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     {
46 46
         $command = new Command('style');
47 47
         $command->setCode(
48
-            function (InputInterface $input, OutputInterface $output) use ($runInteractive) {
48
+            function(InputInterface $input, OutputInterface $output) use ($runInteractive) {
49 49
                 $style = new CocotteStyle($input, $output);
50 50
                 $runInteractive($style);
51 51
             }
Please login to merge, or discard this patch.
installer/test/Unit/DigitalOcean/DnsValidatorTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
         $double = DnsValidatorDouble::create($this);
16 16
         $builder = $double->builder();
17 17
         $env = $builder->env();
18
-        $validator = $double->buildMock(function (MockBuilder $mockBuilder) use ($builder) {
18
+        $validator = $double->buildMock(function(MockBuilder $mockBuilder) use ($builder) {
19 19
             $mockBuilder
20 20
                 ->setMethodsExcept(['validateHost'])
21 21
                 ->setConstructorArgs($builder->args());
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
         $double = DnsValidatorDouble::create($this);
38 38
         $builder = $double->builder();
39 39
         $env = $builder->env();
40
-        $validator = $double->buildMock(function (MockBuilder $mockBuilder) use ($builder) {
40
+        $validator = $double->buildMock(function(MockBuilder $mockBuilder) use ($builder) {
41 41
             $mockBuilder
42 42
                 ->setMethodsExcept(['validateHost'])
43 43
                 ->setConstructorArgs($builder->args());
Please login to merge, or discard this patch.