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

    r13532 r13878  
    149149
    150150                // Loop through optional components.
    151                 foreach( $bp->optional_components as $component ) {
     151                foreach ( $bp->optional_components as $component ) {
    152152                        if ( bp_is_active( $component ) && file_exists( $bp->plugin_dir . '/bp-' . $component . '/bp-' . $component . '-loader.php' ) ) {
    153153                                include( $bp->plugin_dir . '/bp-' . $component . '/bp-' . $component . '-loader.php' );
    … …  
    156156
    157157                // Loop through required components.
    158                 foreach( $bp->required_components as $component ) {
     158                foreach ( $bp->required_components as $component ) {
    159159                        if ( file_exists( $bp->plugin_dir . '/bp-' . $component . '/bp-' . $component . '-loader.php' ) ) {
    160160                                include( $bp->plugin_dir . '/bp-' . $component . '/bp-' . $component . '-loader.php' );
Note: See TracChangeset for help on using the changeset viewer.