Make WordPress Core


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

    r38398 r42343  
    1010        unset( $GLOBALS['comment'] );
    1111
    12         $comment_ids = $factory->comment->create_post_comments( 0, 1 );
     12        $comment_ids    = $factory->comment->create_post_comments( 0, 1 );
    1313        self::$comments = array_map( 'get_comment', $comment_ids );
    1414    }
     
    3535
    3636        $url_link = get_comment_author_url_link();
    37         $link = $this->parseCommentAuthorUrl( $comment );
     37        $link     = $this->parseCommentAuthorUrl( $comment );
    3838        $this->assertEquals( $link, $url_link );
    3939    }
     
    4343
    4444        $url_link = get_comment_author_url_link( '', '', '', $comment );
    45         $link = $this->parseCommentAuthorUrl( $comment );
     45        $link     = $this->parseCommentAuthorUrl( $comment );
    4646        $this->assertEquals( $link, $url_link );
    4747    }
     
    5151
    5252        $url_link = get_comment_author_url_link( 'Burrito', '', '', $comment );
    53         $link = $this->parseCommentAuthorUrl( $comment, 'Burrito' );
     53        $link     = $this->parseCommentAuthorUrl( $comment, 'Burrito' );
    5454        $this->assertEquals( $link, $url_link );
    5555    }
     
    5959
    6060        $url_link = get_comment_author_url_link( 'Burrito', 'I would love a ', '', $comment );
    61         $link = 'I would love a ' . $this->parseCommentAuthorUrl( $comment, 'Burrito' );
     61        $link     = 'I would love a ' . $this->parseCommentAuthorUrl( $comment, 'Burrito' );
    6262        $this->assertEquals( $link, $url_link );
    6363    }
     
    6767
    6868        $url_link = get_comment_author_url_link( 'Burrito', '', ' is my favorite word.', $comment );
    69         $link = $this->parseCommentAuthorUrl( $comment, 'Burrito' ) . ' is my favorite word.';
     69        $link     = $this->parseCommentAuthorUrl( $comment, 'Burrito' ) . ' is my favorite word.';
    7070        $this->assertEquals( $link, $url_link );
    7171    }
     
    7575
    7676        $url_link = get_comment_author_url_link( 'Burrito', 'I would love a ', ' right now.', $comment );
    77         $link = 'I would love a ' . $this->parseCommentAuthorUrl( $comment, 'Burrito' ) . ' right now.';
     77        $link     = 'I would love a ' . $this->parseCommentAuthorUrl( $comment, 'Burrito' ) . ' right now.';
    7878        $this->assertEquals( $link, $url_link );
    7979    }
Note: See TracChangeset for help on using the changeset viewer.