Skip to content
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

Gravatar Helper: Reinstates constants for images and ratings #162

Merged
merged 2 commits into from
Apr 6, 2022

Conversation

gsteel
Copy link
Member

@gsteel gsteel commented Apr 5, 2022

The previous version of this helper declared constants for default image types and ratings. They have been reinstated, adding ones that didn't exist. Tests have been updated to replace string literals with constants and also the expected strings are escaped to make the expected output easier to read.

Closes #161

Relevant to #158

The previous version of this helper declared constants for default image types and ratings. They have been reinstated, adding ones that didn't exist. Tests have been updated to replace string literals with constants and also the expected strings are escaped to make the expected output easier to read.

Signed-off-by: George Steel <george@net-glue.co.uk>
@gsteel gsteel changed the title Reinstates constants for images and ratings Gravatar Helper: Reinstates constants for images and ratings Apr 5, 2022
@froschdesign froschdesign added this to the 2.21.0 milestone Apr 6, 2022
src/Helper/GravatarImage.php Show resolved Hide resolved
src/Helper/GravatarImage.php Show resolved Hide resolved
Signed-off-by: George Steel <george@net-glue.co.uk>
@gsteel gsteel force-pushed the gravatar-constants branch from 1809569 to 1f86f62 Compare April 6, 2022 17:10
Copy link
Member

@Ocramius Ocramius left a comment

Choose a reason for hiding this comment

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

Awesome, thanks @gsteel!

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.

3 participants