-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Refactors "strpos" calls in /apps/dav #38610
Refactors "strpos" calls in /apps/dav #38610
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
Micro optimization: use use function str_starts_with
and use function str_contains
so PHP doesn't have to check if there are function with that name in the current namespace before it checks globally
Thanks for the clarification. I wasn't sure if I should keep those since there were only a couple of files that were taking advantage of this micro-optimization technique. Should I update all changed files and add use statements? |
It is nice to have but not a requirement |
Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
Co-authored-by: Thomas Citharel <tcit@tcit.fr> Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
a3a6dfb
to
8c64cca
Compare
Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
Does anything need to be done for this to get merged? It's been more than three months. |
Summary
Following #38261 and #38260, I have replaced
strpos
calls in/apps/dav
namespace as well to improve code readability.