https://www.drupal.org/node/608152#indenting says that there should be empty lines after the class definition, after the property definition and after methods. Check if a sniff for that in Squiz or other standards already exists or create one.

Comments

klausi created an issue. See original summary.

  • klausi committed 211bec7 on 8.x-2.x
    Issue #2677258: Added sniff for Empty lines before and after functions/...
klausi’s picture

Status: Active » Needs work

First part done for functions and methods.

TODO: check class properties.

klausi’s picture

Status: Needs work » Fixed

Ah, this sniff also checks that there is an empty line before functions, so we are covered for the the empty line after class properties.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.