@@ -109,7 +109,7 @@ |
||
| 109 | 109 | ; |
| 110 | 110 | |
| 111 | 111 | $output = $this->output; |
| 112 | - $process->run(function ($type, $data) use ($output) { |
|
| 112 | + $process->run(function($type, $data) use ($output) { |
|
| 113 | 113 | $output->writeln($data); |
| 114 | 114 | }); |
| 115 | 115 | |
@@ -105,7 +105,7 @@ |
||
| 105 | 105 | $runner = $this->runner; |
| 106 | 106 | $runner->run( |
| 107 | 107 | 'bash '.$this->installScript, |
| 108 | - null,//callback |
|
| 108 | + null, //callback |
|
| 109 | 109 | null, //cwd |
| 110 | 110 | $env |
| 111 | 111 | ); |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | // tests download installer script |
| 62 | 62 | $contents = file_get_contents(__DIR__.'/fixtures/git-ls-remote.txt'); |
| 63 | 63 | $target = $this->getParameters()->get('nvm.temp_dir').'/versions.txt'; |
| 64 | - $callback = function () use ($contents,$target) { |
|
| 64 | + $callback = function() use ($contents, $target) { |
|
| 65 | 65 | file_put_contents($target, $contents, LOCK_EX); |
| 66 | 66 | }; |
| 67 | 67 | $this->runner->expects($this->at(0)) |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | $this->downloader->expects($this->at(0)) |
| 72 | 72 | ->method('run') |
| 73 | 73 | ->with('https://raw.githubusercontent.com/creationix/nvm/v0.33.9/install.sh') |
| 74 | - ->will($this->returnCallback(function ($url, $target) { |
|
| 74 | + ->will($this->returnCallback(function($url, $target) { |
|
| 75 | 75 | Toolkit::ensureFileDir($target); |
| 76 | 76 | touch($target); |
| 77 | 77 | })) |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | { |
| 99 | 99 | $contents = file_get_contents(__DIR__.'/fixtures/git-ls-remote.txt'); |
| 100 | 100 | $target = $this->getParameters()->get('nvm.temp_dir').'/versions.txt'; |
| 101 | - $callback = function () use ($contents,$target) { |
|
| 101 | + $callback = function() use ($contents, $target) { |
|
| 102 | 102 | file_put_contents($target, $contents, LOCK_EX); |
| 103 | 103 | }; |
| 104 | 104 | $this->runner->expects($this->any()) |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | $this->assertContains('STARTED Executing: php --version', $display); |
| 31 | 31 | |
| 32 | 32 | $hasCalled = false; |
| 33 | - $callback = function ($type, $buffer) use (&$hasCalled) { |
|
| 33 | + $callback = function($type, $buffer) use (&$hasCalled) { |
|
| 34 | 34 | $hasCalled = true; |
| 35 | 35 | }; |
| 36 | 36 | $runner->run('php --version', $callback); |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | $this->runner->expects($this->once()) |
| 84 | 84 | ->method('run') |
| 85 | 85 | ->with($this->stringContains('composer')) |
| 86 | - ->will($this->returnCallback(function () use ($installFile) { |
|
| 86 | + ->will($this->returnCallback(function() use ($installFile) { |
|
| 87 | 87 | Toolkit::ensureFileDir($installFile); |
| 88 | 88 | touch($installFile); |
| 89 | 89 | })) |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | |
| 113 | 113 | $this->downloader->expects($this->any()) |
| 114 | 114 | ->method('run') |
| 115 | - ->will($this->returnCallback(function ($url, $target) use ($config): void { |
|
| 115 | + ->will($this->returnCallback(function($url, $target) use ($config): void { |
|
| 116 | 116 | Toolkit::ensureFileDir($target); |
| 117 | 117 | $origin = $config['installer.php']; |
| 118 | 118 | if (false !== strpos($target, 'composer.sig')) { |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | $this->downloader->expects($this->once()) |
| 64 | 64 | ->method('run') |
| 65 | 65 | ->with(Installer::DOWNLOAD_URL, $tempDir.'/phpbrew') |
| 66 | - ->will($this->returnCallback(function ($url, $target): void { |
|
| 66 | + ->will($this->returnCallback(function($url, $target): void { |
|
| 67 | 67 | touch($target); |
| 68 | 68 | })) |
| 69 | 69 | ; |
@@ -139,7 +139,7 @@ |
||
| 139 | 139 | $builder->compile(true); |
| 140 | 140 | $dumper = new PhpDumper($builder); |
| 141 | 141 | $resources = $this->envFiles; |
| 142 | - array_walk($resources, function (&$item): void { |
|
| 142 | + array_walk($resources, function(&$item): void { |
|
| 143 | 143 | $item = new FileResource($item); |
| 144 | 144 | }); |
| 145 | 145 | $resources = array_merge($resources, $builder->getResources()); |
@@ -69,7 +69,7 @@ |
||
| 69 | 69 | $output->writeln("Cleaning cache in <comment>$cacheDir</comment>"); |
| 70 | 70 | $logger = $this->logger; |
| 71 | 71 | $fs = new Filesystem(); |
| 72 | - $fs->removeDir($cacheDir, function ($directory) use ($logger): void { |
|
| 72 | + $fs->removeDir($cacheDir, function($directory) use ($logger): void { |
|
| 73 | 73 | $message = "-removed <comment>$directory</comment>"; |
| 74 | 74 | $this->logger->info($message); |
| 75 | 75 | }); |
@@ -153,7 +153,7 @@ |
||
| 153 | 153 | |
| 154 | 154 | private function generatePhar($pharFile = 'dotfiles.phar'): void |
| 155 | 155 | { |
| 156 | - $finderSort = function ($a, $b) { |
|
| 156 | + $finderSort = function($a, $b) { |
|
| 157 | 157 | return strcmp(strtr($a->getRealPath(), '\\', '/'), strtr($b->getRealPath(), '\\', '/')); |
| 158 | 158 | }; |
| 159 | 159 | |