diff options
| author | Greg Roach <fisharebest@gmail.com> | 2017-11-03 11:18:26 +0000 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2017-11-03 12:14:37 +0000 |
| commit | 6c5cf27081203551785c06ce36aa01a6da530d79 (patch) | |
| tree | 99ca9551e28d487e1b1ae29c42d02a67fa33be3e | |
| parent | 0fd39724ec01f9f77115641c88ab7da1a4b09227 (diff) | |
| download | webtrees-6c5cf27081203551785c06ce36aa01a6da530d79.tar.gz webtrees-6c5cf27081203551785c06ce36aa01a6da530d79.tar.bz2 webtrees-6c5cf27081203551785c06ce36aa01a6da530d79.zip | |
php-cs-fixer configuration
| -rw-r--r-- | .php_cs | 41 |
1 files changed, 26 insertions, 15 deletions
@@ -30,19 +30,30 @@ return PhpCsFixer\Config::create() ->setFinder($finder) ->setRiskyAllowed(true) ->setRules([ - '@Symfony' => true, - 'array_syntax' => ['syntax' => 'short'], - 'binary_operator_spaces' => ['align_double_arrow' => true, 'align_equals' => true], - 'class_definition' => false, - 'combine_consecutive_unsets' => true, - 'concat_space' => ['spacing' => 'one'], - 'dir_constant' => true, - 'ereg_to_preg' => true, - 'linebreak_after_opening_tag' => true, - 'modernize_types_casting' => true, - 'new_with_braces' => false, - 'no_blank_lines_before_namespace' => true, - 'no_multiline_whitespace_before_semicolons' => true, - 'ordered_imports' => true, - 'single_blank_line_before_namespace' => false, + // Mostly use PSR-2 ... + //'@PSR2' => true, + // ... exceptions + //'braces' => [ + //'position_after_functions_and_oop_constructs' => 'same', + //], + // ... additions + + 'binary_operator_spaces' => [ + 'operators' => [ + '===' => 'align_single_space_minimal', + '!==' => 'align_single_space_minimal', + '==' => 'align_single_space_minimal', + '!=' => 'align_single_space_minimal', + '=' => 'align_single_space_minimal', + '=>' => 'align_single_space_minimal', + ], + ], + + 'array_syntax' => [ + 'syntax' => 'short', + ], + + 'concat_space' => [ + 'spacing' => 'one', + ], ]); |
