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/formatting/Smilies.php

    r41043 r42228  
    105105
    106106        $wpsmiliestrans = array(
    107           ':PP' => 'icon_tongue.gif',
    108           ':arrow:' => 'icon_arrow.gif',
    109           ':monkey:' => 'icon_shock_the_monkey.gif',
    110           ':nervou:' => 'icon_nervou.gif'
     107            ':PP' => 'icon_tongue.gif',
     108            ':arrow:' => 'icon_arrow.gif',
     109            ':monkey:' => 'icon_shock_the_monkey.gif',
     110            ':nervou:' => 'icon_nervou.gif'
    111111        );
    112112
     
    259259
    260260        $wpsmiliestrans = array (
    261           ':)' => 'simple-smile.png'
     261            ':)' => 'simple-smile.png'
    262262        );
    263263
     
    347347
    348348
    349      public function _filter_remove_smilies( $wpsmiliestrans ) {
     349    public function _filter_remove_smilies( $wpsmiliestrans ) {
    350350        unset( $wpsmiliestrans[':oops:'] );
    351351        return $wpsmiliestrans;
    352      }
    353 
    354      public function _filter_add_smilies( $wpsmiliestrans ) {
     352    }
     353
     354    public function _filter_add_smilies( $wpsmiliestrans ) {
    355355        $wpsmiliestrans['<3'] = '\xe2\x9d\xa4';
    356356        return $wpsmiliestrans;
    357      }
     357    }
    358358}
Note: See TracChangeset for help on using the changeset viewer.