Download the PHP package yard/php-cs-fixer-rules without Composer
On this page you can find all versions of the php package yard/php-cs-fixer-rules. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download yard/php-cs-fixer-rules
More information about yard/php-cs-fixer-rules
Files in yard/php-cs-fixer-rules
Package php-cs-fixer-rules
Short Description Yard PHP CS Fixer rules
License MIT
Informations about the package php-cs-fixer-rules
php-cs-fixer-rules
PHP CS Fixer rules used within the WordPress team for sites and packages. This package centralizes formatting settings and allows for easy configuration of PHP CS Fixer.
Installation
Usage
This package enhances the PhpCsFixer\Config class (see the ConfigInterface). One
can create a new configuration object by calling the static
create(Finder $finder, string $name = 'default'): self method.
Removing rules
removeRules(array $rulesKeys): self or removeRule(string $ruleKey): self allows you to remove rules.
Add and override rules
mergeRules(array $rules): self allows you to add and override rules.
Calling native PHP CS Fixer config methods
Yard\PhpCsFixerRules\Config extends the PHP CS Fixer config object so all native methods are available. Note that the native PHP CS Fixer methods return a PhpCsFixer\ConfigInterface type (instead of Yard\PhpCsFixerRules\Interfaces\ConfigInterface). Your linter may not like this.
Older projects and risky fixers
RiskyAllowed is set to true by default. In older projects you may need to disable it.
setDefaultRules()
setDefaultRules(): self gets called by the static create(Finder $finder, string $name = 'default'): self method.
In normal use cases there is no need to call this method.
About us
All versions of php-cs-fixer-rules with dependencies
ckr/arraymerger Version ^3.0
friendsofphp/php-cs-fixer Version ^3.88
webmozart/assert Version ^1.11