Skip to content

Commit ee9d5d1

Browse files
authored
BOOK-1292: Add blank line before return statements. (#2)
After voting adding this rule ![image](https://github.com/user-attachments/assets/928ed73a-bfab-43da-8e1c-75755eff24f8)
2 parents 3cd5ddc + 8abc421 commit ee9d5d1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/PhpCsFixerConfig.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ public function __construct()
1616
$this->setRules([
1717
'@PSR12' => true,
1818
'array_syntax' => ['syntax' => 'short'],
19+
'blank_line_before_statement' => ['statements' => ['return']],
1920
'braces_position' => [
2021
'allow_single_line_anonymous_functions' => false,
2122
'allow_single_line_empty_anonymous_classes' => false,

0 commit comments

Comments
 (0)