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

Using sprintf() is preferred over string concatenation #6062

Merged
merged 1 commit into from
Jul 3, 2020

Conversation

peter-gribanov
Copy link
Contributor

@peter-gribanov peter-gribanov commented Apr 28, 2020

Subject

As i was told, this project adopted the Symfony coding style. But this coding style is not always respected, which leads to problems when making changes to the project code. In this PR, i fix some coding style errors.

@SonataCI
Copy link
Collaborator

SonataCI commented May 3, 2020

Could you please rebase your PR and fix merge conflicts?

1 similar comment
@SonataCI
Copy link
Collaborator

Could you please rebase your PR and fix merge conflicts?

@SonataCI
Copy link
Collaborator

Could you please rebase your PR and fix merge conflicts?

3 similar comments
@SonataCI
Copy link
Collaborator

Could you please rebase your PR and fix merge conflicts?

@SonataCI
Copy link
Collaborator

Could you please rebase your PR and fix merge conflicts?

@SonataCI
Copy link
Collaborator

Could you please rebase your PR and fix merge conflicts?

@peter-gribanov peter-gribanov force-pushed the sprintf branch 4 times, most recently from ca6566d to 76562f1 Compare June 25, 2020 15:07
greg0ire
greg0ire previously approved these changes Jun 28, 2020
Copy link
Contributor

@greg0ire greg0ire left a comment

Choose a reason for hiding this comment

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

It looks great now 👌

VincentLanglet
VincentLanglet previously approved these changes Jul 1, 2020
@peter-gribanov peter-gribanov requested a review from greg0ire July 1, 2020 16:21
@greg0ire greg0ire closed this Jul 1, 2020
@greg0ire greg0ire reopened this Jul 1, 2020
greg0ire
greg0ire previously approved these changes Jul 1, 2020
jordisala1991
jordisala1991 previously approved these changes Jul 1, 2020
Copy link
Member

@phansys phansys left a comment

Choose a reason for hiding this comment

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

Couldn't we leverage the same substitutions in order to avoid duplicate them?

src/Admin/Admin.php Outdated Show resolved Hide resolved
use multiline throw

change position of concatenation character

remove duplicates in sprintf() arguments
Copy link
Member

@jordisala1991 jordisala1991 left a comment

Choose a reason for hiding this comment

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

If it is pedantic, please remove changelog

@jordisala1991
Copy link
Member

Thank you @peter-gribanov

@peter-gribanov peter-gribanov deleted the sprintf branch July 4, 2020 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants