-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.php-cs-fixer.dist.php
32 lines (28 loc) · 988 Bytes
/
.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
<?php
$header = trim('This code is licensed under the MIT License.'.substr(file_get_contents('LICENSE'), strlen('The MIT License')));
use PhpCsFixer\Fixer\Operator\BinaryOperatorSpacesFixer;
$config = new PhpCsFixer\Config();
$config
->setRiskyAllowed(true)
->setRules([
'header_comment' => ['header' => $header, 'separate' => 'bottom', 'location' => 'after_open', 'comment_type' => 'PHPDoc'],
'@PER-CS' => true,
'array_indentation' => true,
'native_function_invocation' => [
'include' => ['@internal'],
'scope' => 'namespaced',
],
'global_namespace_import' => [
'import_classes' => true,
'import_constants' => true,
'import_functions' => true,
],
'declare_equal_normalize' => ['space' => 'none'],
'trailing_comma_in_multiline' => false,
])
->setFinder(
PhpCsFixer\Finder::create()
->in(__DIR__)
)
;
return $config;