Completed
Push — issues/3312 ( 6b1a83 )
by Ravinder
1313:55 queued 1307:48
created
includes/class-give-donor.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -999,7 +999,7 @@
 block discarded – undo
999 999
 	 * @access public
1000 1000
 	 *
1001 1001
 	 * @param  string $meta_key   Metadata name. Default is empty.
1002
-	 * @param  mixed  $meta_value Optional. Metadata value. Default is empty.
1002
+	 * @param  string  $meta_value Optional. Metadata value. Default is empty.
1003 1003
 	 *
1004 1004
 	 * @return bool               False for failure. True for success.
1005 1005
 	 */
Please login to merge, or discard this patch.
includes/shortcodes.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -708,7 +708,7 @@
 block discarded – undo
708 708
  * @type string $display_style       How the form is displayed, either in new page or modal popup.
709 709
  *                                       Default 'redirect'. Accepts 'redirect', 'modal'.
710 710
  * }
711
- * @return string|bool The markup of the form grid or false.
711
+ * @return string|null The markup of the form grid or false.
712 712
  */
713 713
 function give_form_grid_shortcode( $atts ) {
714 714
 
Please login to merge, or discard this patch.
includes/class-give-comment.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -425,7 +425,7 @@  discard block
 block discarded – undo
425 425
 	 * @param int        $comment_id
426 426
 	 * @param WP_Comment $comment
427 427
 	 *
428
-	 * @return mixed
428
+	 * @return string
429 429
 	 */
430 430
 	public function __get_comment_author( $author, $comment_id, $comment ) {
431 431
 		if ( in_array( $comment->comment_type, $this->comment_types ) ) {
@@ -448,6 +448,7 @@  discard block
 block discarded – undo
448 448
 	 * @access public
449 449
 	 *
450 450
 	 * @param array @comment_types
451
+	 * @param string[] $comment_types
451 452
 	 *
452 453
 	 * @return array
453 454
 	 */
Please login to merge, or discard this patch.
includes/admin/donors/donor-actions.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
  *
22 22
  * @since 1.0
23 23
  *
24
- * @return array|bool $output Response messages
24
+ * @return false|null $output Response messages
25 25
  */
26 26
 function give_edit_donor( $args ) {
27 27
 
@@ -431,7 +431,7 @@  discard block
 block discarded – undo
431 431
  *
432 432
  * @since  1.7
433 433
  *
434
- * @return bool|null
434
+ * @return false|null
435 435
  */
436 436
 function give_remove_donor_email() {
437 437
 	if ( empty( $_GET['id'] ) || ! is_numeric( $_GET['id'] ) ) {
@@ -475,7 +475,7 @@  discard block
 block discarded – undo
475 475
  *
476 476
  * @since  1.7
477 477
  *
478
- * @return bool|null
478
+ * @return false|null
479 479
  */
480 480
 function give_set_donor_primary_email() {
481 481
 	if ( empty( $_GET['id'] ) || ! is_numeric( $_GET['id'] ) ) {
Please login to merge, or discard this patch.
includes/class-give-db-meta.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
 	/**
280 280
 	 * Rename query clauses for new meta table
281 281
 	 *
282
-	 * @param $clause
282
+	 * @param string $clause
283 283
 	 * @param $filter
284 284
 	 *
285 285
 	 * @return mixed
@@ -515,7 +515,7 @@  discard block
 block discarded – undo
515 515
 	 * @since  2.0.4
516 516
 	 * @access public
517 517
 	 *
518
-	 * @return string
518
+	 * @return boolean
519 519
 	 */
520 520
 	public function get_meta_type() {
521 521
 		return $this->meta_type;
Please login to merge, or discard this patch.
includes/donors/frontend-donor-functions.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
  *
47 47
  * @since 2.2.0
48 48
  *
49
- * @param string|int $id_or_email
49
+ * @param string $id_or_email
50 50
  *
51 51
  * @return bool
52 52
  */
Please login to merge, or discard this patch.
includes/misc-functions.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
  *
229 229
  * @since 1.8.17
230 230
  *
231
- * @return array|string
231
+ * @return boolean
232 232
  */
233 233
 function give_get_history_session() {
234 234
 	return (bool) Give()->session->get( 'history_access' );
@@ -705,7 +705,7 @@  discard block
 block discarded – undo
705 705
  *
706 706
  * @todo  Remove this, when WordPress Core ticket is resolved (https://core.trac.wordpress.org/ticket/16828).
707 707
  *
708
- * @return bool
708
+ * @return false|null
709 709
  */
710 710
 function give_donation_metabox_menu() {
711 711
 
@@ -983,7 +983,7 @@  discard block
 block discarded – undo
983 983
  *
984 984
  * @since 1.8
985 985
  *
986
- * @param $form_id
986
+ * @param integer $form_id
987 987
  *
988 988
  * @return bool
989 989
  */
@@ -1090,7 +1090,7 @@  discard block
 block discarded – undo
1090 1090
  * @param int    $id
1091 1091
  * @param string $meta_key
1092 1092
  * @param mixed  $meta_value
1093
- * @param mixed  $prev_value
1093
+ * @param string  $prev_value
1094 1094
  *
1095 1095
  * @return mixed
1096 1096
  */
@@ -1349,7 +1349,7 @@  discard block
 block discarded – undo
1349 1349
  * @since 1.8.13
1350 1350
  *
1351 1351
  * @param array      $list      List of objects or arrays
1352
- * @param int|string $field     Field from the object to place instead of the entire object
1352
+ * @param string $field     Field from the object to place instead of the entire object
1353 1353
  * @param int|string $index_key Optional. Field from the object to use as keys for the new array.
1354 1354
  *                              Default null.
1355 1355
  *
@@ -1770,7 +1770,7 @@  discard block
 block discarded – undo
1770 1770
  *
1771 1771
  * @since 2.1
1772 1772
  *
1773
- * @param $form_id
1773
+ * @param integer $form_id
1774 1774
  *
1775 1775
  * @return bool
1776 1776
  */
@@ -2158,7 +2158,7 @@  discard block
 block discarded – undo
2158 2158
  *
2159 2159
  * @since 2.2.0
2160 2160
  *
2161
- * @return object
2161
+ * @return Give_Donor
2162 2162
  */
2163 2163
 function give_get_name_with_title_prefixes( $donor ) {
2164 2164
 
Please login to merge, or discard this patch.
includes/payments/class-give-payment.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -405,7 +405,7 @@  discard block
 block discarded – undo
405 405
 	 *
406 406
 	 * @param  int|bool $payment_id A given payment.
407 407
 	 *
408
-	 * @return mixed void|false
408
+	 * @return false|null void|false
409 409
 	 */
410 410
 	public function __construct( $payment_id = false ) {
411 411
 
@@ -1174,7 +1174,7 @@  discard block
 block discarded – undo
1174 1174
 	 *
1175 1175
 	 * @param  string|bool $note The note to add.
1176 1176
 	 *
1177
-	 * @return bool           If the note was specified or not
1177
+	 * @return false|null           If the note was specified or not
1178 1178
 	 */
1179 1179
 	public function add_note( $note = false ) {
1180 1180
 		// Bail if no note specified.
Please login to merge, or discard this patch.