Completed
Pull Request — master (#1637)
by Ravinder
16:50
created
includes/admin/system-info.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
  *
50 50
  * @since: 1.4
51 51
  *
52
- * @return bool
52
+ * @return boolean|null
53 53
  */
54 54
 function give_allow_sessions_for_sysinfo() {
55 55
 	if ( is_admin() && ( isset( $_GET['page'] ) && isset( $_GET['tab'] ) ) && ( $_GET['tab'] == 'system_info' && $_GET['page'] == 'give-settings' ) ) {
Please login to merge, or discard this patch.
admin/reporting/tools/class-give-tools-delete-test-transactions.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
 	 * @since 1.5
51 51
 	 * @global object $wpdb Used to query the database using the WordPress
52 52
 	 *   Database API
53
-	 * @return array $data The data for the CSV file
53
+	 * @return boolean $data The data for the CSV file
54 54
 	 */
55 55
 	public function get_data() {
56 56
 		global $wpdb;
Please login to merge, or discard this patch.
includes/admin/reporting/tools/class-give-tools-recount-all-stats.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
 	 * @since 1.5
51 51
 	 * @global object $wpdb Used to query the database using the WordPress
52 52
 	 *   Database API
53
-	 * @return array $data The data for the CSV file
53
+	 * @return boolean $data The data for the CSV file
54 54
 	 */
55 55
 	public function get_data() {
56 56
 		global $give_logs, $wpdb;
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/class-give-db-customers.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
 	 * @since  1.0
159 159
 	 * @access public
160 160
 	 *
161
-	 * @param  bool|string|int $_id_or_email
161
+	 * @param  integer $_id_or_email
162 162
 	 *
163 163
 	 * @return bool|int
164 164
 	 */
@@ -313,7 +313,7 @@  discard block
 block discarded – undo
313 313
 	 * @param  int     $user_id       User ID.
314 314
 	 * @param  WP_User $old_user_data User data.
315 315
 	 *
316
-	 * @return bool
316
+	 * @return false|null
317 317
 	 */
318 318
 	public function update_customer_email_on_user_update( $user_id = 0, $old_user_data ) {
319 319
 
@@ -362,7 +362,7 @@  discard block
 block discarded – undo
362 362
 	 * @access public
363 363
 	 *
364 364
 	 * @param  string $field ID or email. Default is 'id'.
365
-	 * @param  mixed  $value The Customer ID or email to search. Default is 0.
365
+	 * @param  integer  $value The Customer ID or email to search. Default is 0.
366 366
 	 *
367 367
 	 * @return mixed         Upon success, an object of the customer. Upon failure, NULL
368 368
 	 */
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
@@ -890,7 +890,7 @@  discard block
 block discarded – undo
890 890
 	 * @access public
891 891
 	 *
892 892
 	 * @param  string $meta_key   Metadata name. Default is empty.
893
-	 * @param  mixed  $meta_value Metadata value.
893
+	 * @param  string  $meta_value Metadata value.
894 894
 	 * @param  bool   $unique     Optional. Whether the same key should not be added. Default is false.
895 895
 	 *
896 896
 	 * @return bool               False for failure. True for success.
@@ -922,7 +922,7 @@  discard block
 block discarded – undo
922 922
 	 * @access public
923 923
 	 *
924 924
 	 * @param  string $meta_key   Metadata name. Default is empty.
925
-	 * @param  mixed  $meta_value Optional. Metadata value. Default is empty.
925
+	 * @param  string  $meta_value Optional. Metadata value. Default is empty.
926 926
 	 *
927 927
 	 * @return bool               False for failure. True for success.
928 928
 	 */
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
@@ -337,7 +337,7 @@
 block discarded – undo
337 337
  *
338 338
  * @since 1.0
339 339
  * @uses  Give()->session->get()
340
- * @return mixed array | false
340
+ * @return string array | false
341 341
  */
342 342
 function give_get_purchase_session() {
343 343
 	return Give()->session->get( 'give_purchase' );
Please login to merge, or discard this patch.
includes/class-give-license-handler.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
 		 * @access private
220 220
 		 * @since  1.0
221 221
 		 *
222
-		 * @return bool
222
+		 * @return false|null
223 223
 		 */
224 224
 		public function auto_updater() {
225 225
 
@@ -475,7 +475,7 @@  discard block
 block discarded – undo
475 475
 		 * @access public
476 476
 		 * @since  1.7
477 477
 		 *
478
-		 * @return bool|void
478
+		 * @return false|null
479 479
 		 */
480 480
 		public function weekly_license_check() {
481 481
 
@@ -527,7 +527,7 @@  discard block
 block discarded – undo
527 527
 		 * @access public
528 528
 		 * @since  1.7
529 529
 		 *
530
-		 * @return bool|void
530
+		 * @return false|null
531 531
 		 */
532 532
 		public function weekly_subscription_check() {
533 533
 
@@ -607,7 +607,7 @@  discard block
 block discarded – undo
607 607
 		 * @access private
608 608
 		 * @since  1.7
609 609
 		 *
610
-		 * @return bool|void
610
+		 * @return false|null
611 611
 		 */
612 612
 		private function __single_subscription_check() {
613 613
 			// Do not fire if license key is not set.
@@ -802,7 +802,7 @@  discard block
 block discarded – undo
802 802
 		 * @access private
803 803
 		 * @since  1.7
804 804
 		 *
805
-		 * @return void|bool
805
+		 * @return false|null
806 806
 		 */
807 807
 		private function __remove_license_key_from_subscriptions(){
808 808
 			$subscriptions = get_option( 'give_subscriptions', array() );
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
@@ -644,7 +644,7 @@  discard block
 block discarded – undo
644 644
  * @param  int $year      Year number. Default is null.
645 645
  * @param  int $hour      Hour number. Default is null.
646 646
  *
647
- * @return int $earnings  Earnings
647
+ * @return double $earnings  Earnings
648 648
  */
649 649
 function give_get_earnings_by_date( $day = null, $month_num, $year = null, $hour = null ) {
650 650
 
@@ -959,7 +959,7 @@  discard block
 block discarded – undo
959 959
  *
960 960
  * @param int $payment_id Payment ID.
961 961
  *
962
- * @return int $form_id Form ID.
962
+ * @return string $form_id Form ID.
963 963
  */
964 964
 function give_get_payment_form_id( $payment_id ) {
965 965
 	$payment = new Give_Payment( $payment_id );
Please login to merge, or discard this patch.