Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/04/2017 06:26:55 PM (10 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-template-loader.php

    r11267 r11447  
    2424 * @param string|null $name Optional. Template part name. Used to generate
    2525 *                          secondary filenames, eg 'personal' for 'activity-personal.php'.
    26  * @return string Path to located template. See {@link bp_locate_template()}.
     26 * @return false|string Path to located template. See {@link bp_locate_template()}.
    2727 */
    2828function bp_get_template_part( $slug, $name = null ) {
    … …  
    7474 * @param string      $slug Template slug.
    7575 * @param string|null $name Template name.
    76  * @return string
     76 * @return false|string
    7777 */
    7878function bp_get_asset_template_part( $slug, $name = null ) {
    … …  
    167167 *
    168168 * @param string $filename Relative filename to search for.
    169  * @return array|bool Array of asset data if one is located (includes absolute filepath and URI).
    170  *                    Boolean false on failure.
     169 * @return false|array Array of asset data if one is located (includes absolute filepath and URI).
     170 *                     Boolean false on failure.
    171171 */
    172172function bp_locate_template_asset( $filename ) {
    … …  
    606606 * @since 2.4.0 Added singular.php to stack
    607607 *
    608  * @return array Array of possible root level wrapper template files.
     608 * @return string Possible root level wrapper template files.
    609609 */
    610610function bp_get_theme_compat_templates() {
Note: See TracChangeset for help on using the changeset viewer.