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/getCommentAuthorEmailLink.php

    r38763 r42343  
    2424
    2525    public static function wpSetUpBeforeClass( $factory ) {
    26         self::$comment = $factory->comment->create_and_get( array(
    27             'comment_author_email' => 'foo@example.org'
    28         ) );
     26        self::$comment = $factory->comment->create_and_get(
     27            array(
     28                'comment_author_email' => 'foo@example.org',
     29            )
     30        );
    2931    }
    3032
     
    4446        $before   = 'before';
    4547        $after    = 'after';
    46         $comment  = self::factory()->comment->create_and_get( array(
    47             'comment_author_email' => $email = 'baz@example.org'
    48         ) );
     48        $comment  = self::factory()->comment->create_and_get(
     49            array(
     50                'comment_author_email' => $email = 'baz@example.org',
     51            )
     52        );
    4953
    5054        $expected = sprintf( '%1$s<a href="mailto:%2$s">%3$s</a>%4$s', $before, $email, $linktext, $after );
     
    8589     */
    8690    public function test_comment_param_should_override_global() {
    87         $comment = self::factory()->comment->create_and_get( array(
    88             'comment_author_email' => $email = 'bar@example.org'
    89         ) );
     91        $comment = self::factory()->comment->create_and_get(
     92            array(
     93                'comment_author_email' => $email = 'bar@example.org',
     94            )
     95        );
    9096
    9197        $expected = sprintf( '<a href="mailto:%1$s">%2$s</a>', $email, $email );
Note: See TracChangeset for help on using the changeset viewer.