File tree Expand file tree Collapse file tree 3 files changed +22
-5
lines changed Expand file tree Collapse file tree 3 files changed +22
-5
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,16 @@ public function addFiles(array $files): self
7171 return $ this ;
7272 }
7373
74+ /**
75+ * @param list<string> $files
76+ */
77+ public function exclude (array $ files ): self
78+ {
79+ $ this ->getFinder ()->exclude ($ files );
80+
81+ return $ this ;
82+ }
83+
7484 public function getConfig (): ConfigInterface
7585 {
7686 return $ this ->config ->setRules ($ this ->ruleSet ->rules ());
Original file line number Diff line number Diff line change @@ -148,6 +148,9 @@ public function rules(): array
148148 'self_static_accessor ' => true ,
149149 'no_useless_else ' => true ,
150150 'no_useless_return ' => true ,
151+ 'class_definition ' => [
152+ 'space_before_parenthesis ' => false ,
153+ ],
151154
152155 /*
153156 * @PhpCsFixer:risky
Original file line number Diff line number Diff line change @@ -44,11 +44,15 @@ public function rules(): array
4444 '@PER-CS2.0 ' => true ,
4545
4646 /*
47- * @Symfony
47+ * @PER-CS2.0 Overrides
4848 */
49- 'phpdoc_align ' => [
50- 'align ' => ' left ' ,
49+ 'class_definition ' => [
50+ 'space_before_parenthesis ' => false ,
5151 ],
52+
53+ /*
54+ * @Symfony
55+ */
5256 'yoda_style ' => [
5357 'equal ' => false ,
5458 'identical ' => false ,
@@ -166,9 +170,9 @@ public function rules(): array
166170 'use_parentheses ' => false ,
167171 ],
168172 'phpdoc_line_span ' => [
169- 'const ' => ' multi ' ,
173+ 'const ' => null ,
170174 'method ' => 'multi ' ,
171- 'property ' => ' multi ' ,
175+ 'property ' => null ,
172176 ],
173177 ], $ this ->rules );
174178 }
You can’t perform that action at this time.
0 commit comments