-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.php-cs-fixer.php
More file actions
26 lines (22 loc) · 693 Bytes
/
Copy path.php-cs-fixer.php
File metadata and controls
26 lines (22 loc) · 693 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
<?php
$header = 'UserFrosting Framework (http://www.userfrosting.com)
@link https://github.com/userfrosting/framework
@copyright Copyright (c) 2013-2024 Alexander Weissman, Louis Charette, Jordan Mele
@license https://github.com/userfrosting/framework/blob/master/LICENSE.md (MIT License)';
$rules = [
'header_comment' => [
'header' => $header,
]
];
$finder = PhpCsFixer\Finder::create()
->in([
__DIR__ . '/src',
__DIR__ . '/tests'
]);
$config = new PhpCsFixer\Config();
return $config
->setRules($rules)
->setFinder($finder)
->setUsingCache(true)
->setCacheFile(__DIR__ . '/.php_cs.cache')
->setRiskyAllowed(true);