From 8abc421af9409bd62c740add026cca8626fd2d53 Mon Sep 17 00:00:00 2001 From: Andreas Kvisgaard Date: Thu, 13 Feb 2025 10:53:40 +0100 Subject: [PATCH] BOOK-1292: Add blank line before return statements. --- src/PhpCsFixerConfig.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/PhpCsFixerConfig.php b/src/PhpCsFixerConfig.php index 1ab8dd0..ae9f603 100644 --- a/src/PhpCsFixerConfig.php +++ b/src/PhpCsFixerConfig.php @@ -16,6 +16,7 @@ public function __construct() $this->setRules([ '@PSR12' => true, 'array_syntax' => ['syntax' => 'short'], + 'blank_line_before_statement' => ['statements' => ['return']], 'braces_position' => [ 'allow_single_line_anonymous_functions' => false, 'allow_single_line_empty_anonymous_classes' => false,