WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/30/2017 11:09:33 PM (3 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/user/wpAuthenticateSpamCheck.php

    r40564 r42343  
    1010     */
    1111    function test_wp_authenticate_spam_check_returns_user_when_single_site() {
    12         $user_id = self::factory()->user->create( array( 'role' => 'contributor' ) );
    13         $user = new WP_User( $user_id );
     12        $user_id     = self::factory()->user->create( array( 'role' => 'contributor' ) );
     13        $user        = new WP_User( $user_id );
    1414        $actual_user = wp_authenticate_spam_check( $user );
    1515        wp_delete_user( $user_id );
     
    2222     */
    2323    function test_wp_authenticate_spam_check_returns_user_when_not_flagged() {
    24         $user_id = self::factory()->user->create( array( 'role' => 'contributor' ) );
    25         $user = new WP_User( $user_id );
     24        $user_id     = self::factory()->user->create( array( 'role' => 'contributor' ) );
     25        $user        = new WP_User( $user_id );
    2626        $actual_user = wp_authenticate_spam_check( $user );
    2727        wpmu_delete_user( $user_id );
     
    3636        $user_id = self::factory()->user->create( array( 'role' => 'contributor' ) );
    3737        update_user_status( $user_id, 'spam', 1 );
    38         $user = new WP_User( $user_id );
     38        $user        = new WP_User( $user_id );
    3939        $actual_user = wp_authenticate_spam_check( $user );
    4040        wpmu_delete_user( $user_id );
Note: See TracChangeset for help on using the changeset viewer.