1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00
Files
archived-web-php/.php-cs-fixer.php
Andreas Möller f3585d9bdf Enhancement: Enable indentation_type fixer
Closes GH-622.
2022-07-11 20:34:20 +02:00

20 lines
389 B
PHP

<?php
$finder = PhpCsFixer\Finder::create()->in(__DIR__);
$config = new PhpCsFixer\Config();
$finder = $config->getFinder()
->ignoreDotFiles(false)
->in(__DIR__)
->name(__FILE__);
$config->setRules([
'indentation_type' => true,
'no_trailing_whitespace' => true,
'visibility_required' => true,
'whitespace_after_comma_in_array' => true,
]);
return $config;