From 46560be03352efd3b62d96b5f590715e8b4411f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20=C5=BDoljom?= Date: Sat, 20 Aug 2022 15:55:30 +0200 Subject: [PATCH] Add the blank line rule for function bodies Co-authored-by: Juliette <663378+jrfnl@users.noreply.github.com> --- wordpress-coding-standards/php.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wordpress-coding-standards/php.md b/wordpress-coding-standards/php.md index b5e5838..66435ca 100644 --- a/wordpress-coding-standards/php.md +++ b/wordpress-coding-standards/php.md @@ -286,6 +286,8 @@ switch ( $type ) { Remove trailing whitespace at the end of each line. Omitting the closing PHP tag at the end of a file is preferred. If you use the tag, make sure you remove trailing whitespace. +There should be no trailing blank lines at the end of a function body. + ## Formatting ### Brace Style