@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /* |
| 6 | 6 | * This file is part of the dotfiles project. |
@@ -146,7 +146,7 @@ discard block |
||
| 146 | 146 | $builder->compile(true); |
| 147 | 147 | $dumper = new PhpDumper($builder); |
| 148 | 148 | $resources = $this->envFiles; |
| 149 | - array_walk($resources, function (&$item): void { |
|
| 149 | + array_walk($resources, function(&$item): void { |
|
| 150 | 150 | $item = new FileResource($item); |
| 151 | 151 | }); |
| 152 | 152 | $resources = array_merge($resources, $builder->getResources()); |
@@ -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()) |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /* |
| 6 | 6 | * This file is part of the dotfiles project. |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | $output->writeln("Cleaning cache in <comment>$cacheDir</comment>"); |
| 74 | 74 | $logger = $this->logger; |
| 75 | 75 | $fs = new Filesystem(); |
| 76 | - $fs->removeDir($cacheDir, function ($directory) use ($logger): void { |
|
| 76 | + $fs->removeDir($cacheDir, function($directory) use ($logger): void { |
|
| 77 | 77 | $message = "-removed <comment>$directory</comment>"; |
| 78 | 78 | $this->logger->info($message); |
| 79 | 79 | }); |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /* |
| 6 | 6 | * This file is part of the dotfiles project. |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | 'Executing: '.$commandline, |
| 81 | 81 | 'STARTED' |
| 82 | 82 | )); |
| 83 | - $process->run(function ($type, $buffer) use ($helper,$output,$process,$callback) { |
|
| 83 | + $process->run(function($type, $buffer) use ($helper, $output, $process, $callback) { |
|
| 84 | 84 | if (is_callable($callback)) { |
| 85 | 85 | call_user_func($callback, $type, $buffer); |
| 86 | 86 | } |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /* |
| 6 | 6 | * This file is part of the dotfiles project. |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | $this->downloader->expects($this->once()) |
| 63 | 63 | ->method('run') |
| 64 | 64 | ->with(Installer::DOWNLOAD_URL, $tempDir.'/phpbrew') |
| 65 | - ->will($this->returnCallback(function ($url, $target): void { |
|
| 65 | + ->will($this->returnCallback(function($url, $target): void { |
|
| 66 | 66 | touch($target); |
| 67 | 67 | })) |
| 68 | 68 | ; |
@@ -1,6 +1,6 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | +declare(strict_types = 1); |
|
| 4 | 4 | |
| 5 | 5 | /* |
| 6 | 6 | * This file is part of the dotfiles project. |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | touch($file); |
| 76 | 76 | |
| 77 | 77 | $output = $this->getService('dotfiles.output'); |
| 78 | - $callback = function ($pathName) use ($output) { |
|
| 78 | + $callback = function($pathName) use ($output) { |
|
| 79 | 79 | $output->writeln('- '.$pathName); |
| 80 | 80 | }; |
| 81 | 81 | $fs = new Filesystem(); |
@@ -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); |