Skip to content
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.

Add RGBA functionality to Color Provider #653

Merged
merged 2 commits into from
Aug 24, 2015

Conversation

apsylone
Copy link
Contributor

I had to use this Faker data for a project. So I share this simple new functionality with the community :-)

@@ -91,6 +91,14 @@ public static function rgbCssColor()
}

/**
* @example 'rgba(0,255,122,0.8)'
*/
public static function rgbaCssColor()
Copy link
Owner

Choose a reason for hiding this comment

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

I'd name it rgbaColor()

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I tried to respect the naming convention of the function "rgbCssColor". That's why I think this is the most appropriate. Don't you think so ?

Copy link
Owner

Choose a reason for hiding this comment

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

right!

@fzaninotto
Copy link
Owner

Great! Would you mind adding a unit test, checking that the output satisfies a regular expression?

fzaninotto added a commit that referenced this pull request Aug 24, 2015
Add RGBA functionality to Color Provider
@fzaninotto fzaninotto merged commit 02f17be into fzaninotto:master Aug 24, 2015
@fzaninotto
Copy link
Owner

Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants