8000 GitHub - andfarm/phpcs-rules: Provides some helpful, opinionated PHP-CS-Fixer rules aimed at normalizing code.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Provides some helpful, opinionated PHP-CS-Fixer rules aimed at normalizing code.

License

Notifications You must be signed in to change notification settings

andfarm/phpcs-rules

Repository files navigation

Common Ground rules for PHP-CS-Fixer

Provides some helpful, opinionated PHP-CS-Fixer rules aimed at normalizing code.

Currently, the only rule included is wrap_block_comments.

To use these rules, run:

composer require --dev commonground/phpcs-rules

Then add the following to your .php-cs-fixer.dist.php:

require("vendor/autoload.php"); // if not already present

$cfg->registerCustomFixers([
    new \CommonGround\PhpCsFixer\WrapBlockCommentFixer(),
]);

wrap_block_comments

wrap_block_comments wraps multi-line block comments (including docblocks)) to a configurable maximum line length, defaulting to 80 columns. See the doc comments for this fixer for details.

License

The CommonGround PHP-CS-Fixer rules, as with all Common Ground components, are MIT licensed. See LICENSE for the full text.

About

Provides some helpful, opinionated PHP-CS-Fixer rules aimed at normalizing code.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

0