Make WordPress Core


Ignore:
Timestamp:
11/29/2022 09:11:42 PM (12 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Fix spacing for incrementors and decrementors in various files.

Note: This will be enforced by WPCS 3.0.0.

Props jrf.
See #56791.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/rest-api/wpRestMenuItemsController.php

    r52248 r54896  
    376376        $expected    = array();
    377377        $actual      = array();
    378         for ( $i = 1; $i < 5; $i ++ ) {
     378        for ( $i = 1; $i < 5; $i++ ) {
    379379            $request = new WP_REST_Request( 'POST', '/wp/v2/menu-items' );
    380380            $request->add_header( 'content-type', 'application/x-www-form-urlencoded' );
     
    922922                $this->assertSame( $taxonomy->name, $links['https://api.w.org/term'][ $num ]['attributes']['taxonomy'] );
    923923                $this->assertSame( add_query_arg( 'post', $data['id'], rest_url( 'wp/v2/' . $taxonomy->rest_base ) ), $links['https://api.w.org/term'][ $num ]['href'] );
    924                 $num ++;
     924                $num++;
    925925            }
    926926
Note: See TracChangeset for help on using the changeset viewer.