[wp-trac] [WordPress Trac] #63268: PHPStan code quality improvements for 6.9
WordPress Trac
noreply at wordpress.org
Thu Jul 3 18:35:33 UTC 2025
#63268: PHPStan code quality improvements for 6.9
----------------------------+-------------------------------
Reporter: justlevine | Owner: SergeyBiryukov
Type: task (blessed) | Status: accepted
Priority: normal | Milestone: 6.9
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses: coding-standards
----------------------------+-------------------------------
Comment (by SergeyBiryukov):
In [changeset:"60408" 60408]:
{{{
#!CommitTicketReference repository="" revision="60408"
Coding Standards: Remove redundant `$cpage` checks from
`get_comment_link()`.
These checks would always be `true`, as `$cpage` is checked for a truthy
value before entering the code block.
Includes removing a duplicate `user_trailingslashit()` call, as there is a
subsequent call a few lines below.
Follow-up to [34735].
Props justlevine.
See #63268.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63268#comment:155>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list