Skip to content

Instantly share code, notes, and snippets.

@ravelll
Created December 31, 2015 16:47
Show Gist options
  • Save ravelll/b7ddc93840c737897893 to your computer and use it in GitHub Desktop.
Save ravelll/b7ddc93840c737897893 to your computer and use it in GitHub Desktop.
fix setting config file for StyleCI/PHP-CS-Fixer
<?php
$finder = Symfony\CS\Finder\DefaultFinder::create()
->in(__DIR__);
return Symfony\CS\Config\Config::create()
->setRules(array(
'array_element_white_space_after_comma' => true,
'array_element_no_space_before_comma' => true,
'concat_without_spaces' => true,
'duplicate_semicolon' => true,
'extra_empty_lines' => true,
'method_argument_default_value' => true,
'spaces_after_semicolon' => true,
'spaces_before_semicolon' => true,
'standardize_not_equal' => true,
'ternary_spaces' => true,
'unused_use' => true,
'align_double_arrow' => true,
'short_echo_tag' => true,
'@PSR2' => true
))
->finder($finder);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment