-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.php-cs-fixer.php
48 lines (41 loc) · 1.48 KB
/
.php-cs-fixer.php
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
43
44
45
46
47
48
<?php
/*
* This file is a part of Re Message Json Web Token implementation.
* This package is a part of Re Message.
*
* @link https://github.com/re-message/json-web-token
* @link https://dev.remessage.ru/packages/json-web-token
* @copyright Copyright (c) 2018-2023 Re Message
* @author Oleg Kozlov <h1karo@remessage.ru>
* @license Apache License 2.0
* @license https://legal.remessage.ru/licenses/json-web-token
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
$finder = PhpCsFixer\Finder::create()
->in(__DIR__)
->exclude('vendor')
->append([__FILE__])
;
$namespace = 'Re Message';
$projectTitle = 'Re Message Json Web Token implementation';
$projectName = 'json-web-token';
$currentYear = date('Y');
$header = <<<EOF
This file is a part of {$projectTitle}.
This package is a part of {$namespace}.
@link https://github.com/re-message/{$projectName}
@link https://dev.remessage.ru/packages/{$projectName}
@copyright Copyright (c) 2018-{$currentYear} {$namespace}
@author Oleg Kozlov <h1karo@remessage.ru>
@license Apache License 2.0
@license https://legal.remessage.ru/licenses/{$projectName}
For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
EOF;
$config = new RM\Style\RuleSet\Config();
return $config
->setHeader($header)
->setFinder($finder)
;