Skip to content

[Issue] Cleaned up duplicate variable assignments in the same line #30133

Closed
@m2-assistant

Description

@m2-assistant

This issue is automatically created based on existing pull request: #30120: Cleaned up duplicate variable assignments in the same line


Description (*)

Re-apply changes from #28085
This is a simple cleanup of two assignments to the same variable occurring in the same line.
Created by using the following regex:
($.*) = \1 = (with space before to exclude things like self::$loader = $loader = new \Composer\Autoload\ClassLoader(); and with space after to make sure it's an assignment and not anything else like ===)
And replacing with:
$1 = (also with space before and after to keep the formatting right)

Related Pull Requests

Fixed Issues (if relevant)

Manual testing scenarios (*)

none required

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds are green)

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions