PHP Coding Standards Fixer

Edit Package php-cs-fixer
https://cs.symfony.com/

The PHP Coding Standards Fixer (PHP CS Fixer) tool fixes your code to follow standards; whether you want to follow PHP coding standards as defined in the PSR-1, PSR-2, etc., or other community driven ones like the Symfony one. You can also define your (teams) style through configuration.
It can modernize your code (like converting the pow function to the ** operator on PHP 5.6) and (micro) optimize it.
If you are already using a linter to identify coding standards problems in your code, you know that fixing them by hand is tedious, especially on large projects. This tool does not only detect them, but also fixes them for you.

Refresh
Refresh
Source Files
Filename Size Changed
LICENSE 0000001107 1.08 KB
README.rst 0000073234 71.5 KB
php-cs-fixer.changes 0000002431 2.37 KB
php-cs-fixer.keyring 0000003870 3.78 KB
php-cs-fixer.phar 0001710667 1.63 MB
php-cs-fixer.phar.asc 0000000566 566 Bytes
php-cs-fixer.spec 0000002292 2.24 KB
Revision 5 (latest revision is 14)
Lars Vogdt's avatar Lars Vogdt (lrupp) accepted request 701131 from Arjen de Korte's avatar Arjen de Korte (adkorte) (revision 5)
- Update to release 2.14.3
  * bug #4298 NoTrailingWhitespaceInCommentFixer - fix for non-Unix
    line separators (kubawerlos)
  * bug #4303 FullyQualifiedStrictTypesFixer - Fix the short type
    detection when a question mark (nullable) is prefixing it. (drupol)
  * bug #4313 SelfAccessorFixer - fix for part qualified class name
    (kubawerlos, SpacePossum)
  * bug #4314 PhpUnitTestCaseStaticMethodCallsFixer - fix for having
    property with name as method to update (kubawerlos, SpacePossum)
  * bug #4316 NoUnsetCastFixer - Test for higher-precedence operators
    (SpacePossum)
  * bug #4327 TokensAnalyzer - add concat operator to list of binary
    operators (SpacePossum)
  * bug #4335 Cache - add indent and line ending to cache signature
    (dmvdbrugge)
  * bug #4344 VoidReturnFixer - handle yield from (SpacePossum)
  * bug #4346 BracesFixer - Do not pull close tag onto same line as a
    comment (SpacePossum)
  * bug #4350 StrictParamFixer - Don't detect functions in use
    statements (bolmstedt)
  * bug #4357 Fix short list syntax detection. (SpacePossum)
  * bug #4365 Fix output escaping of diff for text format when line is
    not changed (SpacePossum)
  * bug #4370 PhpUnitConstructFixer - Fix handle different casing
    (SpacePossum)
  * bug #4379 ExplicitStringVariableFixer - add test case for variable
    as an array key (kubawerlos, Slamdunk)
  * feature #4337 PhpUnitTestCaseStaticMethodCallsFixer - prepare for
    PHPUnit 8 (kubawerlos)
Comments 0
openSUSE Build Service is sponsored by