TicketSwap code style rules for PHP CS Fixer.
Install the package via Composer:
composer require --dev ticketswap/php-cs-fixer-configCreate a .php-cs-fixer.php file in the root of your project:
<?php declare(strict_types=1); use PhpCsFixer\Finder; use Ticketswap\PhpCsFixerConfig\PhpCsFixerConfigFactory; use Ticketswap\PhpCsFixerConfig\RuleSet\TicketSwapRuleSet; $finder = Finder::create() ->in(__DIR__ . '/src') ->append([__DIR__ . '/.php-cs-fixer.php']); return PhpCsFixerConfigFactory::create(TicketSwapRuleSet::create())->setFinder($finder);Adjust the paths in the Finder to match your project structure.
Run PHP CS Fixer to fix your code style:
vendor/bin/php-cs-fixer fixTo check for violations without fixing:
vendor/bin/php-cs-fixer check --diff