Completed
Push — hotfix/phpunit-failing-test ( d5cfa8...901abf )
by Ravinder
30:18 queued 09:45
created
includes/class-give-logging.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -463,7 +463,7 @@
 block discarded – undo
463 463
 	 * @since  1.7
464 464
 	 * @access public
465 465
 	 *
466
-	 * @return bool
466
+	 * @return false|null
467 467
 	 */
468 468
 	public function delete_cache() {
469 469
 		global $wpdb;
Please login to merge, or discard this patch.
includes/emails/class-give-email-tags.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -530,7 +530,7 @@
 block discarded – undo
530 530
  *
531 531
  * @param int $payment_id
532 532
  *
533
- * @return int payment_id
533
+ * @return string payment_id
534 534
  */
535 535
 function give_email_tag_payment_id( $payment_id ) {
536 536
 	$payment = new Give_Payment( $payment_id );
Please login to merge, or discard this patch.
includes/error-tracking.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
  *
66 66
  * @since 1.0
67 67
  * @uses  Give_Session::get()
68
- * @return mixed array if errors are present, false if none found
68
+ * @return string array if errors are present, false if none found
69 69
  */
70 70
 function give_get_errors() {
71 71
 	return Give()->session->get( 'give_errors' );
Please login to merge, or discard this patch.
includes/forms/functions.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
  *
156 156
  * Used to redirect a user back to the donation form if there are errors present.
157 157
  *
158
- * @param array $args
158
+ * @param string $args
159 159
  *
160 160
  * @access public
161 161
  * @since  1.0
@@ -437,7 +437,7 @@  discard block
 block discarded – undo
437 437
  *
438 438
  * @param int $form_id Give Form ID
439 439
  *
440
- * @return int $earnings Earnings for a certain form
440
+ * @return double $earnings Earnings for a certain form
441 441
  */
442 442
 function give_get_form_earnings_stats( $form_id = 0 ) {
443 443
 	$give_form = new Give_Donate_Form( $form_id );
Please login to merge, or discard this patch.
includes/gateways/offline-donations.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -456,7 +456,7 @@
 block discarded – undo
456 456
  *
457 457
  * @param WP_Post $payment
458 458
  *
459
- * @return mixed
459
+ * @return false|null
460 460
  */
461 461
 function give_offline_payment_receipt_after( $payment ) {
462 462
 	// Get payment object.
Please login to merge, or discard this patch.
includes/misc-functions.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -339,7 +339,7 @@
 block discarded – undo
339 339
  *
340 340
  * @since 1.0
341 341
  * @uses  Give()->session->get()
342
- * @return mixed array | false
342
+ * @return string array | false
343 343
  */
344 344
 function give_get_purchase_session() {
345 345
 	return Give()->session->get( 'give_purchase' );
Please login to merge, or discard this patch.
includes/payments/class-give-payment.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -392,7 +392,7 @@  discard block
 block discarded – undo
392 392
 	 *
393 393
 	 * @param  int|bool $payment_id A given payment
394 394
 	 *
395
-	 * @return mixed void|false
395
+	 * @return false|null void|false
396 396
 	 */
397 397
 	public function __construct( $payment_id = false ) {
398 398
 
@@ -463,7 +463,7 @@  discard block
 block discarded – undo
463 463
 	 *
464 464
 	 * @param  string $name The attribute to get
465 465
 	 *
466
-	 * @return boolean       If the item is set or not
466
+	 * @return boolean|null       If the item is set or not
467 467
 	 */
468 468
 	public function __isset( $name ) {
469 469
 		if ( property_exists( $this, $name ) ) {
@@ -1302,7 +1302,7 @@  discard block
 block discarded – undo
1302 1302
 	 *
1303 1303
 	 * @param  string $note The note to add
1304 1304
 	 *
1305
-	 * @return void
1305
+	 * @return false|null
1306 1306
 	 */
1307 1307
 	public function add_note( $note = false ) {
1308 1308
 		// Bail if no note specified.
Please login to merge, or discard this patch.
includes/payments/functions.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -326,7 +326,7 @@  discard block
 block discarded – undo
326 326
  *
327 327
  * @since  1.0
328 328
  *
329
- * @param  int|bool $form_id    Form ID (default: false).
329
+ * @param  boolean $form_id    Form ID (default: false).
330 330
  * @param  int      $payment_id Payment ID.
331 331
  *
332 332
  * @return void
@@ -649,7 +649,7 @@  discard block
 block discarded – undo
649 649
  * @param  int $year      Year number. Default is null.
650 650
  * @param  int $hour      Hour number. Default is null.
651 651
  *
652
- * @return int $earnings  Earnings
652
+ * @return double $earnings  Earnings
653 653
  */
654 654
 function give_get_earnings_by_date( $day = null, $month_num, $year = null, $hour = null ) {
655 655
 
@@ -963,7 +963,7 @@  discard block
 block discarded – undo
963 963
  *
964 964
  * @param int $payment_id Payment ID.
965 965
  *
966
- * @return int $form_id Form ID.
966
+ * @return string $form_id Form ID.
967 967
  */
968 968
 function give_get_payment_form_id( $payment_id ) {
969 969
 	$payment = new Give_Payment( $payment_id );
Please login to merge, or discard this patch.
includes/admin/class-give-settings.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 	 *
76 76
 	 * @param $url
77 77
 	 *
78
-	 * @return mixed
78
+	 * @return string
79 79
 	 */
80 80
 	public function give_update_cmb_meta_box_url( $url ) {
81 81
 		//Path to Give's CMB
@@ -856,7 +856,7 @@  discard block
 block discarded – undo
856 856
  * @since 1.0
857 857
  *
858 858
  * @param string          $key   The Key to update
859
- * @param string|bool|int $value The value to set the key to
859
+ * @param integer $value The value to set the key to
860 860
  *
861 861
  * @return boolean True if updated, false if not.
862 862
  */
@@ -959,7 +959,7 @@  discard block
 block discarded – undo
959 959
  * @since      1.3.5
960 960
  *
961 961
  * @param $array
962
- * @param $position |int|string Expects an array key or 'id' of the settings field to appear after
962
+ * @param string $position |int|string Expects an array key or 'id' of the settings field to appear after
963 963
  * @param $insert   |array a valid array of options to insert
964 964
  *
965 965
  * @return array
@@ -997,7 +997,7 @@  discard block
 block discarded – undo
997 997
  *
998 998
  * @since 1.0
999 999
  * @param array $field_arr
1000
- * @param array $saved_values
1000
+ * @param string|boolean $saved_values
1001 1001
  * @return void
1002 1002
  */
1003 1003
 function give_enabled_gateways_callback( $field_arr, $saved_values = array() ) {
@@ -1030,7 +1030,7 @@  discard block
 block discarded – undo
1030 1030
  *
1031 1031
  * @since  1.0
1032 1032
  * @param  array $field_arr
1033
- * @param  array $saved_value
1033
+ * @param  string|boolean $saved_value
1034 1034
  * @return void
1035 1035
  */
1036 1036
 function give_default_gateway_callback( $field_arr, $saved_value ) {
Please login to merge, or discard this patch.