Completed
Push — master ( b6f2d7...3cf278 )
by Sullivan
02:56
created
src/ConfigBridge.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -183,7 +183,7 @@
 block discarded – undo
183 183
 
184 184
         $fixers = array_merge(
185 185
             $enabledFixers,
186
-            array_map(function ($disabledFixer) {
186
+            array_map(function($disabledFixer) {
187 187
                 return '-'.$disabledFixer;
188 188
             }, $disabledFixers),
189 189
             array_diff($presetFixers, $disabledFixers) // Remove disabled fixers from preset
Please login to merge, or discard this patch.
Unused Use Statements   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,15 +9,15 @@
 block discarded – undo
9 9
 use PhpCsFixer\FixerFactory;
10 10
 use SLLH\StyleCIBridge\StyleCI\Configuration;
11 11
 use SLLH\StyleCIFixers\Fixers;
12
+use Symfony\CS\Fixer;
13
+use Symfony\CS\FixerInterface;
14
+use Symfony\CS\Fixer\Contrib\HeaderCommentFixer;
12 15
 use Symfony\Component\Config\Definition\Processor;
13 16
 use Symfony\Component\Console\Formatter\OutputFormatterStyle;
14 17
 use Symfony\Component\Console\Output\ConsoleOutput;
15 18
 use Symfony\Component\Console\Output\OutputInterface;
16 19
 use Symfony\Component\DependencyInjection\Container;
17 20
 use Symfony\Component\Yaml\Yaml;
18
-use Symfony\CS\Fixer;
19
-use Symfony\CS\Fixer\Contrib\HeaderCommentFixer;
20
-use Symfony\CS\FixerInterface;
21 21
 
22 22
 /**
23 23
  * @author Sullivan Senechal <[email protected]>
Please login to merge, or discard this patch.
src/StyleCI/Configuration.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
                 ->arrayNode('enabled')
36 36
                     ->beforeNormalization()
37 37
                         ->ifString()
38
-                        ->then(function ($v) {
38
+                        ->then(function($v) {
39 39
                             return array($v);
40 40
                         })
41 41
                     ->end()
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
                 ->arrayNode('disabled')
50 50
                     ->beforeNormalization()
51 51
                         ->ifString()
52
-                        ->then(function ($v) {
52
+                        ->then(function($v) {
53 53
                             return array($v);
54 54
                         })
55 55
                     ->end()
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
                 ->end()
67 67
             ->end()
68 68
             ->validate()
69
-                ->ifTrue(function ($config) {
69
+                ->ifTrue(function($config) {
70 70
                     $presets = Fixers::getPresets();
71 71
                     $enabledFixers = array_merge($presets[$config['preset']], $config['enabled']);
72 72
                     $disabledFixers = $config['disabled'];
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
 
99 99
         $node
100 100
             ->beforeNormalization()
101
-                ->always(function ($v) {
101
+                ->always(function($v) {
102 102
                     foreach ($v as $option => $value) {
103 103
                         $v[$option] = (array) $value;
104 104
                     }
Please login to merge, or discard this patch.