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

    r13818 r13878  
    208208 */
    209209function bp_sort_by_key( $items, $key, $type = 'alpha', $preserve_keys = false ) {
    210         $callback = function( $a, $b ) use ( $key, $type ) {
     210        $callback = function ( $a, $b ) use ( $key, $type ) {
    211211                $values = array( 0 => false, 1 => false );
    212212                foreach ( func_get_args() as $indexi => $index ) {
    … …  
    28012801                $user_is_displayed = bp_is_user();
    28022802
    2803                 foreach( $primary_items as $primary_item ) {
     2803                foreach ( $primary_items as $primary_item ) {
    28042804                        $current_user_link = $primary_item['link'];
    28052805
Note: See TracChangeset for help on using the changeset viewer.