@@ -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. |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | $helper = $this->getHelper('question'); |
| 135 | 135 | $default = getenv('DOTFILES_BACKUP_DIR'); |
| 136 | 136 | $question = new Question("Please enter local backup dir (<comment>$default</comment>): ", $default); |
| 137 | - $question->setValidator(function ($answer) { |
|
| 137 | + $question->setValidator(function($answer) { |
|
| 138 | 138 | if (null === $answer) { |
| 139 | 139 | throw new InvalidOperationException('You have to define local backup directory'); |
| 140 | 140 | } |
@@ -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. |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | $output->writeln("Cleaning cache in <comment>$cacheDir</comment>"); |
| 73 | 73 | $logger = $this->logger; |
| 74 | 74 | $fs = new Filesystem(); |
| 75 | - $fs->removeDir($cacheDir, function ($directory) use ($logger): void { |
|
| 75 | + $fs->removeDir($cacheDir, function($directory) use ($logger): void { |
|
| 76 | 76 | $message = "-removed <comment>$directory</comment>"; |
| 77 | 77 | $this->logger->debug($message); |
| 78 | 78 | }); |
@@ -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()); |
@@ -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. |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | $tempDir = $this->getParameters()->get('dotfiles.temp_dir'); |
| 43 | 43 | $this->downloader->expects($this->exactly(2)) |
| 44 | 44 | ->method('run') |
| 45 | - ->will($this->returnCallback(function ($url, $target) use ($tempDir): void { |
|
| 45 | + ->will($this->returnCallback(function($url, $target) use ($tempDir): void { |
|
| 46 | 46 | if (false !== strpos($target, 'dotfiles.phar.json')) { |
| 47 | 47 | $target = $tempDir.'/update/dotfiles.phar.json'; |
| 48 | 48 | copy(__DIR__.'/fixtures/dotfiles.phar.json', $target); |
@@ -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. |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | $logger = $this->logger; |
| 91 | 91 | $logger->debug("Executing <comment>$relPath</comment>"); |
| 92 | 92 | $process = new Process($realPath); |
| 93 | - $process->run(function ($type, $buffer) use ($relPath,$logger,$helper,$process): void { |
|
| 93 | + $process->run(function($type, $buffer) use ($relPath, $logger, $helper, $process): void { |
|
| 94 | 94 | $buffer = trim($buffer); |
| 95 | 95 | $contents = $helper->start( |
| 96 | 96 | spl_object_hash($process), |
@@ -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 | |
@@ -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. |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | $helper = new DebugFormatterHelper(); |
| 79 | 79 | $output = $this->output; |
| 80 | 80 | |
| 81 | - $process->run(function ($type, $buffer) use ($helper,$output,$process,$callback) { |
|
| 81 | + $process->run(function($type, $buffer) use ($helper, $output, $process, $callback) { |
|
| 82 | 82 | if (is_callable($callback)) { |
| 83 | 83 | call_user_func($callback, $type, $buffer); |
| 84 | 84 | } |
@@ -100,7 +100,7 @@ |
||
| 100 | 100 | $runner = $this->processor; |
| 101 | 101 | $runner->run( |
| 102 | 102 | 'bash '.$this->installScript, |
| 103 | - null,//callback |
|
| 103 | + null, //callback |
|
| 104 | 104 | null, //cwd |
| 105 | 105 | $env |
| 106 | 106 | ); |
@@ -82,7 +82,7 @@ |
||
| 82 | 82 | $this->downloader->expects($this->at(0)) |
| 83 | 83 | ->method('run') |
| 84 | 84 | ->with('https://raw.githubusercontent.com/creationix/nvm/v0.33.9/install.sh') |
| 85 | - ->will($this->returnCallback(function ($url, $target) { |
|
| 85 | + ->will($this->returnCallback(function($url, $target) { |
|
| 86 | 86 | Toolkit::ensureFileDir($target); |
| 87 | 87 | touch($target); |
| 88 | 88 | })) |