EasyEngine/easyengine

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

Open

#1,222 opened on 2018年9月14日

GitHub で見る
 (2 comments) (0 reactions) (0 assignees)PHP (429 forks)batch import
good first issue

Repository metrics

Stars
 (1,984 stars)
PR merge metrics
 (平均マージ 20d 14h) (30d で 7 merged PRs)

説明

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.

コントリビューターガイド