Automattic / Automattic/phpcs-neutron-standard

Handle too many spaces after parenthesis

Open
#56 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
PHP
Stars
93
Forks
9
PR merge metrics
No merged PRs in 30d

Description

In #54 we added required spacing inside parenthesis, but it does not check if there is more than one space.

I'd like to be able to transform this:

```php
if ( isTrue() ) {
```

into this:
```php
if ( isTrue() ) {
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the spacing change introduced in issue #54 and find the PHPCS sniff that handles required spacing inside parentheses. Reproduce the shown PHP example, then verify the completed change transforms multiple spaces to one while preserving the required surrounding spaces.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.