3 declare(strict_types=1);
5 require_once __DIR__ . '/bin/dev/php-cs-fixer/vendor/autoload.php';
7 $finder = PhpCsFixer\Finder::create()
17 ->notPath('view/asset')
19 ->notPath('view/smarty3/compiled');
21 $config = new PhpCsFixer\Config();
27 'align_multiline_comment' => true,
28 'array_indentation' => true,
32 'binary_operator_spaces' => [
33 'default' => 'single_space',
35 '=>' => 'align_single_space_minimal',
36 '=' => 'align_single_space_minimal',
37 '??' => 'align_single_space_minimal',
40 'blank_line_after_namespace' => true,
42 'position_after_anonymous_constructs' => 'same',
43 'position_after_control_structures' => 'same',
44 'position_after_functions_and_oop_constructs' => 'next',
48 'full_opening_tag' => true,
49 'function_declaration' => [
50 'closure_function_spacing' => 'one',
52 'indentation_type' => true,
53 'line_ending' => true,
57 'lowercase_keywords' => true,
58 'method_argument_space' => [],
59 'no_closing_tag' => true,
60 'no_spaces_after_function_name' => true,
61 'no_spaces_inside_parenthesis' => true,
62 'no_trailing_whitespace' => true,
63 'no_trailing_whitespace_in_comment' => true,
64 'no_unused_imports' => true,
65 'single_blank_line_at_eof' => true,
66 'single_class_element_per_statement' => true,
67 'single_import_per_statement' => true,
68 'single_line_after_imports' => true,
69 'switch_case_space' => true,
70 'ternary_operator_spaces' => false,
71 'visibility_required' => [
72 'elements' => ['property', 'method']
74 'new_with_braces' => true,