Fork me on GitHub
a Sensio Labs Product

Brazilian Kangaroo (v3.17.0) edition

Rule single_line_empty_body

Empty body of class or function must be abbreviated as {} and placed on the same line as the previous symbol, separated by a space.

Examples

Example #1

--- Original
+++ New
 <?php function foo(
     int $x
-)
-{
-}
+) {}
The logo is © 2010-2022 Sensio Labs