-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[DomCrawler] Improve the sprintf() call in selectButton() #26490
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
Conversation
|
||
return $this->filterRelativeXPath($xpath); | ||
return $this->filterRelativeXPath( | ||
sprintf( |
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.
Super minor comment: I think that our code policy requires that the sprintf()
statement is in a single line, no matter how long it is (as done in #26485). Should we change this then?
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.
I tend to agree to change this since it will be easier to read it.
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.
done
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.
(I suppose :) )
Thank you @dunglas. |
…) (dunglas) This PR was squashed before being merged into the 4.1-dev branch (closes #26490). Discussion ---------- [DomCrawler] Improve the sprintf() call in selectButton() | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? |no <!-- don't forget to update src/**/CHANGELOG.md files --> | BC breaks? | no <!-- see https://symfony.com/bc --> | Deprecations? |no <!-- don't forget to update UPGRADE-*.md files --> | Tests pass? | yes <!-- please add some, will be required by reviewers --> | Fixed tickets | n/a <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | n/a Code cleanup and minor performance improvement. Similar to #26485. Commits ------- a00cce6 [DomCrawler] Improve the sprintf() call in selectButton()
Code cleanup and minor performance improvement. Similar to #26485.