Skip to content

[CLEANUP] Avoid Hungarian notation in OutputFormat (part 1) #1098

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
Mar 6, 2025

Conversation

oliverklee
Copy link
Collaborator

Part of #756

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.

I made some suggestions for clearer names for the Boolean properties (to clarify that they are Booleans). However, this would mean that they are no longer consistent with the getters and setters. And given that these don't correspond to any formal CSS data type, I don't think it's worth the effort renaming them - unlike in the case of Size.number.

@@ -18,7 +18,7 @@ class OutputFormat
*
* @var bool
*/
private $bRGBHashNotation = true;
private $rgbHashNotation = true;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
private $rgbHashNotation = true;
private $useRgbHashNotation = true;

@@ -27,7 +27,7 @@ class OutputFormat
*
* @var bool
*/
private $bSemicolonAfterLastRule = true;
private $semicolonAfterLastRule = true;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
private $semicolonAfterLastRule = true;
private $renderSemicolonAfterLastRule = true;

@JakeQZ JakeQZ merged commit b4d691c into main Mar 6, 2025
21 checks passed
@JakeQZ JakeQZ deleted the cleanup/hungarian/format-1 branch March 6, 2025 15:49
@coveralls
Copy link

Coverage Status

coverage: 55.626%. remained the same
when pulling 94d43cc on cleanup/hungarian/format-1
into a8f26be on main.

oliverklee added a commit that referenced this pull request Mar 6, 2025
As suggested in #1098.

The setters are not changed a those are part of the public
API.
JakeQZ pushed a commit that referenced this pull request Mar 6, 2025
As suggested in #1098.

The setters are not changed as those are part of the public
API.
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