mirror of
https://github.com/getformwork/formwork.git
synced 2025-01-18 05:58:20 +01:00
36 lines
1.3 KiB
Plaintext
36 lines
1.3 KiB
Plaintext
|
<?php
|
||
|
|
||
|
namespace PhpCsFixer;
|
||
|
|
||
|
$finder = Finder::create()
|
||
|
->exclude('admin/views')
|
||
|
->in(__DIR__);
|
||
|
|
||
|
return Config::create()
|
||
|
->setRules(array(
|
||
|
'@PSR1' => true,
|
||
|
'@PSR2' => true,
|
||
|
'cast_spaces' => array('space' => 'single'),
|
||
|
'concat_space' => array('spacing' => 'one'),
|
||
|
'escape_implicit_backslashes' => true,
|
||
|
'include' => true,
|
||
|
'native_function_casing' => true,
|
||
|
'new_with_braces' => true,
|
||
|
'no_empty_comment' => true,
|
||
|
'no_empty_phpdoc' => true,
|
||
|
'no_empty_statement' => true,
|
||
|
'no_extra_blank_lines' => true,
|
||
|
'no_leading_import_slash' => true,
|
||
|
'no_null_property_initialization' => true,
|
||
|
'no_superfluous_elseif' => true,
|
||
|
'no_trailing_comma_in_list_call' => true,
|
||
|
'no_trailing_comma_in_singleline_array' => true,
|
||
|
'no_trailing_whitespace_in_comment' => true,
|
||
|
'no_unneeded_control_parentheses' => true,
|
||
|
'no_unneeded_curly_braces' => true,
|
||
|
'no_useless_else' => true,
|
||
|
'ordered_class_elements' => array('constant_public', 'constant_protected', 'constant_private', 'property_public', 'property_protected', 'property_private', 'construct', 'method_public', 'method_protected', 'method_private', 'destruct', 'magic'),
|
||
|
'single_quote' => true
|
||
|
))
|
||
|
->setFinder($finder);
|