-
Notifications
You must be signed in to change notification settings - Fork 851
PHPCS: Tiled Gallery #24352
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
PHPCS: Tiled Gallery #24352
Conversation
|
Thank you for your PR! When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:
This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖 The e2e test report can be found here. Please note that it can take a few minutes after the e2e tests checks are complete for the report to be available. Once your PR is ready for review, check one last time that all required checks (other than "Required review") appearing at the bottom of this PR are passing or skipped. Jetpack plugin:
|
projects/plugins/jetpack/modules/tiled-gallery/tiled-gallery.php
Outdated
Show resolved
Hide resolved
projects/plugins/jetpack/modules/tiled-gallery/tiled-gallery/templates/partials/item.php
Outdated
Show resolved
Hide resolved
projects/plugins/jetpack/modules/tiled-gallery/tiled-gallery/templates/partials/item.php
Outdated
Show resolved
Hide resolved
| * | ||
| * @param array $context - the context. | ||
| */ | ||
| public function HTML( $context = array() ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid |
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.
Would it be worth renaming the method here and where it's being used, so we can get rid of the phpcs ignore?
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 was worried because all of the child classes also define HTML (but for some reason, the sniff only complains about the parent class here), so I think I'd have to update those too. I was simply afraid I miss renaming everything. If you think it's worth it, I can give it a go!
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.
We can do that in a follow-up PR I suppose. 👍
projects/plugins/jetpack/modules/tiled-gallery/tiled-gallery.php
Outdated
Show resolved
Hide resolved
projects/plugins/jetpack/modules/tiled-gallery/tiled-gallery.php
Outdated
Show resolved
Hide resolved
projects/plugins/jetpack/modules/tiled-gallery/tiled-gallery.php
Outdated
Show resolved
Hide resolved
projects/plugins/jetpack/modules/tiled-gallery/tiled-gallery/tiled-gallery-layout.php
Show resolved
Hide resolved
projects/plugins/jetpack/modules/tiled-gallery/tiled-gallery/tiled-gallery-rectangular.php
Show resolved
Hide resolved
projects/plugins/jetpack/modules/tiled-gallery/tiled-gallery/tiled-gallery-rectangular.php
Show resolved
Hide resolved
projects/plugins/jetpack/modules/tiled-gallery/tiled-gallery/tiled-gallery-shape.php
Outdated
Show resolved
Hide resolved
projects/plugins/jetpack/modules/tiled-gallery/tiled-gallery/tiled-gallery-square.php
Show resolved
Hide resolved
Co-authored-by: Jeremy Herve <jeremy@jeremy.hu>
Co-authored-by: Brad Jorsch <anomiex@users.noreply.github.com>
Co-authored-by: Brad Jorsch <anomiex@users.noreply.github.com>
…iled-gallery-shape.php Co-authored-by: Brad Jorsch <anomiex@users.noreply.github.com>
Co-authored-by: Brad Jorsch <anomiex@users.noreply.github.com>
|
For the record, I'm happy now. I see you and Jeremy still have an open item of discussion. |
|
Caution: This PR has changes that must be merged to WordPress.com |
|
Great news! One last step: head over to your WordPress.com diff, D80880-code, and deploy it. Thank you! |
|
r245730-wpcom |
Fixes #21977
Changes proposed in this Pull Request:
Jetpack product discussion
n/a
Does this pull request change what data or activity we track or use?
no
Testing instructions: