generated from yiisoft/package-template
-
-
Notifications
You must be signed in to change notification settings - Fork 65
Expand file tree
/
Copy path.php-cs-fixer.php
More file actions
29 lines (24 loc) · 629 Bytes
/
.php-cs-fixer.php
File metadata and controls
29 lines (24 loc) · 629 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;
ini_set('memory_limit', '512M');
$root = __DIR__;
$finder = (new Finder())
->in([
$root . '/config',
$root . '/src',
$root . '/tests',
])
->append([
$root . '/public/index.php',
]);
return (new Config())
->setCacheFile(__DIR__ . '/runtime/cache/.php-cs-fixer.cache')
->setParallelConfig(ParallelConfigFactory::detect())
->setRules([
'@PER-CS2.0' => true,
'no_unused_imports' => true,
])
->setFinder($finder);