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',
37 '?' => 'align_single_space_minimal',
38 ':' => 'align_single_space_minimal',
41 'blank_line_after_namespace' => true,
43 'position_after_anonymous_constructs' => 'same',
44 'position_after_control_structures' => 'same',
45 'position_after_functions_and_oop_constructs' => 'next',
49 'full_opening_tag' => true,
50 'function_declaration' => [
51 'closure_function_spacing' => 'one',
53 'indentation_type' => true,
54 'line_ending' => true,
58 'lowercase_keywords' => true,
59 'method_argument_space' => [],
60 'no_closing_tag' => true,
61 'no_spaces_after_function_name' => true,
62 'no_spaces_inside_parenthesis' => true,
63 'no_trailing_whitespace' => true,
64 'no_trailing_whitespace_in_comment' => true,
65 'no_unused_imports' => true,
66 'single_blank_line_at_eof' => true,
67 'single_class_element_per_statement' => true,
68 'single_import_per_statement' => true,
69 'single_line_after_imports' => true,
70 'switch_case_space' => true,
71 'visibility_required' => [
72 'elements' => ['property', 'method']
74 'new_with_braces' => true,