forked from nc-music/oc-music
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.php-cs-fixer.dist.php
More file actions
34 lines (29 loc) · 864 Bytes
/
Copy path.php-cs-fixer.dist.php
File metadata and controls
34 lines (29 loc) · 864 Bytes
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
<?php
declare(strict_types=1);
require_once './vendor/autoload.php';
class NcMusicConfig extends Nextcloud\CodingStandard\Config {
public function getRules(): array {
$rules = parent::getRules();
$rules['blank_line_after_opening_tag'] = false;
$rules['spaces_inside_parentheses'] = false;
$rules['no_spaces_inside_parenthesis'] = false;
$rules['statement_indentation'] = false; // this currently has averse effect on parameter indentation, see https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/issues/6935
$rules['binary_operator_spaces'] = [
'operators' => [
'=>' => 'align_single_space_minimal',
]
];
return $rules;
}
}
$config = new NcMusicConfig();
$config
->getFinder()
->ignoreVCSIgnored(true)
->notPath('3rdparty')
->notPath('build')
->notPath('l10n')
->notPath('vendor')
->notPath('stubs')
->in(__DIR__);
return $config;