tenantcloud/php-cs-fixer-rule-sets

TenantCloud's php-cs-fixer rule set

1.4.0 2022-01-31 19:41 UTC

This package is auto-updated.

Last update: 2022-06-29 02:10:12 UTC


README

Usage

Install the package: composer require --dev tenantcloud/php-cs-fixer-rule-sets

Then use the rule sets in php-cs-fixer's config:

return (new PhpCsFixer\Config())
	->setFinder($finder)
	->setRiskyAllowed(true)
	->setIndent("\t")
	->setRules([
		'@TenantCloud' => true,
	]);

Commands

Install dependencies: docker run -it --rm -v $PWD:/app -w /app composer install

Run tests: docker run -it --rm -v $PWD:/app -w /app php:7.4-cli vendor/bin/pest

Run php-cs-fixer on self: docker run -it --rm -v $PWD:/app -w /app composer cs-fix