Make WordPress Core


Ignore:
Timestamp:
11/30/2017 11:09:33 PM (7 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/includes/mock-mailer.php

    r41185 r42343  
    5454    public function get_recipient( $address_type, $mock_sent_index = 0, $recipient_index = 0 ) {
    5555        $retval = false;
    56         $mock = $this->get_sent( $mock_sent_index );
     56        $mock   = $this->get_sent( $mock_sent_index );
    5757        if ( $mock ) {
    5858            if ( isset( $mock->{$address_type}[ $recipient_index ] ) ) {
    59                 $address_index = $mock->{$address_type}[ $recipient_index ];
     59                $address_index  = $mock->{$address_type}[ $recipient_index ];
    6060                $recipient_data = array(
    6161                    'address' => ( isset( $address_index[0] ) && ! empty( $address_index[0] ) ) ? $address_index[0] : 'No address set',
Note: See TracChangeset for help on using the changeset viewer.