@@ -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); |