WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/30/2017 11:09:33 PM (4 years ago)
Author:
pento
Message:

Code is Poetry.
WordPress' code just... wasn't.
This is now dealt with.

Props jrf, pento, netweb, GaryJ, jdgrimes, westonruter, Greg Sherwood from PHPCS, and everyone who's ever contributed to WPCS and PHPCS.
Fixes #41057.

File:
1 edited

Legend:

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

    r35242 r42343  
    1515
    1616    public function test_get_comment_count_approved() {
    17         self::factory()->comment->create( array(
    18             'comment_approved' => 1
    19         ) );
     17        self::factory()->comment->create(
     18            array(
     19                'comment_approved' => 1,
     20            )
     21        );
    2022
    2123        $count = get_comment_count();
     
    3032
    3133    public function test_get_comment_count_awaiting() {
    32         self::factory()->comment->create( array(
    33             'comment_approved' => 0
    34         ) );
     34        self::factory()->comment->create(
     35            array(
     36                'comment_approved' => 0,
     37            )
     38        );
    3539
    3640        $count = get_comment_count();
     
    4549
    4650    public function test_get_comment_count_spam() {
    47         self::factory()->comment->create( array(
    48             'comment_approved' => 'spam'
    49         ) );
     51        self::factory()->comment->create(
     52            array(
     53                'comment_approved' => 'spam',
     54            )
     55        );
    5056
    5157        $count = get_comment_count();
     
    6066
    6167    public function test_get_comment_count_trash() {
    62         self::factory()->comment->create( array(
    63             'comment_approved' => 'trash'
    64         ) );
     68        self::factory()->comment->create(
     69            array(
     70                'comment_approved' => 'trash',
     71            )
     72        );
    6573
    6674        $count = get_comment_count();
     
    7583
    7684    public function test_get_comment_count_post_trashed() {
    77         self::factory()->comment->create( array(
    78             'comment_approved' => 'post-trashed'
    79         ) );
     85        self::factory()->comment->create(
     86            array(
     87                'comment_approved' => 'post-trashed',
     88            )
     89        );
    8090
    8191        $count = get_comment_count();
Note: See TracChangeset for help on using the changeset viewer.