Completed
Pull Request — master (#1832)
by Devin
04:50
created
includes/actions.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -216,7 +216,6 @@
 block discarded – undo
216 216
 /**
217 217
  * Set Donation Amount for Multi Level Donation Forms
218 218
  *
219
- * @param int    $form_id
220 219
  * @param object $form
221 220
  *
222 221
  * @since 1.8.9
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
@@ -272,7 +272,7 @@  discard block
 block discarded – undo
272 272
  *
273 273
  * @param  array $args The $_POST array being passed.
274 274
  *
275
- * @return int Whether it was a successful deletion.
275
+ * @return false|null Whether it was a successful deletion.
276 276
  */
277 277
 function give_donor_delete( $args ) {
278 278
 
@@ -546,7 +546,7 @@  discard block
 block discarded – undo
546 546
  * Remove an email address to the donor from within the admin and log a donor note and redirect back to the donor interface for feedback.
547 547
  *
548 548
  * @since  1.7
549
- * @return bool|null
549
+ * @return false|null
550 550
  */
551 551
 function give_remove_donor_email() {
552 552
 	if ( empty( $_GET['id'] ) || ! is_numeric( $_GET['id'] ) ) {
@@ -589,7 +589,7 @@  discard block
 block discarded – undo
589 589
  * and redirect back to the donor interface for feedback
590 590
  *
591 591
  * @since  1.7
592
- * @return bool|null
592
+ * @return false|null
593 593
  */
594 594
 function give_set_donor_primary_email() {
595 595
 	if ( empty( $_GET['id'] ) || ! is_numeric( $_GET['id'] ) ) {
Please login to merge, or discard this patch.
includes/api/class-give-api.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
 	 *
217 217
 	 * @access public
218 218
 	 * @since  1.1
219
-	 * @return array
219
+	 * @return string
220 220
 	 */
221 221
 	public function get_versions() {
222 222
 		return $this->versions;
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
 	 * @uses   Give_API::invalid_key()
303 303
 	 * @uses   Give_API::invalid_auth()
304 304
 	 * @since  1.1
305
-	 * @return bool
305
+	 * @return false|null
306 306
 	 */
307 307
 	private function validate_request() {
308 308
 		global $wp_query;
@@ -694,7 +694,7 @@  discard block
 block discarded – undo
694 694
 	 *
695 695
 	 * @param array $args Arguments to override defaults
696 696
 	 *
697
-	 * @return array $dates
697
+	 * @return integer|null $dates
698 698
 	 */
699 699
 	public function get_dates( $args = array() ) {
700 700
 		$dates = array();
Please login to merge, or discard this patch.
includes/class-give-db-donors.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
 	 * @since  1.0
162 162
 	 * @access public
163 163
 	 *
164
-	 * @param  bool|string|int $_id_or_email
164
+	 * @param  integer $_id_or_email
165 165
 	 *
166 166
 	 * @return bool|int
167 167
 	 */
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
 	 * @param  int          $user_id       User ID.
317 317
 	 * @param  WP_User|bool $old_user_data User data.
318 318
 	 *
319
-	 * @return bool
319
+	 * @return false|null
320 320
 	 */
321 321
 	public function update_donor_email_on_user_update( $user_id = 0, $old_user_data = false ) {
322 322
 
@@ -373,7 +373,7 @@  discard block
 block discarded – undo
373 373
 	 * @access public
374 374
 	 *
375 375
 	 * @param  string $field ID or email. Default is 'id'.
376
-	 * @param  mixed  $value The Customer ID or email to search. Default is 0.
376
+	 * @param  integer  $value The Customer ID or email to search. Default is 0.
377 377
 	 *
378 378
 	 * @return mixed         Upon success, an object of the donor. Upon failure, NULL
379 379
 	 */
Please login to merge, or discard this patch.
includes/class-give-license-handler.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -703,7 +703,7 @@  discard block
 block discarded – undo
703 703
 		 * @access private
704 704
 		 * @since  1.7
705 705
 		 *
706
-		 * @return bool
706
+		 * @return false|null
707 707
 		 */
708 708
 		private function __remove_license_key_from_subscriptions() {
709 709
 			$subscriptions = get_option( 'give_subscriptions', array() );
@@ -736,7 +736,7 @@  discard block
 block discarded – undo
736 736
 		 * @param $plugin_data
737 737
 		 * @param $status
738 738
 		 *
739
-		 * @return bool
739
+		 * @return false|null
740 740
 		 */
741 741
 		public function plugin_page_notices( $plugin_file, $plugin_data, $status ) {
742 742
 			// Bailout.
@@ -758,7 +758,7 @@  discard block
 block discarded – undo
758 758
 		 *
759 759
 		 * @since  1.8.7
760 760
 		 * @access public
761
-		 * @return array
761
+		 * @return string
762 762
 		 */
763 763
 		public function license_state_message() {
764 764
 			$message_data = array();
Please login to merge, or discard this patch.
includes/class-notices.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -435,7 +435,7 @@
 block discarded – undo
435 435
 	 * @since  1.8.9
436 436
 	 * @access public
437 437
 	 *
438
-	 * @param $errors
438
+	 * @param string $errors
439 439
 	 */
440 440
 	static function print_frontend_errors( $errors ) {
441 441
 		if ( ! $errors ) {
Please login to merge, or discard this patch.
includes/login-register.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
  * @param string $user_login Username
175 175
  * @param string $user_pass  Password
176 176
  *
177
- * @return bool
177
+ * @return false|null
178 178
  */
179 179
 function give_log_user_in( $user_id, $user_login, $user_pass ) {
180 180
 
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
  *
216 216
  * @param array $data Data sent from the register form
217 217
  *
218
- * @return bool
218
+ * @return false|null
219 219
  */
220 220
 function give_process_register_form( $data ) {
221 221
 
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
 		$this->setup_dates( $start_date, $end_date );
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
 	 * @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`
169 169
 	 * @param  $gateway_id  string|bool The gateway to get earnings for such as 'paypal' or 'stripe'
170 170
 	 *
171
-	 * @return float|int                Total amount of donations based on the passed arguments.
171
+	 * @return string                Total amount of donations based on the passed arguments.
172 172
 	 */
173 173
 	public function get_earnings_cache_key( $form_id = 0, $start_date = false, $end_date = false, $gateway_id = false ) {
174 174
 
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
@@ -681,7 +681,7 @@  discard block
 block discarded – undo
681 681
  * @param  int $year      Year number. Default is null.
682 682
  * @param  int $hour      Hour number. Default is null.
683 683
  *
684
- * @return int $earnings  Earnings
684
+ * @return double $earnings  Earnings
685 685
  */
686 686
 function give_get_earnings_by_date( $day = null, $month_num, $year = null, $hour = null ) {
687 687
 
@@ -970,7 +970,7 @@  discard block
 block discarded – undo
970 970
  *
971 971
  * @param int $payment_id Payment ID.
972 972
  *
973
- * @return array $user_info User Info Meta Values.
973
+ * @return string $user_info User Info Meta Values.
974 974
  */
975 975
 function give_get_payment_meta_user_info( $payment_id ) {
976 976
 	$payment = new Give_Payment( $payment_id );
@@ -987,7 +987,7 @@  discard block
 block discarded – undo
987 987
  *
988 988
  * @param int $payment_id Payment ID.
989 989
  *
990
- * @return int $form_id Form ID.
990
+ * @return string $form_id Form ID.
991 991
  */
992 992
 function give_get_payment_form_id( $payment_id ) {
993 993
 	$payment = new Give_Payment( $payment_id );
Please login to merge, or discard this patch.