Make WordPress Core


Ignore:
Timestamp:
09/08/2023 10:01:14 AM (3 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Remove superfluous blank lines at the end of various functions.

Note: This is enforced by WPCS 3.0.0.

Follow-up to [56536], [56547].

Props jrf.
See #59161, #58831.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/user/capabilities.php

    r55562 r56548  
    6767        // Keep track of users we create.
    6868        $this->flush_roles();
    69 
    7069    }
    7170
     
    183182
    184183        );
    185 
    186184    }
    187185
     
    266264
    267265        );
    268 
    269266    }
    270267
     
    454451
    455452        }
    456 
    457453    }
    458454
     
    748744        update_option( 'link_manager_enabled', '0' );
    749745        $this->assertSame( '0', get_option( 'link_manager_enabled' ) );
    750 
    751746    }
    752747
     
    762757            $this->assertFalse( user_can( $user, 'unfiltered_upload' ), "User with the {$role} role should not have the unfiltered_upload capability" );
    763758        }
    764 
    765759    }
    766760
     
    918912        // User should have one role now.
    919913        $this->assertSame( array( 'subscriber' ), $user->roles );
    920 
    921914    }
    922915
     
    10381031        $this->flush_roles();
    10391032        $this->assertFalse( $wp_roles->is_role( $role_name ) );
    1040 
    10411033    }
    10421034
     
    10831075        $this->flush_roles();
    10841076        $this->assertFalse( $wp_roles->is_role( $role_name ) );
    1085 
    10861077    }
    10871078
     
    11221113            }
    11231114        }
    1124 
    11251115    }
    11261116
     
    11541144        $this->assertFalse( $user_1->has_cap( 'publish_posts' ) );
    11551145        $this->assertFalse( $user_2->has_cap( 'publish_posts' ) );
    1156 
    11571146    }
    11581147
     
    12181207        // User level should be empty.
    12191208        $this->assertEmpty( $user->user_level );
    1220 
    12211209    }
    12221210
     
    15481536            );
    15491537        }
    1550 
    15511538    }
    15521539
     
    18511838        $this->assertFalse( user_can( $contributor->ID, 'edit_post', $post->ID ) );
    18521839        $this->assertFalse( user_can( $contributor->ID, 'delete_post', $post->ID ) );
    1853 
    18541840    }
    18551841
     
    19821968
    19831969        _unregister_post_type( 'page_capability' );
    1984 
    19851970    }
    19861971
     
    20121997
    20131998        $this->assertSame( 0, get_current_user_id() );
    2014 
    20151999    }
    20162000
Note: See TracChangeset for help on using the changeset viewer.