Skip to:
Content

BuddyPress.org

Changeset 11035


Ignore:
Timestamp:
08/24/2016 12:22:22 PM (8 years ago)
Author:
djpaul
Message:

Activity, Groups, XProfile: fix some PHPDoc parameter types.

Props Scrutinizer-CI

See #5891

Location:
trunk/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-activity/bp-activity-template.php

    r11008 r11035  
    15411541 * @global object $activities_template {@link BP_Activity_Template}
    15421542 *
    1543  * @param object|bool $activity Optional. Falls back on the current item in the loop.
     1543 * @param BP_Activity_Activity $activity Optional. Falls back on the current item in the loop.
    15441544 * @return bool True if can delete, false otherwise.
    15451545 */
  • trunk/src/bp-groups/bp-groups-template.php

    r11034 r11035  
    267267 * @since 1.0.0
    268268 *
    269  * @param object|bool $group Optional. Group object. Default: current group in loop.
     269 * @param BP_Groups_Group $group Optional. Group object. Default: current group in loop.
    270270 * @return bool
    271271 */
    272 function bp_group_is_visible( $group = false ) {
     272function bp_group_is_visible( $group = null ) {
    273273    global $groups_template;
    274274
     
    752752 * @since 1.0.0
    753753 *
    754  * @param object|bool $group Optional. Group object.
    755  *                           Default: current group in loop.
    756  */
    757 function bp_group_permalink( $group = false ) {
     754 * @param BP_Groups_Group $group Optional. Group object. Default: current group in loop.
     755 */
     756function bp_group_permalink( $group = null ) {
    758757    echo bp_get_group_permalink( $group );
    759758}
     
    763762     * @since 1.0.0
    764763     *
    765      * @param object|bool $group Optional. Group object.
    766      *                           Default: current group in loop.
     764     * @param BP_Groups_Group $group Optional. Group object. Default: current group in loop.
    767765     * @return string
    768766     */
    769     function bp_get_group_permalink( $group = false ) {
     767    function bp_get_group_permalink( $group = null ) {
    770768        global $groups_template;
    771769
     
    12431241 * @since 1.7.0
    12441242 *
    1245  * @param object|bool $group   Optional. Group object.
    1246  *                             Default: current group in loop.
    1247  * @param int         $user_id ID of the user.
     1243 * @param BP_Groups_Group $group   Optional. Group object. Default: current group in loop.
     1244 * @param int             $user_id ID of the user.
    12481245 * @return bool
    12491246 */
    1250 function bp_is_group_creator( $group = false, $user_id = 0 ) {
     1247function bp_is_group_creator( $group = null, $user_id = 0 ) {
    12511248    global $groups_template;
    12521249
     
    32263223     *
    32273224     * @param object|bool $group Single group object.
    3228      * @return mixed
     3225     * @return false|string
    32293226     */
    32303227    function bp_get_group_join_button( $group = false ) {
     
    49564953     *
    49574954     * @param array $args Array of arguments for friends list output.
    4958      * @return mixed HTML list of checkboxes, or false
     4955     * @return false|string HTML list of checkboxes, or false
    49594956     */
    49604957    function bp_get_new_group_invite_friend_list( $args = array() ) {
  • trunk/src/bp-xprofile/bp-xprofile-admin.php

    r10882 r11035  
    549549 * @since 1.5.0
    550550 *
    551  * @param object $admin_field Admin field.
     551 * @param BP_XProfile_Field  $admin_field Admin field.
    552552 * @param object $admin_group Admin group object.
    553553 * @param string $class       Classes to append to output.
  • trunk/src/bp-xprofile/bp-xprofile-functions.php

    r10857 r11035  
    965965 * @param string $object_type Type of object. 'group', 'field', or 'data'.
    966966 * @param string $meta_key    Key of the metadata being updated.
    967  * @param mixed $meta_value  Value of the metadata being updated.
     967 * @param string $meta_value  Value of the metadata being updated.
    968968 * @param mixed  $prev_value  Optional. If specified, only update existing
    969969 *                            metadata entries with the specified value.
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field.php

    r11030 r11035  
    505505     *
    506506     * @param int $user_id ID of the user to get field data for.
    507      * @return object
     507     * @return BP_XProfile_ProfileData
    508508     */
    509509    public function get_field_data( $user_id = 0 ) {
Note: See TracChangeset for help on using the changeset viewer.