]> git.mxchange.org Git - friendica.git/blobdiff - .php_cs.dist
Continued:
[friendica.git] / .php_cs.dist
index 1d16a11ef5588c6090728f8c195d036f354fc199..1d7056bdc169c8804121dff4c8432c5fc1487018 100644 (file)
@@ -6,6 +6,7 @@ require_once __DIR__ . '/bin/dev/php-cs-fixer/vendor/autoload.php';
 
 $finder = PhpCsFixer\Finder::create()
        ->in(__DIR__)
+       ->notPath('addon')
        ->notPath('bin/dev')
        ->notPath('config')
        ->notPath('doc')
@@ -33,6 +34,7 @@ return $config
                        'operators' => [
                                '=>' => 'align_single_space_minimal',
                                '='  => 'align_single_space_minimal',
+                               '??' => 'align_single_space_minimal',
                        ],
                ],
                'blank_line_after_namespace'   => true,
@@ -65,6 +67,7 @@ return $config
                'single_import_per_statement'        => true,
                'single_line_after_imports'          => true,
                'switch_case_space'                  => true,
+               'ternary_operator_spaces'            => false,
                'visibility_required'                => [
                        'elements' => ['property', 'method']
                ],