phpcsfixer-configs-drupal

Base PHP CS Fixer configurations for Drupal 7 and 8.

MIT License

Downloads
204.7K
Stars
7
Committers
2
phpcsfixer-configs-drupal - 2.1.0 Latest Release

Published by WengerK about 1 year ago

2.1.0 - 2023-10-23

Added

  • add CHANGELOG with history of changes
  • add Fixer Drupal/blank_line_after_start_of_class (#7)
  • fix broken whitespace on Control Structure (#12)
  • add no_blank_lines_after_phpdoc:curly_brace_block (#8)

Fixed

  • fix broken whitespace on Control Structure Fixer (#12)
  • fix broken whitespace on Try-Catch Fixer (#12)
  • fix broken whitespace on BlankLineBeforeEndOfClass Fixer (#12)

Changed

  • refactoring of tests integration using PHPUnit & Github Actions
  • replace deprecated braces configuration by curly_braces_position (#8)
  • replace deprecated curly_braces_position configuration by braces_position (#8)
  • replace braces:position_after_control_structures by control_structure_continuation_position:position (#8)
  • replace deprecated braces by single_space_around_construct (#8)
  • enable class_attributes_separation: true following phpcs (drupal/coder) rules (#8)
  • replace deprecated no_blank_lines_after_phpdoc:use_trait by class_attributes_separation: true (#8)
  • replace deprecated no_spaces_inside_parenthesis by spaces_inside_parentheses:space:none instead (#8)
  • replace deprecated compact_nullable_typehint by compact_nullable_type_declaration (#8)
  • raise minimal friendsofphp/php-cs-fixer version from ^3.18 to ^3.35 (#8)

Removed

  • remove NewlineAfterLastCommaInArrayFixer now that a similar rule has been included in PHP CS Fixer

Security

  • update phpunit/phpunit (9.6.13 => 10.4.1)

Deprecated

  • deprecate Fixer ControlStructureCurlyBracketsElseFixerTest now that a similar rule (control_structure_continuation_position:position:next_line) has been included in PHP CS Fixer (#8)
  • deprecate Fixer TryCatchFinallyBlockFixer now that a similar rule (control_structure_continuation_position:position:next_line) has been included in PHP CS Fixer (#8)
Package Rankings
Top 6.35% on Packagist.org
Badges
Extracted from project README
Latest Stable Version GitHub stars Total Downloads License Say Thanks! Donate!
Related Projects