Skip to content

Commit 78e1cf9

Browse files
committed
style(cs-rules): remove mandatory blank line between class properties
PSR-12 does not require blank lines between properties. The previous rule 'class_attributes_separation' => ['property' => 'one'] forced blank lines between every property, which is visually noisy in classes with many related fields. Changed to 'property' => 'none' — only method separation remains enforced. Automatically removed the blank lines from ProjectContextTest.php via cs:fix.
1 parent 8c73924 commit 78e1cf9

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

src/Core/ProjectDetector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ private function detectTestSuites(string $root, array $testDirs): array
185185
'statements' => ['break', 'continue', 'declare', 'return', 'throw', 'try'],
186186
],
187187
'class_attributes_separation' => [
188-
'elements' => ['method' => 'one', 'property' => 'one'],
188+
'elements' => ['method' => 'one', 'property' => 'none'],
189189
],
190190
'method_argument_space' => [
191191
'on_multiline' => 'ensure_fully_multiline',

tests/Unit/Core/ProjectContextTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
final class ProjectContextTest extends TestCase
1414
{
1515
private ProjectContext $context;
16-
1716
private string $root;
1817

1918
protected function setUp(): void

0 commit comments

Comments
 (0)