Test Failed
Push — master ( 9cedb4...5f4c4b )
by Devin
22:27
created
includes/misc-functions.php 1 patch
Doc Comments   +6 added lines, -6 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' );
@@ -704,7 +704,7 @@  discard block
 block discarded – undo
704 704
  *
705 705
  * @todo  Remove this, when WordPress Core ticket is resolved (https://core.trac.wordpress.org/ticket/16828).
706 706
  *
707
- * @return bool
707
+ * @return false|null
708 708
  */
709 709
 function give_donation_metabox_menu() {
710 710
 
@@ -982,7 +982,7 @@  discard block
 block discarded – undo
982 982
  *
983 983
  * @since 1.8
984 984
  *
985
- * @param $form_id
985
+ * @param integer $form_id
986 986
  *
987 987
  * @return bool
988 988
  */
@@ -1089,7 +1089,7 @@  discard block
 block discarded – undo
1089 1089
  * @param int    $id
1090 1090
  * @param string $meta_key
1091 1091
  * @param mixed  $meta_value
1092
- * @param mixed  $prev_value
1092
+ * @param string  $prev_value
1093 1093
  *
1094 1094
  * @return mixed
1095 1095
  */
@@ -1348,7 +1348,7 @@  discard block
 block discarded – undo
1348 1348
  * @since 1.8.13
1349 1349
  *
1350 1350
  * @param array      $list      List of objects or arrays
1351
- * @param int|string $field     Field from the object to place instead of the entire object
1351
+ * @param string $field     Field from the object to place instead of the entire object
1352 1352
  * @param int|string $index_key Optional. Field from the object to use as keys for the new array.
1353 1353
  *                              Default null.
1354 1354
  *
@@ -1782,7 +1782,7 @@  discard block
 block discarded – undo
1782 1782
  *
1783 1783
  * @since 2.1
1784 1784
  *
1785
- * @param $form_id
1785
+ * @param integer $form_id
1786 1786
  *
1787 1787
  * @return bool
1788 1788
  */
Please login to merge, or discard this patch.
includes/payments/backward-compatibility.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -207,7 +207,7 @@
 block discarded – undo
207 207
  *                              metadata entries with the specified value.
208 208
  *                              Otherwise, update all entries.
209 209
  *
210
- * @return mixed
210
+ * @return null|boolean
211 211
  */
212 212
 function _give_20_bc_saving_old_payment_meta( $check, $object_id, $meta_key, $meta_value, $prev_value ) {
213 213
 	// Bailout.
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
 
@@ -1175,7 +1175,7 @@  discard block
 block discarded – undo
1175 1175
 	 *
1176 1176
 	 * @param  string|bool $note The note to add.
1177 1177
 	 *
1178
-	 * @return bool           If the note was specified or not
1178
+	 * @return false|null           If the note was specified or not
1179 1179
 	 */
1180 1180
 	public function add_note( $note = false ) {
1181 1181
 		// Bail if no note specified.
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/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
 
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 	 * @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`.
85 85
 	 * @param  $gateway_id  string|bool The gateway to get earnings for such as 'paypal' or 'stripe'.
86 86
 	 *
87
-	 * @return float|int                Total amount of donations based on the passed arguments.
87
+	 * @return string                Total amount of donations based on the passed arguments.
88 88
 	 */
89 89
 	public function get_earnings( $form_id = 0, $start_date = false, $end_date = false, $gateway_id = false ) {
90 90
 		global $wpdb;
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
 	 * @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`
211 211
 	 * @param  $gateway_id  string|bool The gateway to get earnings for such as 'paypal' or 'stripe'
212 212
 	 *
213
-	 * @return float|int                Total amount of donations based on the passed arguments.
213
+	 * @return string                Total amount of donations based on the passed arguments.
214 214
 	 */
215 215
 	public function get_earnings_cache_key( $form_id = 0, $start_date = false, $end_date = false, $gateway_id = false ) {
216 216
 
Please login to merge, or discard this patch.
includes/payments/class-payments-query.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
 	 * @since  1.0
108 108
 	 * @access public
109 109
 	 *
110
-	 * @param $query_var
110
+	 * @param string $query_var
111 111
 	 * @param $value
112 112
 	 */
113 113
 	public function __set( $query_var, $value ) {
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
 	 * @since  1.0
125 125
 	 * @access public
126 126
 	 *
127
-	 * @param $query_var
127
+	 * @param string $query_var
128 128
 	 */
129 129
 	public function __unset( $query_var ) {
130 130
 		unset( $this->args[ $query_var ] );
@@ -477,7 +477,7 @@  discard block
 block discarded – undo
477 477
 	 * @param string   $order
478 478
 	 * @param WP_Query $query
479 479
 	 *
480
-	 * @return mixed
480
+	 * @return string
481 481
 	 */
482 482
 	public function custom_orderby( $order, $query ) {
483 483
 
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
@@ -572,7 +572,7 @@
 block discarded – undo
572 572
  *
573 573
  * @since 1.0
574 574
  *
575
- * @return int $earnings Earnings
575
+ * @return double $earnings Earnings
576 576
  */
577 577
 function give_get_earnings_by_date( $day = null, $month_num, $year = null, $hour = null ) {
578 578
 	// This is getting deprecated soon. Use Give_Payment_Stats with the get_earnings() method instead.
Please login to merge, or discard this patch.
includes/process-donation.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
  *
25 25
  * @throws ReflectionException Exception Handling.
26 26
  *
27
- * @return mixed
27
+ * @return false|null
28 28
  */
29 29
 function give_process_donation_form() {
30 30
 
@@ -1366,7 +1366,7 @@  discard block
 block discarded – undo
1366 1366
  *
1367 1367
  * @param array $valid_data List of Valid Data.
1368 1368
  *
1369
- * @return bool
1369
+ * @return boolean|null
1370 1370
  */
1371 1371
 function give_validate_donation_amount( $valid_data ) {
1372 1372
 
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
@@ -791,7 +791,7 @@
 block discarded – undo
791 791
  * @type string $display_style       How the form is displayed, either in new page or modal popup.
792 792
  *                                       Default 'redirect'. Accepts 'redirect', 'modal'.
793 793
  * }
794
- * @return string|bool The markup of the form grid or false.
794
+ * @return string|null The markup of the form grid or false.
795 795
  */
796 796
 function give_form_grid_shortcode( $atts ) {
797 797
 
Please login to merge, or discard this patch.