forked from eduvpn/vpn-user-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php-cs-fixer.dist.php
43 lines (37 loc) · 1.42 KB
/
.php-cs-fixer.dist.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
<?php
declare(strict_types=1);
$config = new PhpCsFixer\Config();
return $config->setRules(
[
'@PER' => true,
'@PER:risky' => true,
'@PHP74Migration' => true,
'@PHP74Migration:risky' => true,
// Unused use statements must be removed.
'no_unused_imports' => true,
// Ordering use statements.
'ordered_imports' => true,
// Orders the elements of classes/interfaces/traits/enums.
'ordered_class_elements' => true,
// Ensures a single space after language constructs.
'single_space_around_construct' => true,
// An empty line feed must precede any configured statement.
'blank_line_before_statement' => true,
// Functions should be used with $strict param set to true.
'strict_param' => true,
// Annotations in PHPDoc should be grouped together so that annotations
// of the same type immediately follow each other. Annotations of a
// different type are separated by a single blank line.
'phpdoc_separation' => true,
'header_comment' => [
'header' => <<< 'EOD'
eduVPN - End-user friendly VPN.
Copyright: 2014-2023, The Commons Conservancy eduVPN Programme
SPDX-License-Identifier: AGPL-3.0+
EOD,
],
]
)
->setRiskyAllowed(true)
->setFinder(PhpCsFixer\Finder::create()->in(__DIR__))
;