in([__DIR__.'/lib', __DIR__.'/public']) ->append([__DIR__.'/config/settings-sample.php']) ->name('*.php'); return (new PhpCsFixer\Config()) ->setIndent("\t") ->setLineEnding("\n") ->setRules([ 'single_quote' => true, 'array_syntax' => ['syntax' => 'short'], 'braces_position' => [ 'classes_opening_brace' => 'same_line', 'functions_opening_brace' => 'same_line', 'anonymous_functions_opening_brace' => 'same_line' ], 'concat_space' => ['spacing' => 'none'], 'constant_case' => ['case' => 'lower'], 'lowercase_keywords' => true, 'visibility_required' => ['elements' => ['method', 'property', 'const']], 'no_unused_imports' => true, 'no_trailing_whitespace' => true, 'no_trailing_whitespace_in_comment' => true, 'single_blank_line_at_eof' => true, 'no_empty_statement' => true, 'trim_array_spaces' => true, 'new_with_parentheses' => true ]) ->setFinder($finder);