Test Failed
Pull Request — master (#327)
by Kiran
16:29
created
geodirectory-functions/custom_functions.php 1 patch
Doc Comments   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
  * @param object|string $post The post object.
162 162
  * @param string $post_type   The post type.
163 163
  *
164
- * @return object Returns filtered package info as an object.
164
+ * @return string Returns filtered package info as an object.
165 165
  */
166 166
 function geodir_post_package_info( $package_info, $post = '', $post_type = '' ) {
167 167
 	$package_info['pid']              = 0;
@@ -2489,7 +2489,7 @@  discard block
 block discarded – undo
2489 2489
  *
2490 2490
  * @since 1.5.0
2491 2491
  *
2492
- * @return True if WPML is active else False.
2492
+ * @return boolean if WPML is active else False.
2493 2493
  */
2494 2494
 function geodir_is_wpml() {
2495 2495
     if (function_exists('icl_object_id')) {
@@ -2561,7 +2561,6 @@  discard block
 block discarded – undo
2561 2561
  * @since 1.6.16 Sync reviews if sync comments allowed.
2562 2562
  *
2563 2563
  * @param int $post_id The Post ID.
2564
- * @param string $lang Language code for translating post.
2565 2564
  * @param array $request_info The post details in an array.
2566 2565
  */
2567 2566
 function geodir_wpml_duplicate_listing($post_id, $request_info) {
@@ -2645,7 +2644,7 @@  discard block
 block discarded – undo
2645 2644
  * @param int $master_post_id Original Post ID.
2646 2645
  * @param int $tr_post_id Translation Post ID.
2647 2646
  * @param string $lang Language code for translating post.
2648
- * @return bool True for success, False for fail.
2647
+ * @return boolean|null True for success, False for fail.
2649 2648
  */
2650 2649
 function geodir_icl_duplicate_taxonomies($master_post_id, $tr_post_id, $lang) {
2651 2650
     global $sitepress, $wpdb;
@@ -2888,8 +2887,6 @@  discard block
 block discarded – undo
2888 2887
  *
2889 2888
  * @since 1.6.16
2890 2889
  *
2891
- * @param string $post_type WP post type or WP texonomy. Ex: gd_place.
2892
- * @param bool $taxonomy Whether $post_type is taxonomy or not.
2893 2890
  * @return bool True if review star disabled, otherwise false.
2894 2891
  */ 
2895 2892
 function geodir_rating_disabled_post_types() {
Please login to merge, or discard this patch.
geodirectory_hooks_actions.php 1 patch
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -2171,7 +2171,7 @@  discard block
 block discarded – undo
2171 2171
  * @global object $wpdb WordPress Database object.
2172 2172
  * @global string $plugin_prefix Geodirectory plugin table prefix.
2173 2173
  * @param int $attachment_id Attachment ID.
2174
- * @return bool|void Returns false on failure.
2174
+ * @return false|null Returns false on failure.
2175 2175
  */
2176 2176
 function geodirectory_before_featured_image_delete($attachment_id)
2177 2177
 {
@@ -2344,6 +2344,7 @@  discard block
 block discarded – undo
2344 2344
  * @global object $wpdb WordPress Database object.
2345 2345
  * @global object $current_user Current user object.
2346 2346
  * @global string $plugin_prefix Geodirectory plugin table prefix.
2347
+ * @param string $user_id
2347 2348
  * @return array User listing count for each post type.
2348 2349
  */
2349 2350
 function geodir_user_post_listing_count($user_id=null)
@@ -2680,7 +2681,7 @@  discard block
 block discarded – undo
2680 2681
  * @since 1.6.16
2681 2682
  * @package GeoDirectory
2682 2683
  * @param array $classes The class array of the HTML element.
2683
- * @return array Modified class array.
2684
+ * @return string[] Modified class array.
2684 2685
  */
2685 2686
 function geodir_body_class_active_map($classes = array()) {
2686 2687
     $classes[] = 'gd-map-' . geodir_map_name();
Please login to merge, or discard this patch.