EasyEngine/easyengine

Add phpcs rule to ensure one line is left empty after function declaration

Open

#1,222 opened on Sep 14, 2018

View on GitHub
 (2 comments) (0 reactions) (0 assignees)PHP (429 forks)batch import
good first issue

Repository metrics

Stars
 (1,984 stars)
PR merge metrics
 (Avg merge 20d 14h) (7 merged PRs in 30d)

Description

Currently PHPCS does not flag this as warning(which it should) -

function abc($a) {
    if($a){
        ...
    }
}

This is the coding the team has agreed to(and it should not display warning) -

function abc($a) {

    if($a){
        ...
    }
}

phpcs.xml needs to be modified in this and all the commands and site type repos.

Contributor guide