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 ba92fc90a2 Enhancement: Enable visibility_required fixer
Closes GH-639.
2022-07-11 20:16:40 +02:00

19 lines
357 B
PHP

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