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

Factor out fallback dt() code into StringUtils::interpolate(). #2859

Merged
merged 3 commits into from
Jul 28, 2017

Conversation

greg-1-anderson
Copy link
Member

A simple refactor, for rebasing into the Symfony Dispatch PR.

@@ -28,4 +28,41 @@ public static function csvToArray($args)
//
return array_map('trim', array_filter(explode(',', is_array($args) ? implode(',', $args) : $args)));
}

/**
* Replace placeholders in a string.
Copy link
Member

Choose a reason for hiding this comment

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

Approved. Ideally we add @param annotations to the new method. (I feel odd asking the annotation maintainer about annotations)

Copy link
Member Author

Choose a reason for hiding this comment

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

lol np. I'll go back and annotate the other PR too. I often procrastinate on this when parameters are in flux, but that can lead to never doing it.

@greg-1-anderson
Copy link
Member Author

Oh, it's @return, not @returns.

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

Successfully merging this pull request may close these issues.

2 participants