Projekt

Obecné

Profil

Stáhnout (1.18 KB) Statistiky
| Větev: | Revize:
1
<?php
2

    
3
return PhpCsFixer\Config::create()
4
    ->setRules(array(
5
        '@PSR-12' => true,
6
        'array_indentation' => true,
7
        'array_syntax' => array('syntax' => 'short'),
8
        'combine_consecutive_unsets' => true,
9
        'method_separation' => true,
10
        'no_multiline_whitespace_before_semicolons' => true,
11
        'single_quote' => true,
12

    
13
        'binary_operator_spaces' => array(
14
            'align_double_arrow' => false,
15
            'align_equals' => false,
16
        ),
17
        'braces' => array(
18
            'allow_single_line_closure' => true,
19
            'position_after_functions_and_oop_constructs' => 'same'
20
        ),
21
        'class_definition' => array('singleLine' => true),
22
        'concat_space' => array('spacing' => 'one'),
23
        'hash_to_slash_comment' => true,
24
        'no_extra_consecutive_blank_lines' => array(
25
            'curly_brace_block',
26
            'extra',
27
            'break',
28
            'continue',
29
            'parenthesis_brace_block',
30
            'return',
31
            'square_brace_block',
32
            'throw',
33
            'use',
34
        ),
35
        'no_whitespace_before_comma_in_array' => true,
36
    ))
37
    //->setIndent("\t")
38
    ->setLineEnding("\n")
39
;
(2-2/6)