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/classes/class-bp-xprofile-field-type-multiselectbox.php

    r13806 r13878  
    148148                        // Check for updated posted values, but errors preventing them from
    149149                        // being saved first time.
    150                         foreach( $option_values as $i => $option_value ) {
     150                        foreach ( $option_values as $i => $option_value ) {
    151151                                if ( isset( $_POST[ 'field_' . $this->field_obj->id ] ) && $_POST[ 'field_' . $this->field_obj->id ][ $i ] != $option_value ) {
    152152                                        if ( ! empty( $_POST[ 'field_' . $this->field_obj->id ][ $i ] ) ) {
Note: See TracChangeset for help on using the changeset viewer.