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/classes/class-bp-core-oembed-extension.php

    r13818 r13878  
    440440                                buddypress()->{$this->slug_endpoint}->embedargs_in_progress = array();
    441441
    442                                 foreach( $custom_args as $arg ) {
     442                                foreach ( $custom_args as $arg ) {
    443443                                        if ( isset( $request[ $arg ] ) ) {
    444444                                                buddypress()->{$this->slug_endpoint}->embedargs_in_progress[ $arg ] = $request[ $arg ];
    … …  
    540540                        // Add custom route args to iframe.
    541541                        if ( isset( buddypress()->{$this->slug_endpoint}->embedargs_in_progress ) && buddypress()->{$this->slug_endpoint}->embedargs_in_progress ) {
    542                                 foreach( buddypress()->{$this->slug_endpoint}->embedargs_in_progress as $key => $value ) {
     542                                foreach ( buddypress()->{$this->slug_endpoint}->embedargs_in_progress as $key => $value ) {
    543543                                        $url = add_query_arg( $key, $value, $url );
    544544                                }
Note: See TracChangeset for help on using the changeset viewer.