[wp-trac] [WordPress Trac] #61860: PHPCS: Empty FOREACH statement detected

WordPress Trac noreply at wordpress.org
Tue Aug 13 16:27:48 UTC 2024


#61860: PHPCS: Empty FOREACH statement detected
-------------------------+-----------------------------
 Reporter:  dhruvang21   |       Owner:  SergeyBiryukov
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  6.7
Component:  Formatting   |     Version:  4.2.3
 Severity:  normal       |  Resolution:  fixed
 Keywords:  has-patch    |     Focuses:  docs
-------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"58889" 58889]:
 {{{
 #!CommitTicketReference repository="" revision="58889"
 Coding Standards: Replace an empty `foreach` loop in
 `wp_replace_in_html_tags()`.

 This aims to clarify the intention of the code and improve readability.

 Follow-up to [33359].

 Props jrf, TobiasBg, mi5t4n, dhruvang21, mayura8991, nadimcse, Presskopp,
 SergeyBiryukov.
 Fixes #61860.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61860#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list