This repository has been archived by the owner on Jul 25, 2023. It is now read-only.
forked from rocketeers/rocketeer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs
52 lines (49 loc) · 1.65 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
43
44
45
46
47
48
49
50
51
52
<?php
use PhpCsFixer\Config;
use PhpCsFixer\Finder;
require 'vendor/autoload.php';
$header = file_get_contents(__DIR__.'/bin/banner.txt');
$finder = Finder::create()->in([
'bin',
'src/Rocketeer',
'tests',
]);
return Config::create()
->setRiskyAllowed(true)
->setRules([
'@Symfony' => true,
'array_syntax' => ['syntax' => 'short'],
'class_keyword_remove' => false,
'combine_consecutive_unsets' => true,
'declare_strict_types' => false,
'dir_constant' => true,
'echo_to_print' => false,
'ereg_to_preg' => true,
'general_phpdoc_annotation_remove' => false,
'header_comment' => ['header' => $header],
'linebreak_after_opening_tag' => true,
'mb_str_functions' => true,
'modernize_types_casting' => true,
'no_blank_lines_before_namespace' => false,
'no_multiline_whitespace_before_semicolons' => true,
'no_php4_constructor' => true,
'no_short_echo_tag' => true,
'no_useless_else' => true,
'no_useless_return' => true,
'not_operator_with_space' => false,
'not_operator_with_successor_space' => false,
'ordered_class_elements' => false,
'ordered_imports' => true,
'php_unit_strict' => false,
'phpdoc_order' => true,
'pow_to_exponentiation' => false,
'protected_to_private' => false,
'psr0' => true,
'psr4' => true,
'random_api_migration' => false,
'semicolon_after_instruction' => true,
'simplified_null_return' => true,
'strict_comparison' => true,
'strict_param' => true,
])
->setFinder($finder);