wordpress-develop/tests/phpunit/includes/factory
SergeyBiryukov 54e1b4b959 Coding Standards: Use pre-increment/decrement for stand-alone statements.
Note: This is enforced by WPCS 3.0.0:

1. There should be no space between an increment/decrement operator and the variable it applies to.
2. Pre-increment/decrement should be favoured over post-increment/decrement for stand-alone statements. “Pre” will in/decrement and then return, “post” will return and then in/decrement. Using the “pre” version is slightly more performant and can prevent future bugs when code gets moved around.

References:
* [https://developer.wordpress.org/coding-standards/wordpress-coding-standards/php/#increment-decrement-operators WordPress PHP Coding Standards: Increment/decrement operators]
* [https://github.com/WordPress/WordPress-Coding-Standards/pull/2130 WPCS: PR #2130 Core: add sniffs to check formatting of increment/decrement operators]

Props jrf.
See #59161, #58831.

git-svn-id: https://develop.svn.wordpress.org/trunk@56549 602fd350-edb4-49c9-b593-d223f7449a82
2023-09-09 09:26:01 +00:00
..
class-wp-unittest-factory-callback-after-create.php Tests: Bring some consistency to creating and updating objects in factory classes. 2022-12-28 14:07:16 +00:00
class-wp-unittest-factory-for-attachment.php Code Modernization: Rename parameters that use reserved keywords in phpunit/includes/class-wp-unittest-factory-for-attachment.php. 2022-12-30 02:36:03 +00:00
class-wp-unittest-factory-for-blog.php Tests: Bring some consistency to creating and updating objects in factory classes. 2022-12-28 14:07:16 +00:00
class-wp-unittest-factory-for-bookmark.php Tests: Bring some consistency to creating and updating objects in factory classes. 2022-12-28 14:07:16 +00:00
class-wp-unittest-factory-for-comment.php Tests: Bring some consistency to creating and updating objects in factory classes. 2022-12-28 14:07:16 +00:00
class-wp-unittest-factory-for-network.php Tests: Bring some consistency to creating and updating objects in factory classes. 2022-12-28 14:07:16 +00:00
class-wp-unittest-factory-for-post.php Tests: Bring some consistency to creating and updating objects in factory classes. 2022-12-28 14:07:16 +00:00
class-wp-unittest-factory-for-term.php Tests: Bring some consistency to creating and updating objects in factory classes. 2022-12-28 14:07:16 +00:00
class-wp-unittest-factory-for-thing.php Coding Standards: Remove superfluous blank lines at the end of various classes. 2023-09-08 09:30:38 +00:00
class-wp-unittest-factory-for-user.php Tests: Bring some consistency to creating and updating objects in factory classes. 2022-12-28 14:07:16 +00:00
class-wp-unittest-factory.php Build/Test Tools: Various docblock improvements within test utilities. 2021-02-09 13:22:47 +00:00
class-wp-unittest-generator-sequence.php Coding Standards: Use pre-increment/decrement for stand-alone statements. 2023-09-09 09:26:01 +00:00