[wp-trac] [WordPress Trac] #55647: Coding Standards fixes for WP 6.1
WordPress Trac
noreply at wordpress.org
Sun Jul 17 12:12:20 UTC 2022
#55647: Coding Standards fixes for WP 6.1
----------------------------+-------------------------------
Reporter: costdev | Owner: (none)
Type: task (blessed) | Status: new
Priority: normal | Milestone: 6.1
Component: General | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses: coding-standards
----------------------------+-------------------------------
Comment (by knutsp):
Replying to [comment:9 TobiasBg]:
> In [53714], instead of `MINUTE_IN_SECONDS / 2`, isn't `1/2 *
MINUTE_IN_SECONDS` or `0.5 * MINUTE_IN_SECONDS` more readable and quicker
understandable, because it reads "left to right"?
The first expression gives int(30), the suggested ones two both gives
float(30.), so not good for identicality comparisons.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55647#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list