-
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.php-cs-fixer.dist.php
More file actions
29 lines (24 loc) · 768 Bytes
/
.php-cs-fixer.dist.php
File metadata and controls
29 lines (24 loc) · 768 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
declare(strict_types=1);
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
use PhpCsFixer\Runner\Parallel\ParallelConfigFactory;
use PHPyh\CodingStandard\PhpCsFixerCodingStandard;
$config = (new Config())
->setFinder(
Finder::create()
->in(__DIR__ . '/generator')
->in(__DIR__ . '/src')
->in(__DIR__ . '/tests')
->append([
__FILE__,
]),
)
->setParallelConfig(ParallelConfigFactory::detect())
->setCacheFile(__DIR__ . '/var/' . basename(__FILE__) . '.cache');
(new PhpCsFixerCodingStandard())->applyTo($config, [
'final_public_method_for_abstract_class' => false,
'numeric_literal_separator' => false,
'psr_autoloading' => false,
]);
return $config;