Skip to:
Content

BuddyPress.org

Changeset 13394


Ignore:
Timestamp:
01/06/2023 11:58:20 PM (2 years ago)
Author:
espellcaste
Message:

PHPCS: adding comma to the last array item.

Closes https://github.com/buddypress/buddypress/pull/46
See #7228

Location:
trunk/src/bp-xprofile
Files:
12 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-xprofile/bp-xprofile-admin.php

    r13393 r13394  
    7272        'do_delete_field',
    7373        'delete_option',
    74         'do_delete_option'
     74        'do_delete_option',
    7575    );
    7676
     
    134134    $add_group_url = add_query_arg( array(
    135135        'page' => 'bp-profile-setup',
    136         'mode' => 'add_group'
     136        'mode' => 'add_group',
    137137    ), $url );
    138138
     
    142142    // Get all of the profile groups & fields.
    143143    $groups = bp_xprofile_get_groups( array(
    144         'fetch_fields' => true
     144        'fetch_fields' => true,
    145145    ) ); ?>
    146146
     
    203203                        'page'     => 'bp-profile-setup',
    204204                        'mode'     => 'add_field',
    205                         'group_id' => (int) $group->id
     205                        'group_id' => (int) $group->id,
    206206                    ), $url );
    207207
     
    210210                        'page'     => 'bp-profile-setup',
    211211                        'mode'     => 'edit_group',
    212                         'group_id' => (int) $group->id
     212                        'group_id' => (int) $group->id,
    213213                    ), $url );
    214214
     
    217217                        'page'     => 'bp-profile-setup',
    218218                        'mode'     => 'delete_group',
    219                         'group_id' => (int) $group->id
     219                        'group_id' => (int) $group->id,
    220220                    ), $url ), 'bp_xprofile_delete_group' ); ?>
    221221
     
    10271027        'mode'     => 'edit_field',
    10281028        'group_id' => (int) $field->group_id,
    1029         'field_id' => (int) $field->id
     1029        'field_id' => (int) $field->id,
    10301030    ), $url );
    10311031
     
    10351035            'page'     => 'bp-profile-setup',
    10361036            'mode'     => 'delete_field',
    1037             'field_id' => (int) $field->id
     1037            'field_id' => (int) $field->id,
    10381038        ), $url . '#tabs-' . (int) $field->group_id );
    10391039    }
  • trunk/src/bp-xprofile/bp-xprofile-cache.php

    r12886 r13394  
    6969        'group',
    7070        'field',
    71         'data'
     71        'data',
    7272    );
    7373
  • trunk/src/bp-xprofile/bp-xprofile-functions.php

    r13393 r13394  
    13101310        // If the current user and displayed user are friends, show all.
    13111311        } elseif ( bp_is_active( 'friends' ) && friends_check_friendship( $displayed_user_id, $current_user_id ) ) {
    1312             $hidden_levels = array( 'adminsonly', );
     1312            $hidden_levels = array( 'adminsonly' );
    13131313
    13141314        // Current user is logged in but not friends, so exclude friends-only.
    13151315        } else {
    1316             $hidden_levels = array( 'friends', 'adminsonly', );
     1316            $hidden_levels = array( 'friends', 'adminsonly' );
    13171317        }
    13181318
    13191319    // Current user is not logged in, so exclude friends-only, loggedin, and adminsonly.
    13201320    } else {
    1321         $hidden_levels = array( 'friends', 'loggedin', 'adminsonly', );
     1321        $hidden_levels = array( 'friends', 'loggedin', 'adminsonly' );
    13221322    }
    13231323
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-component.php

    r13393 r13394  
    5050            buddypress()->plugin_dir,
    5151            array(
    52                 'adminbar_myaccount_order' => 20
     52                'adminbar_myaccount_order' => 20,
    5353            )
    5454        );
     
    174174            'public' => array(
    175175                'id'      => 'public',
    176                 'label' => _x( 'Everyone', 'Visibility level setting', 'buddypress' )
     176                'label' => _x( 'Everyone', 'Visibility level setting', 'buddypress' ),
    177177            ),
    178178            'adminsonly' => array(
    179179                'id'      => 'adminsonly',
    180                 'label' => _x( 'Only Me', 'Visibility level setting', 'buddypress' )
     180                'label' => _x( 'Only Me', 'Visibility level setting', 'buddypress' ),
    181181            ),
    182182            'loggedin' => array(
    183183                'id'      => 'loggedin',
    184                 'label' => _x( 'All Members', 'Visibility level setting', 'buddypress' )
    185             )
     184                'label' => _x( 'All Members', 'Visibility level setting', 'buddypress' ),
     185            ),
    186186        );
    187187
     
    189189            $this->visibility_levels['friends'] = array(
    190190                'id'    => 'friends',
    191                 'label' => _x( 'My Friends', 'Visibility level setting', 'buddypress' )
     191                'label' => _x( 'My Friends', 'Visibility level setting', 'buddypress' ),
    192192            );
    193193        }
     
    250250            'screen_function'     => 'xprofile_screen_display_profile',
    251251            'default_subnav_slug' => 'public',
    252             'item_css_id'         => $this->id
     252            'item_css_id'         => $this->id,
    253253        );
    254254
     
    260260            'parent_slug'     => $slug,
    261261            'screen_function' => 'xprofile_screen_display_profile',
    262             'position'        => 10
     262            'position'        => 10,
    263263        );
    264264
     
    271271            'screen_function' => 'xprofile_screen_edit_profile',
    272272            'position'        => 20,
    273             'user_has_access' => $access
     273            'user_has_access' => $access,
    274274        );
    275275
     
    313313            'screen_function' => 'bp_xprofile_screen_settings',
    314314            'position'        => 30,
    315             'user_has_access' => bp_core_can_edit_settings()
     315            'user_has_access' => bp_core_can_edit_settings(),
    316316        ), 'members' );
    317317    }
     
    337337                'id'     => 'my-account-' . $this->id,
    338338                'title'  => _x( 'Profile', 'My Account Profile', 'buddypress' ),
    339                 'href'   => $profile_link
     339                'href'   => $profile_link,
    340340            );
    341341
     
    346346                'title'    => _x( 'View', 'My Account Profile sub nav', 'buddypress' ),
    347347                'href'     => trailingslashit( $profile_link . 'public' ),
    348                 'position' => 10
     348                'position' => 10,
    349349            );
    350350
     
    355355                'title'    => _x( 'Edit', 'My Account Profile sub nav', 'buddypress' ),
    356356                'href'     => trailingslashit( $profile_link . 'edit' ),
    357                 'position' => 20
     357                'position' => 20,
    358358            );
    359359        }
     
    389389
    390390                    /* translators: %s: member name */
    391                     'alt'     => sprintf( _x( 'Profile picture of %s', 'Avatar alt', 'buddypress' ), bp_get_displayed_user_fullname() )
     391                    'alt'     => sprintf( _x( 'Profile picture of %s', 'Avatar alt', 'buddypress' ), bp_get_displayed_user_fullname() ),
    392392                ) );
    393393                $bp->bp_options_title = bp_get_displayed_user_fullname();
     
    436436            'id'     => 'my-account-' . buddypress()->settings->id . '-profile',
    437437            'title'  => _x( 'Profile', 'My Account Settings sub nav', 'buddypress' ),
    438             'href'   => trailingslashit( $settings_link . 'profile' )
     438            'href'   => trailingslashit( $settings_link . 'profile' ),
    439439        );
    440440
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-data-template.php

    r13358 r13394  
    144144                7 => 'hide_empty_fields',
    145145                8 => 'fetch_visibility_level',
    146                 9 => 'update_meta_cache'
     146                9 => 'update_meta_cache',
    147147            );
    148148
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-checkbox.php

    r13392 r13394  
    8282
    8383            <?php bp_the_profile_field_options( array(
    84                 'user_id' => $user_id
     84                'user_id' => $user_id,
    8585            ) ); ?>
    8686
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-datebox.php

    r13392 r13394  
    121121                    <?php bp_the_profile_field_options( array(
    122122                        'type'    => 'day',
    123                         'user_id' => $user_id
     123                        'user_id' => $user_id,
    124124                    ) ); ?>
    125125                </select>
     
    131131                    <?php bp_the_profile_field_options( array(
    132132                        'type'    => 'month',
    133                         'user_id' => $user_id
     133                        'user_id' => $user_id,
    134134                    ) ); ?>
    135135                </select>
     
    141141                    <?php bp_the_profile_field_options( array(
    142142                        'type'    => 'year',
    143                         'user_id' => $user_id
     143                        'user_id' => $user_id,
    144144                    ) ); ?>
    145145                </select>
     
    236236                    __( 'October',   'buddypress' ),
    237237                    __( 'November',  'buddypress' ),
    238                     __( 'December',  'buddypress' )
     238                    __( 'December',  'buddypress' ),
    239239                );
    240240
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-multiselectbox.php

    r13392 r13394  
    8989        <select <?php echo $this->get_edit_field_html_elements( $r ); ?> aria-labelledby="<?php bp_the_profile_field_input_name(); ?>-1" aria-describedby="<?php bp_the_profile_field_input_name(); ?>-3">
    9090            <?php bp_the_profile_field_options( array(
    91                 'user_id' => $user_id
     91                'user_id' => $user_id,
    9292            ) ); ?>
    9393        </select>
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field.php

    r13393 r13394  
    283283        $int_fields = array(
    284284            'id', 'is_required', 'group_id', 'parent_id', 'is_default_option',
    285             'field_order', 'option_order', 'can_delete'
     285            'field_order', 'option_order', 'can_delete',
    286286        );
    287287
     
    12381238                'page'     => 'bp-profile-setup',
    12391239                'mode'     => 'add_field',
    1240                 'group_id' => (int) $this->group_id
     1240                'group_id' => (int) $this->group_id,
    12411241            ), $users_url . '#tabs-' . (int) $this->group_id );
    12421242
     
    12611261                'mode'     => 'edit_field',
    12621262                'group_id' => (int) $this->group_id,
    1263                 'field_id' => (int) $this->id
     1263                'field_id' => (int) $this->id,
    12641264            ), $users_url . '#tabs-' . (int) $this->group_id );
    12651265        } ?>
     
    14201420        $users_url  = bp_get_admin_url( 'users.php' );
    14211421        $cancel_url = add_query_arg( array(
    1422             'page' => 'bp-profile-setup'
     1422            'page' => 'bp-profile-setup',
    14231423        ), $users_url );
    14241424
     
    14291429                'page'     => 'bp-profile-setup',
    14301430                'mode'     => 'delete_field',
    1431                 'field_id' => (int) $this->id
     1431                'field_id' => (int) $this->id,
    14321432            ), $users_url ), 'bp_xprofile_delete_field-' . $this->id, 'bp_xprofile_delete_field' );
    14331433        }
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-group.php

    r13392 r13394  
    9393        // Get this group.
    9494        $group = self::get( array(
    95             'profile_group_id' => $id
     95            'profile_group_id' => $id,
    9696        ) );
    9797
     
    838838        // URL to cancel to.
    839839        $cancel_url = add_query_arg( array(
    840             'page' => 'bp-profile-setup'
     840            'page' => 'bp-profile-setup',
    841841        ), $users_url );
    842842
     
    847847            $action = add_query_arg( array(
    848848                'page' => 'bp-profile-setup',
    849                 'mode' => 'add_group'
     849                'mode' => 'add_group',
    850850            ), $users_url );
    851851
     
    857857                'page'     => 'bp-profile-setup',
    858858                'mode'     => 'edit_group',
    859                 'group_id' => (int) $this->id
     859                'group_id' => (int) $this->id,
    860860            ), $users_url );
    861861
     
    865865                    'page'     => 'bp-profile-setup',
    866866                    'mode'     => 'delete_group',
    867                     'group_id' => (int) $this->id
     867                    'group_id' => (int) $this->id,
    868868                ), $users_url ), 'bp_xprofile_delete_group' );
    869869            }
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-meta-query.php

    r13392 r13394  
    185185            'BETWEEN', 'NOT BETWEEN',
    186186            'EXISTS', 'NOT EXISTS',
    187             'REGEXP', 'NOT REGEXP', 'RLIKE'
     187            'REGEXP', 'NOT REGEXP', 'RLIKE',
    188188        ) ) ) {
    189189            $clause['compare'] = '=';
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-query.php

    r12534 r13394  
    371371            'BETWEEN', 'NOT BETWEEN',
    372372            'EXISTS', 'NOT EXISTS',
    373             'REGEXP', 'NOT REGEXP', 'RLIKE'
     373            'REGEXP', 'NOT REGEXP', 'RLIKE',
    374374        ) ) ) {
    375375            $clause['compare'] = '=';
Note: See TracChangeset for help on using the changeset viewer.