Skip to content

[5.3] Remove useless sprintf function call#45036

Merged
rdeutz merged 3 commits intojoomla:5.3-devfrom
joomdonation:remove_uselss_sprintf_function_call
Feb 28, 2025
Merged

[5.3] Remove useless sprintf function call#45036
rdeutz merged 3 commits intojoomla:5.3-devfrom
joomdonation:remove_uselss_sprintf_function_call

Conversation

@joomdonation
Copy link
Contributor

Pull Request for Issue # .

Summary of Changes

Calling sprintf function with only the first argument is useless because it will just return the passed string. This PR removes these useless function calls using PHPCS Fixer no_useless_sprintf.

Testing Instructions

Code review

Actual result BEFORE applying this Pull Request

Works

Expected result AFTER applying this Pull Request

Works

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

@rdeutz rdeutz merged commit 1bc1e8f into joomla:5.3-dev Feb 28, 2025
3 checks passed
@joomdonation joomdonation deleted the remove_uselss_sprintf_function_call branch February 28, 2025 14:57
@richard67 richard67 added this to the Joomla! 5.3.0 milestone Mar 1, 2025
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.

4 participants