Skip to content

Commit

Permalink
Merge pull request #333 from noldor/fix/php-cs-fixer-rule
Browse files Browse the repository at this point in the history
fix php-cs-fixer rule with the styleguide
  • Loading branch information
lonnieezell authored Jan 10, 2017
2 parents d5ce60f + 2a08031 commit 666cda7
Showing 1 changed file with 7 additions and 34 deletions.
41 changes: 7 additions & 34 deletions .php_cs
Original file line number Diff line number Diff line change
@@ -1,65 +1,38 @@
<?php

$finder = Symfony\CS\Finder\DefaultFinder::create()
->exclude('ThirdParty')
->in('system');

return Symfony\CS\Config\Config::create()
->level(Symfony\CS\FixerInterface::NONE_LEVEL)
->level(Symfony\CS\FixerInterface::PSR1_LEVEL)
->fixers(array(
'psr0',
'encoding',
'short_tag',
'braces',
'class_definition',
'eof_ending',
'line_after_namespace',
'function_call_space',
'linefeed',
'lowercase_constants',
'lowercase_keywords',
'method_argument_space',
'no_trailing_whitespace_in_comment',
'parenthesis',
'php_closing_tag',
'single_line_after_imports',
'trailing_spaces',
'visibility',
'array_element_no_space_before_comma',
'array_element_white_space_after_comma',
'concat_without_spaces',
'double_arrow_multiline_whitespaces',
'duplicate_semicolon',
'function_typehint_space',
'include',
'multiline_array_trailing_comma',
'no_empty_lines_after_phpdocs',
'object_operator',
'operators_spaces',
'phpdoc_indent',
'phpdoc_no_empty_return',
'phpdoc_params',
'phpdoc_scalar',
'phpdoc_separation',
'phpdoc_to_comment',
'phpdoc_trim',
'phpdoc_type_to_var',
'phpdoc_types',
'print_to_echo',
'remove_leading_slash_use',
'remove_lines_between_uses',
'return',
'single_array_no_trailing_comma',
'spaces_before_semicolon',
'standardize_not_equal',
'ternary_spaces',
'trim_array_spaces',
'unary_operators_spaces',
'unused_use',
'spaces_cast',
'whitespacy_lines',
'align_double_arrow',
'align_equals',
'logical_not_operators_with_spaces',
'logical_not_operators_with_successor_space',
'multiline_spaces_before_semicolon',
'no_blank_lines_before_namespace',
'ordered_use',
'phpdoc_order',
'short_array_syntax',
))
->finder($finder);

0 comments on commit 666cda7

Please sign in to comment.