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-xprofile/bp-xprofile-functions.php

    r13756 r13878  
    394394    if ( is_array( $values ) ) {
    395395        $data = array();
    396         foreach( (array) $values as $value ) {
     396        foreach ( (array) $values as $value ) {
    397397
    398398            /**
     
    763763 *
    764764 * @since 2.0.0
    765  * 
     765 *
    766766 * @global wpdb $wpdb WordPress database object.
    767767 *
     
    963963 *
    964964 * @since 1.5.0
    965  * 
     965 *
    966966 * @global wpdb $wpdb WordPress database object.
    967967 *
     
    11461146 *
    11471147 * @since 2.0.0
    1148  * 
     1148 *
    11491149 * @global wpdb $wpdb WordPress database object.
    11501150 *
     
    13591359    $default_visibility_levels = BP_XProfile_Group::fetch_default_visibility_levels();
    13601360
    1361     foreach( (array) $default_visibility_levels as $d_field_id => $defaults ) {
     1361    foreach ( (array) $default_visibility_levels as $d_field_id => $defaults ) {
    13621362        // If the admin has forbidden custom visibility levels for this field, replace
    13631363        // the user-provided setting with the default specified by the admin.
     
    13681368
    13691369    $field_ids = array();
    1370     foreach( $user_visibility_levels as $field_id => $field_visibility ) {
     1370    foreach ( $user_visibility_levels as $field_id => $field_visibility ) {
    13711371        if ( in_array( $field_visibility, $levels ) ) {
    13721372            $field_ids[] = $field_id;
     
    14771477 *
    14781478 * @since 8.0.0
    1479  * 
     1479 *
    14801480 * @global wpdb $wpdb WordPress database object.
    14811481 *
Note: See TracChangeset for help on using the changeset viewer.