Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/02/2024 07:12:25 PM (2 years ago)
Author:
espellcaste
Message:

WPCS: Part VIII: miscellaneous fixes for some of the files of the core component.

Follow-up to [13883], [13886], [13887], [13888], [13891], [13892], [13893]

See #9164 and #7228

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/classes/class-bp-core-bp-nav-backcompat.php

    r13818 r13900  
    33 * Backward compatibility for the $bp->bp_nav global.
    44 *
     5 * @package BuddyPress
     6 * @subpackage Core
    57 * @since 2.6.0
    68 * @deprecated 12.0.0
     9 *
     10 * @phpcs:disable Generic.CodeAnalysis.UnusedFunctionParameter.Found
     11 * @phpcs:disable Generic.CodeAnalysis.UnusedFunctionParameter.FoundAfterLastUsed
    712 */
    813
     
    1116
    1217/**
    13  * bp_nav backward compatibility class.
    14  *
    1518 * This class is used to provide backward compatibility for extensions that access and modify
    1619 * the $bp->bp_nav global.
     20 *
     21 * Backward compatibility class for `bp_nav`.
    1722 *
    1823 * @since 2.6.0
     
    2025 */
    2126class BP_Core_BP_Nav_BackCompat implements ArrayAccess {
     27
    2228        /**
    2329         * Nav items.
    2430         *
    2531         * @since 2.6.0
    26          * @access public
     32         *
    2733         * @var array
    2834         */
     
    3339         *
    3440         * @since 2.6.0
    35          * @access public
     41         *
    3642         * @var array
    3743         */
     
    8187         *
    8288         * @param mixed $offset Array offset.
    83          * @return BP_Core_BP_Nav_BackCompat
    8489         */
    8590        #[ReturnTypeWillChange]
     
    100105         *
    101106         * @param mixed $offset Array offset.
    102          * @return bool
    103107         */
    104108        #[ReturnTypeWillChange]
     
    135139         * @since 2.6.0
    136140         * @deprecated 12.0.0
    137          *
    138          * @param string $component
    139          */
    140         public function set_component( $component ) {
     141         */
     142        public function set_component() {
    141143                _deprecated_function( __METHOD__, '12.0.0' );
    142144        }
     
    151153         * @since 2.6.0
    152154         * @deprecated 12.0.0
    153          *
    154          * @param mixed $offset Array offset.
    155          * @return string|array
    156          */
    157         public function get_component( $offset = '' ) {
     155         */
     156        public function get_component() {
    158157                _deprecated_function( __METHOD__, '12.0.0' );
    159158        }
     
    178177         *
    179178         * @param mixed $offset Array offset.
    180          * @return bool|array
    181179         */
    182180        protected function get_nav( $offset ) {
     
    197195         *
    198196         * @param string $offset Nav item name.
    199          * @return BP_Core_Nav
    200197         */
    201198        protected function get_component_nav( $offset = '' ) {
     
    208205         * @since 2.6.0
    209206         * @deprecated 12.0.0
    210          *
    211          * @return array
    212207         */
    213208        protected function to_array() {
Note: See TracChangeset for help on using the changeset viewer.