crazyfactory / crazyfactory/php-sniffs
New lint: Remove bracket when no arguments pass to constructor
Open
Nobody has claimed this yet.
technical
- Dominant language
- PHP
- Stars
- 0
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
(new Foo()) => (new Foo)
new Foo() => new Foo
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the existing PHP sniff implementations and their tests, then identify the entry point that formats constructor calls. Add coverage for the two examples in the issue and verify that empty constructor parentheses are removed while constructors with arguments remain unchanged.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100