| @@ -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 | 
| @@ -9,15 +9,15 @@ | ||
| 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]> | 
| @@ -35,7 +35,7 @@ discard block | ||
| 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 | ||
| 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 | ||
| 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 | ||
| 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 | } |