Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Uid] Improve the code #36267

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 31, 2020
Merged

Conversation

nilmarsm86
Copy link

Improve the reuse of code, programing for extension and not for modification, create a Trait with similar behavior for getTime method in uuid types. Eliminate duplicate code in Uuid

Q A
Branch? 5.1
Bug fix? no
New feature? no
Deprecations? no
Tickets Fix #...
License MIT
Doc PR symfony/symfony-docs#...

Keep the same functionality, just improve a little the code, eliminating duplications and reusing some lines.

src/Symfony/Component/Uid/UuidTrait.php Outdated Show resolved Hide resolved
src/Symfony/Component/Uid/Uuid.php Outdated Show resolved Hide resolved
@nicolas-grekas nicolas-grekas added this to the next milestone Mar 30, 2020
@nilmarsm86
Copy link
Author

I am sorry it is my first time doing this. Fixed the recommendation.

src/Symfony/Component/Uid/Uuid.php Outdated Show resolved Hide resolved
src/Symfony/Component/Uid/Uuid.php Outdated Show resolved Hide resolved
@nicolas-grekas
Copy link
Member

Thank you @nilmarsm86.

@nicolas-grekas nicolas-grekas merged commit bb9d522 into symfony:master Mar 31, 2020
@nicolas-grekas nicolas-grekas modified the milestones: next, 5.1 May 4, 2020
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.

4 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.