forked from bigbluebutton/bigbluebutton-api-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.php_cs
53 lines (50 loc) · 2.25 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
53
<?php
// Invoke the config easily with `php-cs-fixer fix`
$finder = \PhpCsFixer\Finder::create()
->files()
->name('*.php')
->in(__DIR__ . '/src')
->in(__DIR__ . '/tests');
return PhpCsFixer\Config::create()
->setUsingCache(false)
->setRules(array(
'psr4' => true,
'encoding' => true,
'full_opening_tag' => true,
'braces' => true,
'elseif' => true,
'single_blank_line_at_eof' => true,
'no_spaces_after_function_name' => true,
'function_declaration' => true,
'blank_line_after_namespace' => true,
'blank_line_before_statement' => true,
'lowercase_constants' => true,
'lowercase_keywords' => true,
'method_argument_space' => true,
'no_closing_tag' => true,
'no_trailing_whitespace' => true,
'visibility_required' => true,
'blank_line_after_opening_tag' => true,
'no_empty_statement' => true,
'no_extra_blank_lines' => true,
'function_typehint_space' => true,
'include' => true,
'no_blank_lines_after_phpdoc' => true,
'object_operator_without_whitespace' => true,
'phpdoc_indent' => true,
'phpdoc_align' => true,
'self_accessor' => true,
'no_trailing_comma_in_list_call' => true,
'single_quote' => true,
'cast_spaces' => true,
'standardize_not_equals' => true,
'ternary_operator_spaces' => true,
'no_unneeded_control_parentheses' => true,
'no_unused_imports' => true,
'array_syntax' => ['syntax' => 'short'],
'binary_operator_spaces' => [
'align_double_arrow' => true,
'align_equals' => true,
]
))
->setFinder($finder);