mirror of
https://github.com/php/web-php.git
synced 2026-03-23 23:02:13 +01:00
27 lines
629 B
PHP
27 lines
629 B
PHP
<?php
|
|
|
|
$finder = PhpCsFixer\Finder::create()->in(__DIR__);
|
|
|
|
$config = new PhpCsFixer\Config();
|
|
|
|
$finder = $config->getFinder()
|
|
->ignoreDotFiles(false)
|
|
->in(__DIR__)
|
|
->exclude('manual/en/')
|
|
->name(__FILE__)
|
|
->notPath('tests/run-tests.php');
|
|
|
|
$config->setRules([
|
|
'array_indentation' => true,
|
|
'indentation_type' => true,
|
|
'line_ending' => true,
|
|
'no_trailing_whitespace' => true,
|
|
'ordered_class_elements' => true,
|
|
'single_space_after_construct' => true,
|
|
'trim_array_spaces' => true,
|
|
'visibility_required' => true,
|
|
'whitespace_after_comma_in_array' => true,
|
|
]);
|
|
|
|
return $config;
|