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-filters.php

    r13818 r13878  
    291291        global $wpdb;
    292292
    293         foreach( (array) $comments as $comment ) {
     293        foreach ( (array) $comments as $comment ) {
    294294                if ( $comment->user_id ) {
    295295                        $user_ids[] = $comment->user_id;
     
    307307        }
    308308
    309         foreach( (array) $userdata as $user ) {
     309        foreach ( (array) $userdata as $user ) {
    310310                $users[$user->user_id] = bp_members_get_user_url( $user->user_id );
    311311        }
    312312
    313         foreach( (array) $comments as $i => $comment ) {
     313        foreach ( (array) $comments as $i => $comment ) {
    314314                if ( ! empty( $comment->user_id ) ) {
    315315                        if ( ! empty( $users[$comment->user_id] ) ) {
Note: See TracChangeset for help on using the changeset viewer.