sintonia/legacy/.php-cs-fixer.php
jo 21254b048d feat(legacy): setup config schema validation
BREAKING CHANGE: Unrecognized values in the configuration file will
raise validation errors, please make sure to cleanup your configuration
file.
2022-08-11 11:26:16 +02:00

17 lines
515 B
PHP

<?php
$finder = PhpCsFixer\Finder::create()
->in(__DIR__)
->notPath('application/configs/conf.php')
->exclude('application/models/airtime/map')
->exclude('application/models/airtime/om');
$config = new PhpCsFixer\Config();
return $config->setRules([
'@PhpCsFixer' => true,
'concat_space' => ['spacing' => 'one'],
'multiline_whitespace_before_semicolons' => ['strategy' => 'no_multi_line'],
'ordered_class_elements' => false,
'yoda_style' => false,
])
->setFinder($finder);