Skip to content

Commit 44fca31

Browse files
committed
fix: Application::VERSION was not being updated
also updates coding standards
1 parent 6806232 commit 44fca31

File tree

2 files changed

+97
-21
lines changed

2 files changed

+97
-21
lines changed

.php-cs-fixer.dist.php

Lines changed: 96 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@
2121
'@PSR12' => true,
2222
'@PHP82Migration' => true,
2323
'align_multiline_comment' => true,
24-
'array_syntax' => ['syntax' => 'short'],
25-
'binary_operator_spaces' => [
24+
'array_syntax' => [
25+
'syntax' => 'short',
26+
],
27+
'binary_operator_spaces' => [
2628
'operators' => [
2729
'*=' => 'align_single_space_minimal',
2830
'+=' => 'align_single_space_minimal',
@@ -32,19 +34,60 @@
3234
'=>' => 'align_single_space_minimal',
3335
],
3436
],
35-
'declare_equal_normalize' => ['space' => 'none'],
37+
'blank_line_between_import_groups' => true,
38+
'cast_spaces' => true,
39+
'declare_equal_normalize' => [
40+
'space' => 'none',
41+
],
3642
'declare_parentheses' => true,
3743
'declare_strict_types' => true,
3844
'fully_qualified_strict_types' => true,
39-
'header_comment' => ['comment_type' => 'PHPDoc', 'header' => $header, 'separate' => 'top'],
40-
'heredoc_to_nowdoc' => true,
41-
//'global_namespace_import' => ['import_classes' => true, 'import_constants' => true, 'import_functions' => true],
42-
'native_function_invocation' => ['include' => ['@compiler_optimized'], 'scope' => 'namespaced', 'strict' => true],
43-
'native_constant_invocation' => ['fix_built_in' => false, 'include' => ['DIRECTORY_SEPARATOR', 'PHP_INT_SIZE', 'PHP_SAPI', 'PHP_VERSION_ID'], 'scope' => 'namespaced', 'strict' => true],
44-
'no_leading_import_slash' => true,
45-
'no_unneeded_import_alias' => true,
46-
'no_unused_imports' => true,
47-
'ordered_class_elements' => [
45+
'header_comment' => [
46+
'comment_type' => 'PHPDoc',
47+
'header' => $header,
48+
'separate' => 'top',
49+
],
50+
'heredoc_indentation' => true,
51+
'heredoc_to_nowdoc' => true,
52+
//'global_namespace_import' => ['import_classes' => true, 'import_constants' => true, 'import_functions' => true],
53+
'native_function_invocation' => [
54+
'include' => [
55+
'@compiler_optimized',
56+
],
57+
'scope' => 'namespaced',
58+
'strict' => true,
59+
],
60+
'native_constant_invocation' => [
61+
'fix_built_in' => false,
62+
'include' => [
63+
'DIRECTORY_SEPARATOR',
64+
'PHP_INT_SIZE',
65+
'PHP_SAPI',
66+
'PHP_VERSION_ID',
67+
],
68+
'scope' => 'namespaced',
69+
'strict' => true,
70+
],
71+
'no_empty_comment' => true,
72+
'no_empty_phpdoc' => true,
73+
'no_extra_blank_lines' => [
74+
'tokens' => [
75+
'case',
76+
'continue',
77+
'curly_brace_block',
78+
'default',
79+
'extra',
80+
'parenthesis_brace_block',
81+
'square_brace_block',
82+
'switch',
83+
'throw',
84+
'use',
85+
],
86+
],
87+
'no_leading_import_slash' => true,
88+
'no_unneeded_import_alias' => true,
89+
'no_unused_imports' => true,
90+
'ordered_class_elements' => [
4891
'order' => [
4992
'use_trait',
5093
'case',
@@ -70,7 +113,13 @@
70113
],
71114
'sort_algorithm' => 'alpha',
72115
],
73-
'ordered_imports' => ['imports_order' => ['class', 'function', 'const', ]],
116+
'ordered_imports' => [
117+
'imports_order' => [
118+
'class',
119+
'function',
120+
'const',
121+
],
122+
],
74123
'ordered_interfaces' => [
75124
'direction' => 'ascend',
76125
'order' => 'alpha',
@@ -100,13 +149,40 @@
100149
'phpdoc_types_order' => true,
101150
'phpdoc_var_annotation_correct_order' => true,
102151
'phpdoc_var_without_name' => true,
103-
'php_unit_internal_class' => ['types' => ['normal', 'final']],
104-
'php_unit_expectation' => true,
105-
'single_import_per_statement' => true,
106-
'static_lambda' => true,
107-
'strict_param' => true,
108-
'use_arrow_functions' => true,
109-
'whitespace_after_comma_in_array' => true,
152+
'php_unit_data_provider_return_type' => true,
153+
'php_unit_data_provider_static' => [
154+
'force' => true,
155+
],
156+
'php_unit_expectation' => true,
157+
'php_unit_internal_class' => [
158+
'types' => [
159+
'normal',
160+
'final',
161+
],
162+
],
163+
'php_unit_method_casing' => [
164+
'case' => 'camel_case',
165+
],
166+
'php_unit_mock' => [
167+
'target' => 'newest',
168+
],
169+
'php_unit_mock_short_will_return' => true,
170+
'php_unit_set_up_tear_down_visibility' => true,
171+
'php_unit_size_class' => false,
172+
'php_unit_test_annotation' => [
173+
'style' => 'prefix',
174+
],
175+
'php_unit_test_case_static_method_calls' => [
176+
'call_type' => 'self',
177+
],
178+
'single_import_per_statement' => true,
179+
'single_quote' => true,
180+
'single_space_around_construct' => true,
181+
'static_lambda' => true,
182+
'strict_param' => true,
183+
'types_spaces' => true,
184+
'use_arrow_functions' => true,
185+
'whitespace_after_comma_in_array' => true,
110186
])
111187
->setLineEnding("\n")
112188
->setFinder(

src/Application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ final class Application extends BaseApplication
3737

3838
public const COMMAND_NAME = 'coverage:check';
3939

40-
public const VERSION = '2.0.0';
40+
public const VERSION = '2.0.3';
4141

4242
/**
4343
* Override constructor.

0 commit comments

Comments
 (0)