Make WordPress Core


Ignore:
Timestamp:
12/14/2018 03:24:35 AM (8 years ago)
Author:
pento
Message:

General: Fix some code formatting issues.

A handful of code formatting issues were introduced in recent commits, runs the auto-fixer on them.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/oembed/controller.php

    r44154 r44155  
    1313        protected static $administrator;
    1414        protected static $subscriber;
    15         const YOUTUBE_VIDEO_ID   = 'OQSNhk5ICTI';
    16         const INVALID_OEMBED_URL = 'https://www.notreallyanoembedprovider.com/watch?v=awesome-cat-video';
     15        const YOUTUBE_VIDEO_ID       = 'OQSNhk5ICTI';
     16        const INVALID_OEMBED_URL     = 'https://www.notreallyanoembedprovider.com/watch?v=awesome-cat-video';
    1717        const UNTRUSTED_PROVIDER_URL = 'https://www.untrustedprovider.com';
    1818
    … …  
    138138                                'body'     => wp_json_encode(
    139139                                        array(
    140                                                 'version'          => '1.0',
    141                                                 'type'             => 'rich',
    142                                                 'provider_name'    => 'Untrusted',
    143                                                 'provider_url'     => self::UNTRUSTED_PROVIDER_URL,
    144                                                 'html'             => '<b>Filtered</b><a href="">Unfiltered</a>',
    145                                                 'author_name'      => 'Untrusted Embed Author',
    146                                                 'title'            => 'Untrusted Embed',
     140                                                'version'       => '1.0',
     141                                                'type'          => 'rich',
     142                                                'provider_name' => 'Untrusted',
     143                                                'provider_url'  => self::UNTRUSTED_PROVIDER_URL,
     144                                                'html'          => '<b>Filtered</b><a href="">Unfiltered</a>',
     145                                                'author_name'   => 'Untrusted Embed Author',
     146                                                'title'         => 'Untrusted Embed',
    147147                                        )
    148148                                ),
    … …  
    652652                wp_set_current_user( self::$editor );
    653653
    654                 $user = self::factory()->user->create_and_get( array(
    655                         'display_name' => 'John Doe',
    656                 ) );
    657                 $post = self::factory()->post->create_and_get( array(
    658                         'post_author' => $user->ID,
    659                         'post_title'  => 'Hello World',
    660                 ) );
     654                $user = self::factory()->user->create_and_get(
     655                        array(
     656                                'display_name' => 'John Doe',
     657                        )
     658                );
     659                $post = self::factory()->post->create_and_get(
     660                        array(
     661                                'post_author' => $user->ID,
     662                                'post_title'  => 'Hello World',
     663                        )
     664                );
    661665
    662666                $request = new WP_REST_Request( 'GET', '/oembed/1.0/proxy' );
    … …  
    696700                wp_set_current_user( self::$editor );
    697701
    698                 $post = self::factory()->post->create_and_get( array(
    699                         'post_title'  => 'Front page',
    700                         'post_type'   => 'page',
    701                         'post_author' => 0,
    702                 ) );
     702                $post = self::factory()->post->create_and_get(
     703                        array(
     704                                'post_title'  => 'Front page',
     705                                'post_type'   => 'page',
     706                                'post_author' => 0,
     707                        )
     708                );
    703709
    704710                update_option( 'show_on_front', 'page' );
Note: See TracChangeset for help on using the changeset viewer.