Completed
Push — release/2.0 ( 9c875b...4d845f )
by Ravinder
19:03
created
includes/admin/class-give-settings.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 	 *
73 73
 	 * @param $url
74 74
 	 *
75
-	 * @return mixed
75
+	 * @return string
76 76
 	 */
77 77
 	public function give_update_cmb_meta_box_url( $url ) {
78 78
 		// Path to Give's CMB
@@ -976,7 +976,7 @@  discard block
 block discarded – undo
976 976
  * @since 1.0
977 977
  *
978 978
  * @param array $field_arr
979
- * @param array $saved_values
979
+ * @param string|boolean $saved_values
980 980
  *
981 981
  * @return void
982 982
  */
@@ -1011,7 +1011,7 @@  discard block
 block discarded – undo
1011 1011
  * @since  1.0
1012 1012
  *
1013 1013
  * @param  array $field_arr
1014
- * @param  array $saved_value
1014
+ * @param  string|boolean $saved_value
1015 1015
  *
1016 1016
  * @return void
1017 1017
  */
Please login to merge, or discard this patch.
includes/admin/emails/class-email-notifications.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -390,7 +390,7 @@  discard block
 block discarded – undo
390 390
 	 *
391 391
 	 * @since  2.0
392 392
 	 * @access public
393
-	 * @return bool|null
393
+	 * @return false|null
394 394
 	 */
395 395
 	public function preview_email() {
396 396
 		// Bailout.
@@ -526,7 +526,7 @@  discard block
 block discarded – undo
526 526
 	 *
527 527
 	 * @since  2.0
528 528
 	 * @access public
529
-	 * @return bool|null
529
+	 * @return false|null
530 530
 	 */
531 531
 	public function send_preview_email() {
532 532
 		// Bailout.
Please login to merge, or discard this patch.
includes/class-give-customer.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -889,7 +889,7 @@  discard block
 block discarded – undo
889 889
 	 * @access public
890 890
 	 *
891 891
 	 * @param  string $meta_key Metadata name. Default is empty.
892
-	 * @param  mixed $meta_value Metadata value.
892
+	 * @param  string $meta_value Metadata value.
893 893
 	 * @param  bool $unique Optional. Whether the same key should not be added. Default is false.
894 894
 	 *
895 895
 	 * @return bool               False for failure. True for success.
@@ -921,7 +921,7 @@  discard block
 block discarded – undo
921 921
 	 * @access public
922 922
 	 *
923 923
 	 * @param  string $meta_key Metadata name. Default is empty.
924
-	 * @param  mixed $meta_value Optional. Metadata value. Default is empty.
924
+	 * @param  string $meta_value Optional. Metadata value. Default is empty.
925 925
 	 *
926 926
 	 * @return bool               False for failure. True for success.
927 927
 	 */
Please login to merge, or discard this patch.
includes/payments/functions.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -367,7 +367,7 @@  discard block
 block discarded – undo
367 367
  *
368 368
  * @since  1.0
369 369
  *
370
- * @param  int|bool $form_id Form ID (default: false).
370
+ * @param  boolean $form_id Form ID (default: false).
371 371
  * @param  int $payment_id Payment ID.
372 372
  *
373 373
  * @return void
@@ -691,7 +691,7 @@  discard block
 block discarded – undo
691 691
  * @param  int $year Year number. Default is null.
692 692
  * @param  int $hour Hour number. Default is null.
693 693
  *
694
- * @return int $earnings  Earnings
694
+ * @return double $earnings  Earnings
695 695
  */
696 696
 function give_get_earnings_by_date( $day = null, $month_num, $year = null, $hour = null ) {
697 697
 
@@ -949,7 +949,7 @@  discard block
 block discarded – undo
949 949
  * @param string $meta_key The meta key to pull.
950 950
  * @param bool $single Pull single meta entry or as an object.
951 951
  *
952
- * @return mixed $meta Payment Meta.
952
+ * @return string $meta Payment Meta.
953 953
  */
954 954
 function give_get_payment_meta( $payment_id = 0, $meta_key = '_give_payment_meta', $single = true ) {
955 955
 	$payment = new Give_Payment( $payment_id );
@@ -997,7 +997,7 @@  discard block
 block discarded – undo
997 997
  *
998 998
  * @param int $payment_id Payment ID.
999 999
  *
1000
- * @return int $form_id Form ID.
1000
+ * @return string $form_id Form ID.
1001 1001
  */
1002 1002
 function give_get_payment_form_id( $payment_id ) {
1003 1003
 	$payment = new Give_Payment( $payment_id );
Please login to merge, or discard this patch.
includes/admin/emails/class-email-notification-util.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@
 block discarded – undo
134 134
 	 * @param Give_Email_Notification $email
135 135
 	 * @param int $form_id
136 136
 	 *
137
-	 * @return string
137
+	 * @return boolean
138 138
 	 */
139 139
 	public static function is_email_notification_active( Give_Email_Notification $email, $form_id = null ) {
140 140
 		$notification_status = $email->get_notification_status( $form_id );
Please login to merge, or discard this patch.
includes/class-give-license-handler.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -483,7 +483,7 @@  discard block
 block discarded – undo
483 483
 		 * @access public
484 484
 		 * @since  1.7
485 485
 		 *
486
-		 * @return bool|void
486
+		 * @return false|null
487 487
 		 */
488 488
 		public function weekly_license_check() {
489 489
 
@@ -536,7 +536,7 @@  discard block
 block discarded – undo
536 536
 		 * @access public
537 537
 		 * @since  1.7
538 538
 		 *
539
-		 * @return bool|void
539
+		 * @return false|null
540 540
 		 */
541 541
 		public function weekly_subscription_check() {
542 542
 
@@ -617,7 +617,7 @@  discard block
 block discarded – undo
617 617
 		 * @access private
618 618
 		 * @since  1.7
619 619
 		 *
620
-		 * @return bool|void
620
+		 * @return false|null
621 621
 		 */
622 622
 		private function __single_subscription_check() {
623 623
 			// Do not fire if license key is not set.
@@ -829,7 +829,7 @@  discard block
 block discarded – undo
829 829
 		 * @access private
830 830
 		 * @since  1.7
831 831
 		 *
832
-		 * @return void|bool
832
+		 * @return false|null
833 833
 		 */
834 834
 		private function __remove_license_key_from_subscriptions() {
835 835
 			$subscriptions = get_option( 'give_subscriptions', array() );
@@ -928,7 +928,7 @@  discard block
 block discarded – undo
928 928
 		 * @param $plugin_data
929 929
 		 * @param $status
930 930
 		 *
931
-		 * @return bool
931
+		 * @return false|null
932 932
 		 */
933 933
 		public function plugin_page_notices( $plugin_file, $plugin_data, $status ) {
934 934
 			// Bailout.
@@ -957,7 +957,7 @@  discard block
 block discarded – undo
957 957
 		 *
958 958
 		 * @since  1.8.7
959 959
 		 * @access public
960
-		 * @return array
960
+		 * @return string
961 961
 		 */
962 962
 		public function license_state_message() {
963 963
 			$message_data = array();
Please login to merge, or discard this patch.
includes/admin/emails/abstract-email-notification.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -553,7 +553,7 @@
 block discarded – undo
553 553
 		 *
554 554
 		 * @param int $form_id
555 555
 		 *
556
-		 * @return array|string
556
+		 * @return string
557 557
 		 */
558 558
 		public function get_preview_email_recipient( $form_id = null ) {
559 559
 			$recipients = $this->get_recipient( $form_id );
Please login to merge, or discard this patch.
includes/forms/template.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
  *
22 22
  * @param  array $args An array of form arguments.
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
 
@@ -1470,7 +1470,7 @@  discard block
 block discarded – undo
1470 1470
  *
1471 1471
  * @param  int $form_id The form ID.
1472 1472
  *
1473
- * @return bool
1473
+ * @return false|null
1474 1474
  */
1475 1475
 function give_terms_agreement( $form_id ) {
1476 1476
 	$form_option = give_get_meta( $form_id, '_give_terms_option', true );
@@ -1647,7 +1647,7 @@  discard block
 block discarded – undo
1647 1647
  * @param  int   $form_id The form ID.
1648 1648
  * @param  array $args    An array of form arguments.
1649 1649
  *
1650
- * @return mixed
1650
+ * @return boolean
1651 1651
  */
1652 1652
 function give_show_goal_progress( $form_id, $args ) {
1653 1653
 
@@ -1667,7 +1667,7 @@  discard block
 block discarded – undo
1667 1667
  *
1668 1668
  * @since  1.8
1669 1669
  *
1670
- * @param  $form_id
1670
+ * @param  integer $form_id
1671 1671
  * @param  $args
1672 1672
  *
1673 1673
  * @return mixed|string
@@ -1708,7 +1708,7 @@  discard block
 block discarded – undo
1708 1708
  * @param  int   $form_id The form ID.
1709 1709
  * @param  array $args    An array of form arguments.
1710 1710
  *
1711
- * @return void|bool
1711
+ * @return false|null
1712 1712
  */
1713 1713
 function give_form_content( $form_id, $args ) {
1714 1714
 
Please login to merge, or discard this patch.
includes/admin/emails/class-donor-register-email.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@
 block discarded – undo
120 120
 		 * @param string                    $email_preview_header
121 121
 		 * @param Give_Donor_Register_Email $email
122 122
 		 *
123
-		 * @return bool
123
+		 * @return string|null
124 124
 		 */
125 125
 		public function email_preview_header( $email_preview_header, $email ) {
126 126
 			// Bailout.
Please login to merge, or discard this patch.