EasyEngine/easyengine

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

Open

#1.222 geöffnet am 14. Sept. 2018

Auf GitHub ansehen
 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)PHP (429 Forks)batch import
good first issue

Repository-Metriken

Stars
 (1.984 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 20T 14h) (7 gemergte PRs in 30 T)

Beschreibung

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