generated from ergebnis/php-cs-fixer-config-template
/
.php_cs
42 lines (34 loc) 路 1.08 KB
/
.php_cs
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
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php
declare(strict_types=1);
/**
* Copyright (c) 2019 Andreas M枚ller
*
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*
* @see https://github.com/ergebnis/php-cs-fixer-config
*/
use Ergebnis\PhpCsFixer\Config;
$header = Config\Header\Header::create(
Config\Header\CopyrightYears::fromYear(Config\Header\Year::fromString('2019')),
Config\Header\Author::fromString('Andreas M枚ller'),
Config\Header\License::fromString(
<<<'EOF'
For the full copyright and license information, please view
the LICENSE file that was distributed with this source code.
EOF
),
Config\Header\Url::fromString('https://github.com/ergebnis/php-cs-fixer-config')
);
$config = Config\Factory::fromRuleSet(new Config\RuleSet\Php71($header->toString()));
$config->getFinder()
->ignoreDotFiles(false)
->in(__DIR__)
->exclude([
'.build',
'.dependabot',
'.github',
])
->name('.php_cs');
$config->setCacheFile(__DIR__ . '/.build/php-cs-fixer/.php_cs.cache');
return $config;