Make WordPress Core


Ignore:
Timestamp:
11/26/2017 11:56:25 PM (7 years ago)
Author:
pento
Message:

General: Fix some precision alignment formatting warnings.

The WPCS WordPress.WhiteSpace.PrecisionAlignment rule throws warnings for a bunch of code that will likely cause issues for wpcbf. Fixing these manually beforehand gives us better auto-fixed results later.

See #41057.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/image/functions.php

    r41841 r42228  
    293293
    294294        $file = wp_crop_image( DIR_TESTDATA . '/images/canola.jpg',
    295                               0, 0, 100, 100, 100, 100 );
     295            0, 0, 100, 100, 100, 100 );
    296296        $this->assertNotInstanceOf( 'WP_Error', $file );
    297297        $this->assertFileExists( $file );
     
    313313
    314314        $file = wp_crop_image( 'https://asdftestblog1.files.wordpress.com/2008/04/canola.jpg',
    315                               0, 0, 100, 100, 100, 100, false,
    316                               DIR_TESTDATA . '/images/' . __FUNCTION__ . '.jpg' );
     315            0, 0, 100, 100, 100, 100, false,
     316            DIR_TESTDATA . '/images/' . __FUNCTION__ . '.jpg' );
    317317        $this->assertNotInstanceOf( 'WP_Error', $file );
    318318        $this->assertFileExists( $file );
     
    327327    public function test_wp_crop_image_file_not_exist() {
    328328        $file = wp_crop_image( DIR_TESTDATA . '/images/canoladoesnotexist.jpg',
    329                               0, 0, 100, 100, 100, 100 );
     329            0, 0, 100, 100, 100, 100 );
    330330        $this->assertInstanceOf( 'WP_Error', $file );
    331331    }
     
    337337
    338338        $file = wp_crop_image( 'https://asdftestblog1.files.wordpress.com/2008/04/canoladoesnotexist.jpg',
    339                               0, 0, 100, 100, 100, 100 );
     339            0, 0, 100, 100, 100, 100 );
    340340        $this->assertInstanceOf( 'WP_Error', $file );
    341341    }
     
    353353
    354354        $file = wp_crop_image( DIR_TESTDATA . '/images/canola.jpg',
    355                               0, 0, 100, 100, 100, 100 );
     355            0, 0, 100, 100, 100, 100 );
    356356        $this->assertInstanceOf( 'WP_Error', $file );
    357357
Note: See TracChangeset for help on using the changeset viewer.