Skip to content
This repository has been archived by the owner on Mar 1, 2023. It is now read-only.

Releases: narrowspark/php-cs-fixer-config

v5.1.0

11 Oct 11:39
09a3ae4
Compare
Choose a tag to compare

fix: Disable method_separation fixer

feat: upgraded kubawerlos/php-cs-fixer-custom-fixers version
feat: added new fixers

{
	"DataProviderNameFixer": true,
	"NoUselessSprintfFixer": true,
	"PhpUnitNoUselessReturnFixer": true,
	"SingleLineThrowFixer": true,
	"NoDuplicatedImportsFixer": true,
	"DataProviderReturnTypeFixer": true,
	"CommentSurroundedBySpacesFixer": true
}

feat: updated phpstan rules
feat: added testing-helper to use assertArraySubset
feat: upgraded php version

style: cs fixes

v5.0.0

14 Aug 12:13
74812f9
Compare
Choose a tag to compare

added rules for the new psr-12

'@PSR2' => true,
'binary_operator_spaces' => true, // Symfony Rule
'blank_line_after_opening_tag' => true, // Symfony Rule
'braces' => [
    'allow_single_line_closure' => false,
    'position_after_anonymous_constructs' => 'same',
    'position_after_control_structures' => 'same',
    'position_after_functions_and_oop_constructs' => 'next',
],
'concat_space' => ['spacing' => 'one'],
'declare_equal_normalize' => [
    'space' => 'none',
], // Symfony Rule
'lowercase_cast' => true,
'new_with_braces' => true,
'no_blank_lines_after_class_opening' => true,
'no_extra_blank_lines' => false, // Symfony Rule
'no_leading_import_slash' => true,
'no_singleline_whitespace_before_semicolons' => true,
'no_trailing_whitespace' => true,
'no_whitespace_before_comma_in_array' => true,
'ordered_class_elements' => [
    'order' => ['use_trait'],
], // Contrib
'ordered_imports' => [
    'importsOrder' => [
        'class',
        'const',
        'function',
    ],
],  // Contrib
'return_type_declaration' => true,
'short_scalar_cast' => true,
'single_import_per_statement' => false,
'space_after_semicolon' => [
    'remove_in_empty_for_expressions' => true,
], // Symfony Rule
'ternary_operator_spaces' => true,
'unary_operator_spaces' => true,
'visibility_required' => [
    'elements' => ['const', 'method', 'property'],
],
'whitespace_after_comma_in_array' => true,

v4.1.0

13 Aug 07:45
ccdbe7c
Compare
Choose a tag to compare

changed php_unit_test_case_static_method_calls from this to self

updated: php_unit_test_case_static_method_calls: [
        'call_type' => 'self',
    ],

v4.0.0

10 Jul 13:13
5645b25
Compare
Choose a tag to compare

Updated localheinz/php-cs-fixer-config to v1.22.*
Updated pedrotroller/php-cs-custom-fixer to v2.18.1
Added kubawerlos/php-cs-fixer-custom-fixers" v1.13.0

added and updated rules

updated: php_unit_test_class_requires_covers: false
new: final_class: true
new: ordered_interfaces: true
new: php_unit_dedicate_assert_internal_type: true
new: php_unit_mock_short_will_return: true
new: php_unit_size_class: true
new: native_function_type_declaration_casing: true
new: simple_to_complex_string_variable: true
new: single_trait_insert_per_statement: true
new: InternalClassCasingFixer: true
new: MultilineCommentOpeningClosingAloneFixer: false
new: NoCommentedOutCodeFixer: true
new: NoDoctrineMigrationsGeneratedCommentFixer: true
new: NoImportFromGlobalNamespaceFixer: false
new: NoLeadingSlashInGlobalNamespaceFixer: true
new: NoNullableBooleanTypeFixer: false
new: NoPhpStormGeneratedCommentFixer: true
new: NoReferenceInFunctionDefinitionFixer: false
new: NoUnneededConcatenationFixer: true
new: NoUselessCommentFixer: false
new: NoUselessDoctrineRepositoryCommentFixer: true
new: NullableParamStyleFixer: false
new: OperatorLinebreakFixer: true
new: PhpdocNoIncorrectVarAnnotationFixer: true
new: PhpdocNoSuperfluousParamFixer: true
new: PhpdocParamOrderFixer: true
new: PhpdocParamTypeFixer: true
new: PhpdocSelfAccessorFixer: true
new: PhpdocSingleLineVarFixer: true
new: SingleSpaceAfterStatementFixer: true
new: SingleSpaceBeforeStatementFixer: true

v3.5.0

07 Jan 14:52
Compare
Choose a tag to compare

Updated localheinz/php-cs-fixer-config to v1.19 and added php 7.3 to travis

added and updated rules

updated: php_unit_test_case_static_method_calls: this
updated: static_lambda: true
updated: blank_line_before_statement
new: heredoc_indentation: true
new: phpdoc_var_annotation_correct_order: true
new: no_unset_cast: true

v3.4.0

30 Oct 16:55
0649695
Compare
Choose a tag to compare
disabled mb_str_functions

v3.3.0

26 Oct 07:51
Compare
Choose a tag to compare

changed php_unit_test_case_static_method_calls from static to this

v3.2.0

12 Oct 12:11
Compare
Choose a tag to compare

disable comment_to_phpdoc fixers, it breaks CodeCoverageIgnore comments
moved overwriteRules variable call to the end of the array_merge

v3.1.2

11 Sep 19:34
Compare
Choose a tag to compare

upgrade pedrotroller/php-cs-custom-fixer to 2.15.2 to fix a bug

v3.1.1

31 Aug 07:11
Compare
Choose a tag to compare

disable fopen_flags fixers