@@ -1,6 +1,6 @@ |
||
| 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. |
@@ -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. |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | ; |
| 44 | 44 | $event = new ReloadBashConfigEvent($logger); |
| 45 | 45 | $dispatcher = new Dispatcher(); |
| 46 | - $dispatcher->addListener(ReloadBashConfigEvent::NAME, function ($event): void { |
|
| 46 | + $dispatcher->addListener(ReloadBashConfigEvent::NAME, function($event): void { |
|
| 47 | 47 | $event->addHeaderConfig('dispatched'); |
| 48 | 48 | }); |
| 49 | 49 | $dispatcher->dispatch(ReloadBashConfigEvent::NAME, $event); |
@@ -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. |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | |
| 94 | 94 | $process->expects($this->once()) |
| 95 | 95 | ->method('run') |
| 96 | - ->will($this->returnCallback(function () { |
|
| 96 | + ->will($this->returnCallback(function() { |
|
| 97 | 97 | touch($this->tempDir.'/bin/composer.phar'); |
| 98 | 98 | |
| 99 | 99 | return 0; |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | |
| 137 | 137 | $this->downloader->expects($this->any()) |
| 138 | 138 | ->method('run') |
| 139 | - ->will($this->returnCallback(function ($url, $target) use ($config): void { |
|
| 139 | + ->will($this->returnCallback(function($url, $target) use ($config): void { |
|
| 140 | 140 | Toolkit::ensureFileDir($target); |
| 141 | 141 | $origin = $config['installer.php']; |
| 142 | 142 | if (false !== strpos($target, 'composer.sig')) { |
@@ -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. |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | $process = $this->processor->create($cmd); |
| 145 | 145 | $process->setTimeout(3600); |
| 146 | 146 | $process->setIdleTimeout(60); |
| 147 | - $process->run(function ($type, $buffer): void { |
|
| 147 | + $process->run(function($type, $buffer): void { |
|
| 148 | 148 | //@codeCoverageIgnoreStart |
| 149 | 149 | if (Process::ERR === $type) { |
| 150 | 150 | $this->logger->error($buffer); |
@@ -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. |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | $this->downloader->expects($this->once()) |
| 67 | 67 | ->method('run') |
| 68 | 68 | ->with(Installer::DOWNLOAD_URL, $tempDir.'/temp/phpbrew') |
| 69 | - ->will($this->returnCallback(function () use ($tempDir): void { |
|
| 69 | + ->will($this->returnCallback(function() use ($tempDir): void { |
|
| 70 | 70 | touch($tempDir.'/temp/phpbrew'); |
| 71 | 71 | })) |
| 72 | 72 | ; |
@@ -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. |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | 'init', |
| 107 | 107 | ); |
| 108 | 108 | $process = new Process($cmd); |
| 109 | - $process->run(function ($type, $buffer): void { |
|
| 109 | + $process->run(function($type, $buffer): void { |
|
| 110 | 110 | //@codeCoverageIgnoreStart |
| 111 | 111 | if (Process::ERR === $type) { |
| 112 | 112 | $this->logger->error('phpbrew: '.$buffer); |
@@ -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. |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | $phar->setSignatureAlgorithm(\Phar::SHA1); |
| 116 | 116 | $phar->startBuffering(); |
| 117 | 117 | |
| 118 | - $finderSort = function ($a, $b) { |
|
| 118 | + $finderSort = function($a, $b) { |
|
| 119 | 119 | return strcmp(strtr($a->getRealPath(), '\\', '/'), strtr($b->getRealPath(), '\\', '/')); |
| 120 | 120 | }; |
| 121 | 121 | |
@@ -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. |
@@ -167,7 +167,7 @@ discard block |
||
| 167 | 167 | $this->debug("executing <comment>$file</comment>"); |
| 168 | 168 | $cmd = $file; |
| 169 | 169 | $process = new Process($cmd); |
| 170 | - $process->run(function ($type, $buffer): void { |
|
| 170 | + $process->run(function($type, $buffer): void { |
|
| 171 | 171 | if (Process::ERR === $type) { |
| 172 | 172 | $this->output->writeln("Error: $buffer"); |
| 173 | 173 | } else { |
@@ -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. |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | ->method('run') |
| 121 | 121 | ->will( |
| 122 | 122 | $this->returnCallback( |
| 123 | - function ($url, $target) use ($versionFile): void { |
|
| 123 | + function($url, $target) use ($versionFile): void { |
|
| 124 | 124 | file_put_contents($target, $versionFile, LOCK_EX); |
| 125 | 125 | } |
| 126 | 126 | ) |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | ->method('run') |
| 144 | 144 | ->will( |
| 145 | 145 | $this->returnCallback( |
| 146 | - function ($url, $target): void { |
|
| 146 | + function($url, $target): void { |
|
| 147 | 147 | touch($target); |
| 148 | 148 | } |
| 149 | 149 | ) |