Make WordPress Core


Ignore:
Timestamp:
11/30/2017 11:09:33 PM (9 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/image/base.php

    r31622 r42343  
    1313
    1414                if ( ! call_user_func( array( $this->editor_engine, 'test' ) ) ) {
    15                         $this->markTestSkipped( sprintf('The image editor engine %s is not supported on this system', $this->editor_engine) );
     15                        $this->markTestSkipped( sprintf( 'The image editor engine %s is not supported on this system', $this->editor_engine ) );
    1616                }
    1717
    … …  
    2929        /**
    3030         * Override the image editor engine
     31         *
    3132         * @return string
    3233         */
    … …  
    4344         */
    4445        protected function assertImageAlphaAtPointGD( $image_path, $point, $alpha ) {
    45                 $im = imagecreatefrompng( $image_path );
     46                $im  = imagecreatefrompng( $image_path );
    4647                $rgb = imagecolorat( $im, $point[0], $point[1] );
    4748
    … …  
    5960         */
    6061        protected function assertImageAlphaAtPointImagick( $image_path, $point, $expected ) {
    61                 $im = new Imagick( $image_path );
     62                $im    = new Imagick( $image_path );
    6263                $pixel = $im->getImagePixelColor( $point[0], $point[1] );
    6364                $color = $pixel->getColorValue( imagick::COLOR_ALPHA );
    … …  
    7374         */
    7475        protected function assertImageDimensions( $filename, $width, $height ) {
    75                 $detected_width = 0;
     76                $detected_width  = 0;
    7677                $detected_height = 0;
    77                 $image_size = @getimagesize( $filename );
     78                $image_size      = @getimagesize( $filename );
    7879
    7980                if ( isset( $image_size[0] ) ) {
Note: See TracChangeset for help on using the changeset viewer.