Make WordPress Core


Ignore:
Timestamp:
09/08/2023 10:01:14 AM (3 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Remove superfluous blank lines at the end of various functions.

Note: This is enforced by WPCS 3.0.0.

Follow-up to [56536], [56547].

Props jrf.
See #59161, #58831.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/comment/wpHandleCommentSubmission.php

    r55369 r56548  
    5555        $this->assertWPError( $comment );
    5656        $this->assertSame( $error, $comment->get_error_code() );
    57 
    5857    }
    5958
     
    7877        $this->assertWPError( $comment );
    7978        $this->assertSame( $error, $comment->get_error_code() );
    80 
    8179    }
    8280
     
    9997        $this->assertWPError( $comment );
    10098        $this->assertSame( $error, $comment->get_error_code() );
    101 
    10299    }
    103100
     
    122119        $this->assertSame( $error, $comment->get_error_code() );
    123120        $this->assertEmpty( $comment->get_error_message() );
    124 
    125121    }
    126122
     
    176172        $this->assertWPError( $comment );
    177173        $this->assertSame( $error, $comment->get_error_code() );
    178 
    179174    }
    180175
     
    199194        $this->assertWPError( $comment );
    200195        $this->assertSame( $error, $comment->get_error_code() );
    201 
    202196    }
    203197
     
    226220        $this->assertNotWPError( $comment );
    227221        $this->assertInstanceOf( 'WP_Comment', $comment );
    228 
    229222    }
    230223
     
    253246        $this->assertSame( $user->user_url, $comment->comment_author_url );
    254247        $this->assertSame( $user->ID, (int) $comment->user_id );
    255 
    256248    }
    257249
     
    275267        $this->assertSame( 'http://user.example.org', $comment->comment_author_url );
    276268        $this->assertSame( '0', $comment->user_id );
    277 
    278269    }
    279270
     
    298289        $this->assertSame( 'Comment Author with 1 slash: \\', $comment->comment_author );
    299290        $this->assertSame( 'comment@example.org', $comment->comment_author_email );
    300 
    301291    }
    302292
     
    319309        $this->assertWPError( $comment );
    320310        $this->assertSame( $error, $comment->get_error_code() );
    321 
    322311    }
    323312
     
    349338        $this->assertWPError( $comment );
    350339        $this->assertSame( $error, $comment->get_error_code() );
    351 
    352340    }
    353341
     
    380368        $this->assertWPError( $comment );
    381369        $this->assertSame( $error, $comment->get_error_code() );
    382 
    383370    }
    384371
     
    403390        $this->assertNotWPError( $comment );
    404391        $this->assertInstanceOf( 'WP_Comment', $comment );
    405 
    406392    }
    407393
     
    426412        $this->assertNotWPError( $comment );
    427413        $this->assertInstanceOf( 'WP_Comment', $comment );
    428 
    429414    }
    430415
     
    441426        $this->assertInstanceOf( 'WP_Comment', $comment );
    442427        $this->assertStringNotContainsString( '<script', $comment->comment_content );
    443 
    444428    }
    445429
     
    459443        $this->assertInstanceOf( 'WP_Comment', $comment );
    460444        $this->assertStringNotContainsString( '<script', $comment->comment_content );
    461 
    462445    }
    463446
     
    483466        $this->assertInstanceOf( 'WP_Comment', $comment );
    484467        $this->assertStringNotContainsString( '<script', $comment->comment_content );
    485 
    486468    }
    487469
     
    515497        $this->assertInstanceOf( 'WP_Comment', $comment );
    516498        $this->assertStringContainsString( '<script', $comment->comment_content );
    517 
    518499    }
    519500
     
    539520        $this->assertInstanceOf( 'WP_Comment', $comment );
    540521        $this->assertStringNotContainsString( '<script', $comment->comment_content );
    541 
    542522    }
    543523
     
    558538        $this->assertWPError( $comment );
    559539        $this->assertSame( $error, $comment->get_error_code() );
    560 
    561540    }
    562541
     
    579558        $this->assertWPError( $comment );
    580559        $this->assertSame( $error, $comment->get_error_code() );
    581 
    582560    }
    583561
     
    600578        $this->assertWPError( $comment );
    601579        $this->assertSame( $error, $comment->get_error_code() );
    602 
    603580    }
    604581
     
    622599        $this->assertWPError( $comment );
    623600        $this->assertSame( $error, $comment->get_error_code() );
    624 
    625601    }
    626602
     
    639615        $this->assertWPError( $comment );
    640616        $this->assertSame( $error, $comment->get_error_code() );
    641 
    642617    }
    643618
     
    789764            $this->preprocess_comment_data
    790765        );
    791 
    792766    }
    793767
Note: See TracChangeset for help on using the changeset viewer.