Completed
Pull Request — master (#9)
by ANTHONIUS
02:18
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/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.
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
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
         });
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/Processor/Hooks.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.
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
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),
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/Core/Plugin.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.
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         $r = new \ReflectionClass(get_class($this));
43 43
         $resourceDir = dirname($r->getFileName()).'/Resources';
44 44
         
45
-        if(is_file($serviceConfig = $resourceDir.DIRECTORY_SEPARATOR.'services.yaml')){
45
+        if (is_file($serviceConfig = $resourceDir.DIRECTORY_SEPARATOR.'services.yaml')) {
46 46
             $locator = new FileLocator($resourceDir);
47 47
             $loader = new YamlFileLoader($locator, $container);
48 48
             $loader->load($serviceConfig);
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
         
51 51
         $configuration = $this->getConfiguration($config, $container);
52 52
         $configs = $this->processConfiguration($configuration, $config);
53
-        Toolkit::flattenArray($configs,$this->getName());
53
+        Toolkit::flattenArray($configs, $this->getName());
54 54
         $container->getParameterBag()->add($configs);
55 55
     }
56 56
 }
Please login to merge, or discard this patch.