Skip to content

[CLEANUP] Avoid Hungarian notation in DeclarationBlock #1002

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 2 commits into from
Feb 26, 2025

Conversation

oliverklee
Copy link
Collaborator

@oliverklee oliverklee commented Feb 26, 2025

Also fix some variable name collisions.

Part of #756

@coveralls
Copy link

coveralls commented Feb 26, 2025

Coverage Status

coverage: 54.784%. remained the same
when pulling dfba007 on cleanup/hungarian/declaration-block
into b3abf1a on main.

Also fix some variable name collisions.

Part of #756
@oliverklee oliverklee force-pushed the cleanup/hungarian/declaration-block branch from b8b058c to dc0bd3b Compare February 26, 2025 08:02
Copy link
Collaborator

@JakeQZ JakeQZ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes to avoid variable name collisions are good, but I'm a bit unsure about one of the renames.

Comment on lines 126 to 127
foreach ($this->selectors as $key => $subSelector) {
if ($subSelector->getSelector() === $selectorToRemove) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think $selector singular was fine here for the loop variable. $subSelector is a strange name. (The parameter name change is good.)

@oliverklee oliverklee requested a review from JakeQZ February 26, 2025 10:12
@JakeQZ JakeQZ merged commit 0642f2b into main Feb 26, 2025
21 checks passed
@JakeQZ JakeQZ deleted the cleanup/hungarian/declaration-block branch February 26, 2025 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants