Download the PHP package 4lxndr/rector-rules without Composer
On this page you can find all versions of the php package 4lxndr/rector-rules. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package rector-rules
Custom Rector Rules
This project contains custom Rector rules for PHP code refactoring.
Rules
SortGettersSettersByPropertyOrderRector
Sorts accessor methods by the order of properties in the class, with magic methods first.
This rule organizes methods in the following order:
- Magic methods (e.g.,
__construct,__toString) come first - Accessor methods are sorted by their corresponding property order in the class
- For each property, accessors are ordered as: getter, setter, adder, remover
- Other methods (business logic) remain at the end in their relative order
Supported accessor method prefixes:
- Getters:
get*,is*,has*,can*,should* - Setters:
set* - Adders:
add* - Removers:
remove*
Example:
All versions of rector-rules with dependencies
PHP Build Version
Package Version
Requires
php Version
^8.2
The package 4lxndr/rector-rules contains the following files
Loading the files please wait ...