@@ -183,7 +183,7 @@ |
||
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 |
@@ -10,14 +10,14 @@ |
||
10 | 10 | use PhpCsFixer\FixerFactory; |
11 | 11 | use SLLH\StyleCIBridge\StyleCI\Configuration; |
12 | 12 | use SLLH\StyleCIFixers\Fixers; |
13 | +use Symfony\CS\Fixer; |
|
14 | +use Symfony\CS\FixerInterface; |
|
15 | +use Symfony\CS\Fixer\Contrib\HeaderCommentFixer; |
|
13 | 16 | use Symfony\Component\Config\Definition\Processor; |
14 | 17 | use Symfony\Component\Console\Formatter\OutputFormatterStyle; |
15 | 18 | use Symfony\Component\Console\Output\ConsoleOutput; |
16 | 19 | use Symfony\Component\Console\Output\OutputInterface; |
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]> |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | ->arrayNode('enabled') |
37 | 37 | ->beforeNormalization() |
38 | 38 | ->ifString() |
39 | - ->then(function ($v) { |
|
39 | + ->then(function($v) { |
|
40 | 40 | return array($v); |
41 | 41 | }) |
42 | 42 | ->end() |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | ->arrayNode('disabled') |
51 | 51 | ->beforeNormalization() |
52 | 52 | ->ifString() |
53 | - ->then(function ($v) { |
|
53 | + ->then(function($v) { |
|
54 | 54 | return array($v); |
55 | 55 | }) |
56 | 56 | ->end() |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | ->end() |
68 | 68 | ->end() |
69 | 69 | ->validate() |
70 | - ->ifTrue(function ($config) { |
|
70 | + ->ifTrue(function($config) { |
|
71 | 71 | $presets = Fixers::getPresets(); |
72 | 72 | $enabledFixers = ConfigBridge::PRESET_NONE === $config['preset'] |
73 | 73 | ? $config['enabled'] |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | |
102 | 102 | $node |
103 | 103 | ->beforeNormalization() |
104 | - ->always(function ($v) { |
|
104 | + ->always(function($v) { |
|
105 | 105 | foreach ($v as $option => $value) { |
106 | 106 | $v[$option] = (array) $value; |
107 | 107 | } |