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.



git-svn-id: https://develop.svn.wordpress.org/trunk@42228 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Gary Pendergast
2017-11-26 23:56:25 +00:00
parent d00e74042b
commit 574821573a
82 changed files with 355 additions and 352 deletions

View File

@@ -292,7 +292,7 @@ class Tests_Image_Functions extends WP_UnitTestCase {
$this->fail( 'jpeg support unavailable' );
$file = wp_crop_image( DIR_TESTDATA . '/images/canola.jpg',
0, 0, 100, 100, 100, 100 );
0, 0, 100, 100, 100, 100 );
$this->assertNotInstanceOf( 'WP_Error', $file );
$this->assertFileExists( $file );
$image = wp_get_image_editor( $file );
@@ -312,8 +312,8 @@ class Tests_Image_Functions extends WP_UnitTestCase {
}
$file = wp_crop_image( 'https://asdftestblog1.files.wordpress.com/2008/04/canola.jpg',
0, 0, 100, 100, 100, 100, false,
DIR_TESTDATA . '/images/' . __FUNCTION__ . '.jpg' );
0, 0, 100, 100, 100, 100, false,
DIR_TESTDATA . '/images/' . __FUNCTION__ . '.jpg' );
$this->assertNotInstanceOf( 'WP_Error', $file );
$this->assertFileExists( $file );
$image = wp_get_image_editor( $file );
@@ -326,7 +326,7 @@ class Tests_Image_Functions extends WP_UnitTestCase {
public function test_wp_crop_image_file_not_exist() {
$file = wp_crop_image( DIR_TESTDATA . '/images/canoladoesnotexist.jpg',
0, 0, 100, 100, 100, 100 );
0, 0, 100, 100, 100, 100 );
$this->assertInstanceOf( 'WP_Error', $file );
}
@@ -336,7 +336,7 @@ class Tests_Image_Functions extends WP_UnitTestCase {
}
$file = wp_crop_image( 'https://asdftestblog1.files.wordpress.com/2008/04/canoladoesnotexist.jpg',
0, 0, 100, 100, 100, 100 );
0, 0, 100, 100, 100, 100 );
$this->assertInstanceOf( 'WP_Error', $file );
}
@@ -352,7 +352,7 @@ class Tests_Image_Functions extends WP_UnitTestCase {
add_filter( 'wp_image_editors', array( $this, 'mock_image_editor' ) );
$file = wp_crop_image( DIR_TESTDATA . '/images/canola.jpg',
0, 0, 100, 100, 100, 100 );
0, 0, 100, 100, 100, 100 );
$this->assertInstanceOf( 'WP_Error', $file );
remove_filter( 'wp_image_editors', array( $this, 'mock_image_editor' ) );