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

[Console][FormatterHelper] Use helper strlen statically and remove duplicated code #35141

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
Dec 31, 2019

Conversation

fancyweb
Copy link
Contributor

@fancyweb fancyweb commented Dec 29, 2019

Q A
Branch? 3.4
Bug fix? no
New feature? no
Deprecations? no
Tickets -
License MIT
Doc PR -

All those helpers methods are static and are accessed with self:: everywhere else. They are not an extension point.

return $message;
}

if (false === $encoding = mb_detect_encoding($message, null, true)) {
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 accidentally found this code that can be replaced by the helper method.

@nicolas-grekas nicolas-grekas added this to the 3.4 milestone Dec 30, 2019
@nicolas-grekas
Copy link
Member

Thank you @fancyweb.

nicolas-grekas added a commit that referenced this pull request Dec 31, 2019
…and remove duplicated code (fancyweb)

This PR was merged into the 3.4 branch.

Discussion
----------

[Console][FormatterHelper] Use helper strlen statically and remove duplicated code

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

All those helpers methods are static and are accessed with `self::` everywhere else. They are not an extension point.

Commits
-------

f0d227d [Console][FormatterHelper] Use helper strlen statically and remove duplicated code
@nicolas-grekas nicolas-grekas merged commit f0d227d into symfony:3.4 Dec 31, 2019
@fancyweb fancyweb deleted the console-formatter-helper branch January 1, 2020 09:21
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.