Automattic / Automattic/babble

Stop! Bracket style!

Open
#217 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
PHP
Stars
250
Forks
44
PR merge metrics
No merged PRs in 30d

Description

We should adhere to WordPress coding styles, particularly with respect to [brackets in conditionals](https://make.wordpress.org/core/handbook/coding-standards/php/#brace-style).

This style:

``` php
if ( stuff_exists() )
do_a_thing();
```

Should be:

``` php
if ( stuff_exists() ) {
do_a_thing();
}
```

Contributor guide

Open the contributing guide

Research direction

No files or tests are named. Locate PHP conditionals that omit braces and compare them with the linked WordPress brace-style guidance; done means the applicable conditionals in the repository follow that style without changing behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.