Completed
Push — release/2.5.0 ( 7976df...5baaa9 )
by Ravinder
16:01 queued 05:08
created
includes/payments/class-payment-stats.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 	 * @param  $end_date   string|bool  The end date for which we'd like to filter our sale stats. If false, we'll use the default end date of `this_month`
37 37
 	 * @param  $status     string|array The sale status(es) to count. Only valid when retrieving global stats
38 38
 	 *
39
-	 * @return float|int                Total amount of donations based on the passed arguments.
39
+	 * @return string                Total amount of donations based on the passed arguments.
40 40
 	 */
41 41
 	public function get_sales( $form_id = 0, $start_date = false, $end_date = false, $status = 'publish' ) {
42 42
 
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 	 * @param  $end_date    string|bool The end date for which we'd like to filter the donations stats. If false, method will use the default end date of `this_month`.
84 84
 	 * @param  $gateway_id  string|bool The gateway to get earnings for such as 'paypal' or 'stripe'.
85 85
 	 *
86
-	 * @return float|int                Total amount of donations based on the passed arguments.
86
+	 * @return string                Total amount of donations based on the passed arguments.
87 87
 	 */
88 88
 	public function get_earnings( $form_id = 0, $start_date = false, $end_date = false, $gateway_id = false ) {
89 89
 		global $wpdb;
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
 	 * @param  $end_date    string|bool The end date for which we'd like to filter our sale stats. If false, we'll use the default end date of `this_month`
188 188
 	 * @param  $gateway_id  string|bool The gateway to get earnings for such as 'paypal' or 'stripe'
189 189
 	 *
190
-	 * @return float|int                Total amount of donations based on the passed arguments.
190
+	 * @return string                Total amount of donations based on the passed arguments.
191 191
 	 */
192 192
 	public function get_earnings_cache_key( $form_id = 0, $start_date = false, $end_date = false, $gateway_id = false ) {
193 193
 
Please login to merge, or discard this patch.
includes/admin/class-addon-activation-banner.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -487,7 +487,7 @@
 block discarded – undo
487 487
 	 *
488 488
 	 * @param string $main_file Plugin Main File.
489 489
 	 *
490
-	 * @return bool|mixed|string
490
+	 * @return string
491 491
 	 */
492 492
 	public function get_plugin_folder_name( $main_file ) {
493 493
 		// Remove plugin file and get the Add-on's folder name only.
Please login to merge, or discard this patch.
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/forms/template.php 1 patch
Doc Comments   +7 added lines, -8 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 string Donation form.
24
+ * @return false|null Donation form.
25 25
  */
26 26
 function give_get_donation_form( $args = array() ) {
27 27
 
@@ -1482,7 +1482,7 @@  discard block
 block discarded – undo
1482 1482
  *
1483 1483
  * @param  int $form_id The form ID.
1484 1484
  *
1485
- * @return bool
1485
+ * @return false|null
1486 1486
  */
1487 1487
 function give_terms_agreement( $form_id ) {
1488 1488
 	$form_option = give_get_meta( $form_id, '_give_terms_option', true );
@@ -1676,7 +1676,7 @@  discard block
 block discarded – undo
1676 1676
  * @param  int   $form_id The form ID.
1677 1677
  * @param  array $args    An array of form arguments.
1678 1678
  *
1679
- * @return mixed
1679
+ * @return boolean
1680 1680
  */
1681 1681
 function give_show_goal_progress( $form_id, $args = array() ) {
1682 1682
 
@@ -1703,7 +1703,7 @@  discard block
 block discarded – undo
1703 1703
  * @param  int $total      Total amount based on shortcode parameter.
1704 1704
  * @param  int $total_goal Total Goal amount passed by Admin.
1705 1705
  *
1706
- * @return mixed
1706
+ * @return boolean
1707 1707
  */
1708 1708
 function give_show_goal_totals_progress( $total, $total_goal ) {
1709 1709
 
@@ -1727,7 +1727,7 @@  discard block
 block discarded – undo
1727 1727
  *
1728 1728
  * @since  1.8
1729 1729
  *
1730
- * @param  $form_id
1730
+ * @param  integer $form_id
1731 1731
  * @param  $args
1732 1732
  *
1733 1733
  * @return mixed|string
@@ -1768,7 +1768,7 @@  discard block
 block discarded – undo
1768 1768
  * @param  int   $form_id The form ID.
1769 1769
  * @param  array $args    An array of form arguments.
1770 1770
  *
1771
- * @return void|bool
1771
+ * @return false|null
1772 1772
  */
1773 1773
 function give_form_content( $form_id, $args ) {
1774 1774
 
@@ -2050,7 +2050,7 @@  discard block
 block discarded – undo
2050 2050
  *
2051 2051
  * @since 2.1
2052 2052
  *
2053
- * @return array
2053
+ * @return string[]
2054 2054
  */
2055 2055
 function add_class_for_form_grid( $class, $id, $args ) {
2056 2056
 	$class[] = 'give-form-grid-wrap';
@@ -2061,7 +2061,6 @@  discard block
 block discarded – undo
2061 2061
 /**
2062 2062
  * Add hidden field to Form Grid page
2063 2063
  *
2064
- * @param int              $form_id The form ID.
2065 2064
  * @param array            $args    An array of form arguments.
2066 2065
  * @param Give_Donate_Form $form    Form object.
2067 2066
  *
Please login to merge, or discard this patch.
includes/payments/class-give-sequential-donation-number.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -197,7 +197,7 @@
 block discarded – undo
197 197
 	 * @since
198 198
 	 * @access public
199 199
 	 *
200
-	 * @param $serial_number
200
+	 * @param integer $serial_number
201 201
 	 *
202 202
 	 * @return string
203 203
 	 */
Please login to merge, or discard this patch.
includes/payments/functions.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -569,7 +569,7 @@
 block discarded – undo
569 569
  *
570 570
  * @since 1.0
571 571
  *
572
- * @return int $earnings Earnings
572
+ * @return double $earnings Earnings
573 573
  */
574 574
 function give_get_earnings_by_date( $day = null, $month_num, $year = null, $hour = null ) {
575 575
 	// This is getting deprecated soon. Use Give_Payment_Stats with the get_earnings() method instead.
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.