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