Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
<?php
$finder = PhpCsFixer\Finder::create()
->in(__DIR__ . '/src')
->exclude('JSMin')
->in(__DIR__ . '/test')
;
return PhpCsFixer\Config::create()
->setRules([
'@PSR1' => true,
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
'braces' => ['position_after_functions_and_oop_constructs' => 'same'],
'cast_spaces' => true,
'class_attributes_separation' => true,
'concat_space' => ['spacing' => 'one'],
'include' => true,
'new_with_braces' => true,
'no_superfluous_elseif' => true,
'no_unneeded_control_parentheses' => true,
'no_unused_imports' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'no_whitespace_before_comma_in_array' => true,
'no_whitespace_in_blank_line' => true,
'ordered_imports' => true,
'return_assignment' => true,
'return_type_declaration' => true,
'single_quote' => true,
'trailing_comma_in_multiline_array' => true,
'trim_array_spaces' => true,
])
->setFinder($finder)
;
// vim: set ft=php :