Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/01/2024 04:26:18 PM (2 years ago)
Author:
espellcaste
Message:

WPCS: The modified code addresses all Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword and Squiz.Functions.MultiLineFunctionDeclaration.SpaceAfterFunction issues specific to the foreach and function examples.

See #7228

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-caps.php

    r13818 r13878  
    7171
    7272        // Loop through available roles and add them.
    73         foreach( $wp_roles->role_objects as $role ) {
     73        foreach ( $wp_roles->role_objects as $role ) {
    7474                foreach ( bp_get_caps_for_role( $role->name ) as $cap ) {
    7575                        $role->add_cap( $cap );
    … …  
    105105
    106106        // Loop through available roles and remove them.
    107         foreach( $wp_roles->role_objects as $role ) {
     107        foreach ( $wp_roles->role_objects as $role ) {
    108108                foreach ( bp_get_caps_for_role( $role->name ) as $cap ) {
    109109                        $role->remove_cap( $cap );
Note: See TracChangeset for help on using the changeset viewer.