This repository has been archived by the owner on Mar 1, 2023. It is now read-only.
Releases: narrowspark/php-cs-fixer-config
Releases · narrowspark/php-cs-fixer-config
v5.1.0
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
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
v4.0.0
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
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