Make WordPress Core

Changeset 45852


Ignore:
Timestamp:
08/19/2019 04:34:57 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Fix WPCS violations in [45851].

See #25347.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/post/wpInsertPost.php

    r45851 r45852  
    310310                $now = new DateTimeImmutable( 'now', new DateTimeZone( 'UTC' ) );
    311311
    312                 $post_id = $this->factory()->post->create( [
    313                         'post_date_gmt' => $now->modify( '-1 year' )->format( 'Y-m-d H:i:s' ),
    314                         'post_status'   => 'future',
    315                 ] );
     312                $post_id = $this->factory()->post->create(
     313                        array(
     314                                'post_date_gmt' => $now->modify( '-1 year' )->format( 'Y-m-d H:i:s' ),
     315                                'post_status'   => 'future',
     316                        )
     317                );
    316318
    317319                $this->assertEquals( 'publish', get_post_status( $post_id ) );
    318320
    319                 $post_id = $this->factory()->post->create( [
    320                         'post_date_gmt' => $now->modify( '+50 years' )->format( 'Y-m-d H:i:s' ),
    321                         'post_status'   => 'future',
    322                 ] );
     321                $post_id = $this->factory()->post->create(
     322                        array(
     323                                'post_date_gmt' => $now->modify( '+50 years' )->format( 'Y-m-d H:i:s' ),
     324                                'post_status'   => 'future',
     325                        )
     326                );
    323327
    324328                $this->assertEquals( 'future', get_post_status( $post_id ) );
Note: See TracChangeset for help on using the changeset viewer.