Skip to content

Instantly share code, notes, and snippets.

@jverdeyen
Last active February 26, 2019 07:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jverdeyen/10872645e8701c380e253c256ae8d770 to your computer and use it in GitHub Desktop.
Save jverdeyen/10872645e8701c380e253c256ae8d770 to your computer and use it in GitHub Desktop.
A default php-cs configuration
<?php
return Symfony\CS\Config\Config::create()
->level(Symfony\CS\FixerInterface::SYMFONY_LEVEL)
->fixers([
'concat_with_spaces',
'multiline_spaces_before_semicolon',
'short_array_syntax',
'newline_after_open_tag',
'single_quote',
'ordered_use',
'phpdoc_order',
'-remove_lines_between_uses',
'-empty_return',
'-phpdoc_params',
'-phpdoc_short_description',
'echo_to_print',
'blankline_after_open_tag',
])
->finder(
Symfony\CS\Finder\DefaultFinder::create()
->in('src/')
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment