FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
github-project-php/.php-cs-fixer.dist.php at main · cslant/github-project-php · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
cslant
/
github-project-php
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
1
Star
7
Code
Issues
0
Pull requests
1
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
github-project-php
/
.php-cs-fixer.dist.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
58 lines (56 loc) · 1.86 KB
Breadcrumbs
github-project-php
/
.php-cs-fixer.dist.php
Copy path
File metadata and controls
58 lines (56 loc) · 1.86 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
53
54
55
56
57
58
<?php
$
finder
=
PhpCsFixer
\Finder::
create
()
->
in
([
__DIR__
.
'
/src
'
,
__DIR__
.
'
/tests
'
,
__DIR__
.
'
/common
'
,
__DIR__
.
'
/config
'
,
])
->
name
(
'
*.php
'
)
->
ignoreDotFiles
(
true
)
->
ignoreVCS
(
true
);
return
(
new
PhpCsFixer
\
Config
())
->
setRules
([
'
@PSR12
'
=>
true
,
'
simplified_null_return
'
=>
true
,
'
braces
'
=>
false
,
'
new_with_braces
'
=> [
'
anonymous_class
'
=>
false
,
'
named_class
'
=>
false
,
],
'
array_syntax
'
=> [
'
syntax
'
=>
'
short
'
],
'
ordered_imports
'
=> [
'
sort_algorithm
'
=>
'
alpha
'
],
'
no_unused_imports
'
=>
true
,
'
trailing_comma_in_multiline
'
=>
true
,
'
phpdoc_scalar
'
=>
true
,
'
unary_operator_spaces
'
=>
true
,
'
binary_operator_spaces
'
=>
true
,
'
blank_line_before_statement
'
=> [
'
statements
'
=> [
'
break
'
,
'
continue
'
,
'
declare
'
,
'
return
'
,
'
throw
'
,
'
try
'
],
],
'
phpdoc_single_line_var_spacing
'
=>
true
,
'
phpdoc_var_without_name
'
=>
true
,
'
class_attributes_separation
'
=> [
'
elements
'
=> [
'
const
'
=>
'
one
'
,
'
method
'
=>
'
one
'
,
'
property
'
=>
'
one
'
,
],
],
'
method_argument_space
'
=> [
'
on_multiline
'
=>
'
ensure_fully_multiline
'
,
'
keep_multiple_spaces_after_comma
'
=>
true
,
],
'
single_trait_insert_per_statement
'
=>
true
,
'
blank_lines_before_namespace
'
=>
true
,
'
doctrine_annotation_indentation
'
=>
true
,
'
doctrine_annotation_spaces
'
=>
true
,
'
elseif
'
=>
true
,
'
full_opening_tag
'
=>
true
,
'
include
'
=>
true
,
'
php_unit_method_casing
'
=>
false
,
'
phpdoc_types
'
=>
true
,
'
phpdoc_types_order
'
=>
true
,
'
phpdoc_var_annotation_correct_order
'
=>
true
,
])
->
setFinder
(
$
finder
);
Back
|
FazBrowse Home
|
New Git URL