summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2017-11-03 11:18:26 +0000
committerGreg Roach <fisharebest@gmail.com>2017-11-03 12:14:37 +0000
commit6c5cf27081203551785c06ce36aa01a6da530d79 (patch)
tree99ca9551e28d487e1b1ae29c42d02a67fa33be3e
parent0fd39724ec01f9f77115641c88ab7da1a4b09227 (diff)
downloadwebtrees-6c5cf27081203551785c06ce36aa01a6da530d79.tar.gz
webtrees-6c5cf27081203551785c06ce36aa01a6da530d79.tar.bz2
webtrees-6c5cf27081203551785c06ce36aa01a6da530d79.zip
php-cs-fixer configuration
-rw-r--r--.php_cs41
1 files changed, 26 insertions, 15 deletions
diff --git a/.php_cs b/.php_cs
index 52e60b6bce..ec1b596944 100644
--- a/.php_cs
+++ b/.php_cs
@@ -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',
+ ],
]);