Passed
Pull Request — master (#9)
by ANTHONIUS
03:11
created
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/Core/Tests/Processor/ProcessRunnerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Plugins/Composer/Tests/InstallerTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -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'))
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
             }))
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
 
113 113
         $this->downloader->expects($this->any())
114 114
             ->method('run')
115
-            ->will($this->returnCallback(function ($url, $target) use ($config): void {
115
+            ->will($this->returnCallback(function($url, $target) use ($config): void {
116 116
                 Toolkit::ensureFileDir($target);
117 117
                 $origin = $config['installer.php'];
118 118
                 if (false !== strpos($target, 'composer.sig')) {
Please login to merge, or discard this patch.
src/Plugins/PHPBrew/Tests/InstallerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
         $this->downloader->expects($this->once())
64 64
             ->method('run')
65 65
             ->with(Installer::DOWNLOAD_URL, $tempDir.'/phpbrew')
66
-            ->will($this->returnCallback(function ($url, $target): void {
66
+            ->will($this->returnCallback(function($url, $target): void {
67 67
                 touch($target);
68 68
             }))
69 69
         ;
Please login to merge, or discard this patch.
src/Core/ApplicationFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@
 block discarded – undo
139 139
             $builder->compile(true);
140 140
             $dumper = new PhpDumper($builder);
141 141
             $resources = $this->envFiles;
142
-            array_walk($resources, function (&$item): void {
142
+            array_walk($resources, function(&$item): void {
143 143
                 $item = new FileResource($item);
144 144
             });
145 145
             $resources = array_merge($resources, $builder->getResources());
Please login to merge, or discard this patch.
src/Core/Command/ClearCacheCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
         $output->writeln("Cleaning cache in <comment>$cacheDir</comment>");
70 70
         $logger = $this->logger;
71 71
         $fs = new Filesystem();
72
-        $fs->removeDir($cacheDir, function ($directory) use ($logger): void {
72
+        $fs->removeDir($cacheDir, function($directory) use ($logger): void {
73 73
             $message = "-removed <comment>$directory</comment>";
74 74
             $this->logger->info($message);
75 75
         });
Please login to merge, or discard this patch.
src/Core/Command/CompileCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@
 block discarded – undo
153 153
 
154 154
     private function generatePhar($pharFile = 'dotfiles.phar'): void
155 155
     {
156
-        $finderSort = function ($a, $b) {
156
+        $finderSort = function($a, $b) {
157 157
             return strcmp(strtr($a->getRealPath(), '\\', '/'), strtr($b->getRealPath(), '\\', '/'));
158 158
         };
159 159
 
Please login to merge, or discard this patch.