WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/26/2017 11:56:25 PM (23 months 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/comment.php

    r40981 r42228  
    617617        // Check to see if a notification email was sent to the post author `test@test.com`.
    618618        if ( isset( $GLOBALS['phpmailer']->mock_sent ) &&
    619              ! empty( $GLOBALS['phpmailer']->mock_sent ) &&
    620              'test@test.com' == $GLOBALS['phpmailer']->mock_sent[0]['to'][0][0] ) {
    621             $email_sent_when_comment_added = true;
    622             reset_phpmailer_instance();
     619            ! empty( $GLOBALS['phpmailer']->mock_sent ) &&
     620            'test@test.com' == $GLOBALS['phpmailer']->mock_sent[0]['to'][0][0] ) {
     621                $email_sent_when_comment_added = true;
     622                reset_phpmailer_instance();
    623623        } else {
    624624            $email_sent_when_comment_added = false;
Note: See TracChangeset for help on using the changeset viewer.