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

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