Skip to content

Remove unused code and unnecessary else branches #57897

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 4, 2024

Conversation

alexandre-daubois
Copy link
Member

Q A
Branch? 7.2
Bug fix? no
New feature? no
Deprecations? no
Issues -
License MIT
  • Remove useless continue and return statements
  • Replace useless double quotes
  • Remove unnecessary local variables
  • Prefer simpler control structures without else where possible

@fabpot
Copy link
Member

fabpot commented Aug 4, 2024

Thank you @alexandre-daubois.

@fabpot fabpot merged commit c841825 into symfony:7.2 Aug 4, 2024
9 of 11 checks passed
fabpot added a commit that referenced this pull request Oct 6, 2024
This PR was merged into the 7.2 branch.

Discussion
----------

Various CS fix for consistency

| Q             | A
| ------------- | ---
| Branch?       | 7.2
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Issues        | -
| License       | MIT

A few fixes to match the rest of the codebase:

- Remove useless `else` branches (as done in #57897)
- Instantiating anonymous classes should not be followed by parentheses
- An attribute without args should not be followed by parentheses

Commits
-------

7558269 Various CS fix for consistency
symfony-splitter pushed a commit to symfony/console that referenced this pull request Oct 6, 2024
This PR was merged into the 7.2 branch.

Discussion
----------

Various CS fix for consistency

| Q             | A
| ------------- | ---
| Branch?       | 7.2
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Issues        | -
| License       | MIT

A few fixes to match the rest of the codebase:

- Remove useless `else` branches (as done in symfony/symfony#57897)
- Instantiating anonymous classes should not be followed by parentheses
- An attribute without args should not be followed by parentheses

Commits
-------

75582694ec Various CS fix for consistency
symfony-splitter pushed a commit to symfony/twig-bridge that referenced this pull request Oct 6, 2024
This PR was merged into the 7.2 branch.

Discussion
----------

Various CS fix for consistency

| Q             | A
| ------------- | ---
| Branch?       | 7.2
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Issues        | -
| License       | MIT

A few fixes to match the rest of the codebase:

- Remove useless `else` branches (as done in symfony/symfony#57897)
- Instantiating anonymous classes should not be followed by parentheses
- An attribute without args should not be followed by parentheses

Commits
-------

75582694ec Various CS fix for consistency
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants