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/link/getPostTypeArchiveLink.php

    r36225 r42343  
    1010    public function test_get_post_archive_link_with_post_archive_on_front_page() {
    1111        update_option( 'show_on_front', 'posts' );
    12         $actual = get_post_type_archive_link( 'post' );
     12        $actual   = get_post_type_archive_link( 'post' );
    1313        $expected = get_home_url();
    1414        $this->assertSame( $expected, $actual );
     
    1919     */
    2020    public function test_get_post_archive_link_with_post_archive_on_a_blog_page() {
    21         $page_for_posts = $this->factory->post->create( array( 'post_title' => 'blog-page', 'post_type' => 'page' ) );
     21        $page_for_posts = $this->factory->post->create(
     22            array(
     23                'post_title' => 'blog-page',
     24                'post_type'  => 'page',
     25            )
     26        );
    2227        update_option( 'show_on_front', 'page' );
    2328        update_option( 'page_for_posts', $page_for_posts );
    24         $actual = get_post_type_archive_link( 'post' );
     29        $actual   = get_post_type_archive_link( 'post' );
    2530        $expected = get_permalink( $page_for_posts );
    2631        $this->assertSame( $expected, $actual );
Note: See TracChangeset for help on using the changeset viewer.