Test Failed
Push — master ( 9cedb4...5f4c4b )
by Devin
22:27
created
includes/class-give-license-handler.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -812,7 +812,7 @@  discard block
 block discarded – undo
812 812
 		 * @access private
813 813
 		 * @since  1.7
814 814
 		 *
815
-		 * @return bool
815
+		 * @return false|null
816 816
 		 */
817 817
 		private function __remove_license_key_from_subscriptions() {
818 818
 			$subscriptions = get_option( 'give_subscriptions', array() );
@@ -847,7 +847,7 @@  discard block
 block discarded – undo
847 847
 		 * @param $plugin_data
848 848
 		 * @param $status
849 849
 		 *
850
-		 * @return bool
850
+		 * @return false|null
851 851
 		 */
852 852
 		public function plugin_page_notices( $plugin_file, $plugin_data, $status ) {
853 853
 			// Bailout.
@@ -869,7 +869,7 @@  discard block
 block discarded – undo
869 869
 		 *
870 870
 		 * @since  1.8.7
871 871
 		 * @access public
872
-		 * @return array
872
+		 * @return string
873 873
 		 */
874 874
 		public function license_state_message() {
875 875
 			$message_data = array();
Please login to merge, or discard this patch.
includes/class-give-logging.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -513,7 +513,7 @@
 block discarded – undo
513 513
 	 * @since  1.7
514 514
 	 * @access public
515 515
 	 *
516
-	 * @return bool
516
+	 * @return false|null
517 517
 	 */
518 518
 	public function delete_cache() {
519 519
 		// Add log related keys to delete.
Please login to merge, or discard this patch.
includes/class-give-session.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -403,7 +403,7 @@
 block discarded – undo
403 403
 	 * @since  2.2.0
404 404
 	 * @access public
405 405
 	 *
406
-	 * @return string|bool Formatted expiration date string.
406
+	 * @return string|false Formatted expiration date string.
407 407
 	 */
408 408
 	public function get_session_expiration() {
409 409
 		return $this->has_session() ? $this->session_expiration :false;
Please login to merge, or discard this patch.
includes/donors/frontend-donor-functions.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
  *
47 47
  * @since 2.2.0
48 48
  *
49
- * @param string|int $id_or_email
49
+ * @param string $id_or_email
50 50
  *
51 51
  * @return bool
52 52
  */
Please login to merge, or discard this patch.
includes/forms/functions.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
  *
153 153
  * Used to redirect a user back to the donation form if there are errors present.
154 154
  *
155
- * @param array|string $args
155
+ * @param string $args
156 156
  *
157 157
  * @access public
158 158
  * @since  1.0
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
  * @since  1.0
299 299
  * @since  1.8.16 Add security check
300 300
  *
301
- * @return bool
301
+ * @return false|null
302 302
  */
303 303
 function give_listen_for_failed_payments() {
304 304
 
@@ -1289,7 +1289,7 @@  discard block
 block discarded – undo
1289 1289
  * @since 2.2.0
1290 1290
  *
1291 1291
  * @param array|integer   $price_or_level_id Price level data.
1292
- * @param boolean|integer $form_id           Donation Form ID.
1292
+ * @param integer $form_id           Donation Form ID.
1293 1293
  *
1294 1294
  * @return boolean
1295 1295
  */
@@ -1393,7 +1393,7 @@  discard block
 block discarded – undo
1393 1393
  *
1394 1394
  * @since 2.2.0
1395 1395
  *
1396
- * @return object
1396
+ * @return Give_Donor
1397 1397
  */
1398 1398
 function give_get_name_with_title_prefixes( $donor ) {
1399 1399
 
@@ -1438,7 +1438,7 @@  discard block
 block discarded – undo
1438 1438
  *
1439 1439
  * @since 2.2.0
1440 1440
  *
1441
- * @return array
1441
+ * @return string|boolean
1442 1442
  */
1443 1443
 function give_get_default_title_prefixes() {
1444 1444
 	/**
Please login to merge, or discard this patch.
includes/forms/template.php 1 patch
Doc Comments   +7 added lines, -8 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 string Donation form.
24
+ * @return false|null Donation form.
25 25
  */
26 26
 function give_get_donation_form( $args = array() ) {
27 27
 
@@ -1681,7 +1681,7 @@  discard block
 block discarded – undo
1681 1681
  *
1682 1682
  * @param  int $form_id The form ID.
1683 1683
  *
1684
- * @return bool
1684
+ * @return false|null
1685 1685
  */
1686 1686
 function give_terms_agreement( $form_id ) {
1687 1687
 	$form_option = give_get_meta( $form_id, '_give_terms_option', true );
@@ -1891,7 +1891,7 @@  discard block
 block discarded – undo
1891 1891
  * @param  int   $form_id The form ID.
1892 1892
  * @param  array $args    An array of form arguments.
1893 1893
  *
1894
- * @return mixed
1894
+ * @return boolean
1895 1895
  */
1896 1896
 function give_show_goal_progress( $form_id, $args = array() ) {
1897 1897
 
@@ -1923,7 +1923,7 @@  discard block
 block discarded – undo
1923 1923
  * @param  int $total      Total amount based on shortcode parameter.
1924 1924
  * @param  int $total_goal Total Goal amount passed by Admin.
1925 1925
  *
1926
- * @return mixed
1926
+ * @return boolean
1927 1927
  */
1928 1928
 function give_show_goal_totals_progress( $total, $total_goal ) {
1929 1929
 
@@ -1952,7 +1952,7 @@  discard block
 block discarded – undo
1952 1952
  *
1953 1953
  * @since  1.8
1954 1954
  *
1955
- * @param  $form_id
1955
+ * @param  integer $form_id
1956 1956
  * @param  $args
1957 1957
  *
1958 1958
  * @return mixed|string
@@ -1993,7 +1993,7 @@  discard block
 block discarded – undo
1993 1993
  * @param  int   $form_id The form ID.
1994 1994
  * @param  array $args    An array of form arguments.
1995 1995
  *
1996
- * @return void|bool
1996
+ * @return false|null
1997 1997
  */
1998 1998
 function give_form_content( $form_id, $args ) {
1999 1999
 
@@ -2297,7 +2297,7 @@  discard block
 block discarded – undo
2297 2297
  *
2298 2298
  * @since 2.1
2299 2299
  *
2300
- * @return array
2300
+ * @return string[]
2301 2301
  */
2302 2302
 function add_class_for_form_grid( $class, $id, $args ) {
2303 2303
 	$class[] = 'give-form-grid-wrap';
@@ -2314,7 +2314,6 @@  discard block
 block discarded – undo
2314 2314
 /**
2315 2315
  * Add hidden field to Form Grid page
2316 2316
  *
2317
- * @param int              $form_id The form ID.
2318 2317
  * @param array            $args    An array of form arguments.
2319 2318
  * @param Give_Donate_Form $form    Form object.
2320 2319
  *
Please login to merge, or discard this patch.
includes/gateways/paypal-standard.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -506,7 +506,7 @@  discard block
 block discarded – undo
506 506
  *
507 507
  * @since 1.6.3
508 508
  *
509
- * @param $pending_reason
509
+ * @param string $pending_reason
510 510
  *
511 511
  * @return string
512 512
  */
@@ -583,7 +583,7 @@  discard block
 block discarded – undo
583 583
  * @param int   $payment_id   Payment ID
584 584
  * @param array $payment_data Array of payment data.
585 585
  *
586
- * @return mixed|string
586
+ * @return string
587 587
  */
588 588
 function give_build_paypal_url( $payment_id, $payment_data ) {
589 589
 	// Only send to PayPal if the pending payment is created successfully.
Please login to merge, or discard this patch.
includes/import-functions.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -581,10 +581,10 @@  discard block
 block discarded – undo
581 581
  *
582 582
  * @since 2.1
583 583
  *
584
- * @param $file_dir
585
- * @param $start
586
- * @param $end
587
- * @param $delimiter
584
+ * @param false|string $file_dir
585
+ * @param integer $start
586
+ * @param integer $end
587
+ * @param string $delimiter
588 588
  *
589 589
  * @return array
590 590
  */
@@ -610,7 +610,7 @@  discard block
 block discarded – undo
610 610
  *
611 611
  * @since 2.1
612 612
  *
613
- * @param $file_id
613
+ * @param integer $file_id
614 614
  *
615 615
  * @return false|string file content
616 616
  */
Please login to merge, or discard this patch.
includes/install.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -438,7 +438,7 @@
 block discarded – undo
438 438
  *
439 439
  * @since 1.8.11
440 440
  *
441
- * @return void
441
+ * @return false|null
442 442
  */
443 443
 function give_create_pages() {
444 444
 
Please login to merge, or discard this patch.