Skip to content

Comments

[5.3] Use str_ends_with function for modules plugins#44937

Merged
HLeithner merged 1 commit intojoomla:5.3-devfrom
joomdonation:use_str_ends_with_for_modules_plugins
Feb 22, 2025
Merged

[5.3] Use str_ends_with function for modules plugins#44937
HLeithner merged 1 commit intojoomla:5.3-devfrom
joomdonation:use_str_ends_with_for_modules_plugins

Conversation

@joomdonation
Copy link
Contributor

Pull Request for Issue # .

Summary of Changes

This PR uses StrEndsWithRector rule to convert our modules and plugins code to use str_ends_with function. It does not change any existing behavior, just make the code cleaner and easier to read. The change is done automatically by rector, no manual change included here.

Testing Instructions

Need to have code review for every single change here.

Actual result BEFORE applying this Pull Request

Works

Expected result AFTER applying this Pull Request

Works, with cleaner, easier to read code.

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

@QuyTon
Copy link
Contributor

QuyTon commented Feb 19, 2025

I have tested this item ✅ successfully on 73a7a3a


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44937.

1 similar comment
@viocassel
Copy link
Contributor

I have tested this item ✅ successfully on 73a7a3a


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44937.

@QuyTon
Copy link
Contributor

QuyTon commented Feb 19, 2025

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44937.

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Feb 19, 2025
@jikubiswal
Copy link

I have tested this item successfully on 73a7a3a


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44937.

@jikubiswal
Copy link

I have tested this item ✅ successfully on 73a7a3a

ITS Working coorectly with patch i have tested.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/44937.

@joomdonation
Copy link
Contributor Author

Thanks @jikubiswal for testing the PR. However, the PR already had two successful tests before and was already has RTC (Ready To Commit) label, so it does not need more tests. So better please spending your time to test the PR which does not have RTC label yet.

Copy link
Member

@HLeithner HLeithner left a comment

Choose a reason for hiding this comment

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

Code Review

@HLeithner HLeithner merged commit 9838dcd into joomla:5.3-dev Feb 22, 2025
4 checks passed
@HLeithner
Copy link
Member

thanks

@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Feb 22, 2025
@joomdonation joomdonation deleted the use_str_ends_with_for_modules_plugins branch February 22, 2025 15:47
@QuyTon QuyTon added this to the Joomla! 5.3.0 milestone Feb 23, 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.

6 participants