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/xmlrpc/basic.php

    r40417 r42343  
    3939    function test_multicall_invalidates_all_calls_after_invalid_call() {
    4040        $editor_id = $this->make_user_by_role( 'editor' );
    41         $post_id = self::factory()->post->create( array(
    42             'post_author' => $editor_id,
    43         ) );
     41        $post_id   = self::factory()->post->create(
     42            array(
     43                'post_author' => $editor_id,
     44            )
     45        );
    4446
    4547        $method_calls = array(
     
    99101     */
    100102    function test_isStruct_on_non_numerically_indexed_array() {
    101         $value  = new IXR_Value( array( '0.0' => 100 ) );
     103        $value = new IXR_Value( array( '0.0' => 100 ) );
    102104
    103105        $return  = "<struct>\n";
    104106        $return .= "  <member><name>0.0</name><value><int>100</int></value></member>\n";
    105         $return .= "</struct>";
     107        $return .= '</struct>';
    106108
    107109        $this->assertXmlStringEqualsXmlString( $return, $value->getXML() );
Note: See TracChangeset for help on using the changeset viewer.