Make WordPress Core


Ignore:
Timestamp:
11/30/2017 11:09:33 PM (6 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/getCommentExcerpt.php

    r35242 r42343  
    1515
    1616    public function test_get_comment_excerpt() {
    17         $comment_id = self::factory()->comment->create( array(
    18             'comment_content' => self::$bacon_comment
    19         ) );
     17        $comment_id = self::factory()->comment->create(
     18            array(
     19                'comment_content' => self::$bacon_comment,
     20            )
     21        );
    2022
    2123        $excerpt = get_comment_excerpt( $comment_id );
     
    2527
    2628    public function test_get_comment_excerpt_filtered() {
    27         $comment_id = self::factory()->comment->create( array(
    28             'comment_content' => self::$bacon_comment
    29         ) );
     29        $comment_id = self::factory()->comment->create(
     30            array(
     31                'comment_content' => self::$bacon_comment,
     32            )
     33        );
    3034
    3135        add_filter( 'comment_excerpt_length', array( $this, '_filter_comment_excerpt_length' ) );
Note: See TracChangeset for help on using the changeset viewer.