EasyEngine / EasyEngine/easyengine

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

Open
#1,222 2 comments 0 reactions 0 assignees View on GitHub
good first issue
Dominant language
PHP
Stars
2.2k
Forks
424
PR merge metrics
No 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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.