Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 468 Bytes

blank_line_before_return.rst

File metadata and controls

27 lines (20 loc) · 468 Bytes

Rule blank_line_before_return

Warning

This rule is deprecated and will be removed on next major version.

You should use blank_line_before_statement instead.

An empty line feed should precede a return statement.

Examples

Example #1

--- Original
+++ New
 <?php
 function A()
 {
     echo 1;
+
     return 1;
 }