Completed
Pull Request — master (#9)
by ANTHONIUS
02:55
created
src/Core/Command/InitCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
src/Core/ApplicationFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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());
Please login to merge, or discard this patch.
src/Core/Tests/Command/SelfUpdateCommandTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Core/Console/Shell.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Plugins/NVM/Installer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
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
         );
Please login to merge, or discard this patch.
src/Plugins/NVM/Tests/InstallerTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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())
Please login to merge, or discard this patch.
src/Plugins/Composer/Tests/InstallerTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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.
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
         $this->runner->expects($this->once())
84 84
             ->method('run')
85 85
             ->with($this->stringContains('composer.phar'))
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
             }))
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
 
123 123
         $this->downloader->expects($this->any())
124 124
             ->method('run')
125
-            ->will($this->returnCallback(function ($url, $target) use ($config): void {
125
+            ->will($this->returnCallback(function($url, $target) use ($config): void {
126 126
                 Toolkit::ensureFileDir($target);
127 127
                 $origin = $config['installer.php'];
128 128
                 if (false !== strpos($target, 'composer.sig')) {
Please login to merge, or discard this patch.
src/Core/Command/ClearCacheCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         });
Please login to merge, or discard this patch.
src/Core/Processor/ProcessRunner.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
             }
Please login to merge, or discard this patch.