Test Failed
Push — fix/broken-phpunit-tests ( b32f1e...963e9e )
by Ravinder
07:40
created
includes/admin/tools/logs/class-api-requests-logs-list-table.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -187,7 +187,7 @@
 block discarded – undo
187 187
 	 * @access public
188 188
 	 * @since  1.0
189 189
 	 *
190
-	 * @return string|bool String if search is present, false otherwise
190
+	 * @return string|false String if search is present, false otherwise
191 191
 	 */
192 192
 	public function get_search() {
193 193
 		return ! empty( $_GET['s'] ) ? urldecode( trim( $_GET['s'] ) ) : false;
Please login to merge, or discard this patch.
includes/api/class-give-api.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -326,7 +326,7 @@  discard block
 block discarded – undo
326 326
 	 * @uses   Give_API::invalid_key()
327 327
 	 * @uses   Give_API::invalid_auth()
328 328
 	 * @since  1.1
329
-	 * @return bool
329
+	 * @return false|null
330 330
 	 */
331 331
 	private function validate_request() {
332 332
 		global $wp_query;
@@ -722,7 +722,7 @@  discard block
 block discarded – undo
722 722
 	 *
723 723
 	 * @param array $args Arguments to override defaults
724 724
 	 *
725
-	 * @return array $dates
725
+	 * @return integer|null $dates
726 726
 	 */
727 727
 	public function get_dates( $args = array() ) {
728 728
 		$dates = array();
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
 
@@ -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/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.