dev-master
9999999-devPHP Coding style configuration for reBuy projects
MIT
The Requires
v1.0.0
1.0.0.0PHP Coding style configuration for reBuy projects
MIT
The Requires
Wallogit.com
2017 © Pedro Peláez
PHP Coding style configuration for reBuy projects
The file .php_cs.dist contains all rules which apply to the coding standards for rebuy. You can find the description of these rules in the PHP-CS-Fixer repository., (*1)
vendor/bin/php-cs-fixer fix --config=vendor/rebuy/php-cs/.php_cs.dist -v --dry-run --using-cache=no `git diff --name-only --diff-filter=ACMRTUXB $TRAVIS_COMMIT_RANGE`
Note: If you define the path in your own .php_cs.dist file, you might want use --path-mode intersection., (*2)
vendor/bin/php-cs-fixer fix --config=vendor/rebuy/php-cs/.php_cs.dist yourDirectory/`
vendor/bin/php-cs-fixer fix --config=.php_cs.dist `git diff --name-only --diff-filter=ACMRTUXB master`
There might be some scenarios where you have to adjust the rules defined here, in this case you can include the base file and extend it to your needs:, (*3)
<?php
$config = include 'vendor/rebuy/php-cs/.php_cs.dist';
$currentRules = $config->getRules();
$newRules = [
'phpdoc_no_empty_return' => false,
];
$config->setRules(array_merge($currentRules, $newRules));
PHP Coding style configuration for reBuy projects
MIT
PHP Coding style configuration for reBuy projects
MIT