Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/04/2017 06:26:55 PM (9 years ago)
Author:
tw2113
Message:

Cleanup from recent Scrutinizer review around documentation and param/return types.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-buddybar.php

    r11361 r11447  
    3535 * }
    3636 * @param string       $component The component the navigation is attached to. Defaults to 'members'.
    37  * @return bool|null Returns false on failure.
     37 * @return null|false Returns false on failure.
    3838 */
    3939function bp_core_new_nav_item( $args, $component = 'members' ) {
     
    109109 * }
    110110 * @param string       $component Optional. Component that the nav belongs to.
    111  * @return bool|BP_Core_Nav_Item Returns false on failure, new nav item on success.
     111 * @return false|array Returns false on failure, new nav item on success.
    112112 */
    113113function bp_core_create_nav_link( $args = '', $component = 'members' ) {
     
    191191 *                                                item is clicked.
    192192 * }
    193  * @return bool|null Returns false on failure.
     193 * @return false|null Returns false on failure.
    194194 */
    195195function bp_core_register_nav_screen_function( $args = '' ) {
     
    395395 *                                          Admin Bar menu for group admins. Default: false.
    396396 * }
    397  * @param string       $component The component the navigation is attached to. Defaults to 'members'.
    398  * @return bool|null Returns false on failure.
     397 * @param string|null    $component The component the navigation is attached to. Defaults to 'members'.
     398 * @return null|false Returns false on failure.
    399399 */
    400400function bp_core_new_subnav_item( $args, $component = null ) {
     
    476476 * }
    477477 * @param string       $component The component the navigation is attached to. Defaults to 'members'.
    478  * @return bool|object Returns false on failure, new BP_Core_Nav_Item instance on success.
     478 * @return false|array Returns false on failure, new BP_Core_Nav_Item instance on success.
    479479 */
    480480function bp_core_create_subnav_link( $args = '', $component = 'members' ) {
     
    572572 * }
    573573 * @param string       $component The component the navigation is attached to. Defaults to 'members'.
    574  * @return bool|null Returns false on failure.
     574 * @return null|false Returns false on failure.
    575575 */
    576576function bp_core_register_subnav_screen_function( $args = '', $component = 'members' ) {
     
    776776 * @since 2.6.0 Introduced the `$component` parameter.
    777777 *
    778  * @param string $slug      The slug of the primary navigation item.
    779  * @param string $component The component the navigation is attached to. Defaults to 'members'.
     778 * @param string      $slug      The slug of the primary navigation item.
     779 * @param string|null $component The component the navigation is attached to. Defaults to 'members'.
    780780 * @return bool Returns false on failure, True on success.
    781781 */
     
    824824 * @since 2.6.0 Introduced the `$component` parameter.
    825825 *
    826  * @param string $parent_slug The slug of the primary navigation item.
    827  * @param string $slug        The slug of the secondary item to be removed.
    828  * @param string $component   The component the navigation is attached to. Defaults to 'members'.
     826 * @param string      $parent_slug The slug of the primary navigation item.
     827 * @param string      $slug        The slug of the secondary item to be removed.
     828 * @param string|null $component   The component the navigation is attached to. Defaults to 'members'.
    829829 * @return bool Returns false on failure, True on success.
    830830 */
Note: See TracChangeset for help on using the changeset viewer.