Test Failed
Push — master ( dab9be...86623b )
by Devin
05:07
created
includes/gateways/stripe/includes/class-give-stripe-customer.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -327,7 +327,7 @@
 block discarded – undo
327 327
 	 * @since  2.1
328 328
 	 * @access public
329 329
 	 *
330
-	 * @return void
330
+	 * @return false|null
331 331
 	 */
332 332
 	public function attach_source() {
333 333
 
Please login to merge, or discard this patch.
includes/gateways/stripe/includes/class-give-stripe-gateway.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -432,7 +432,7 @@
 block discarded – undo
432 432
 		 *
433 433
 		 * @param float $amount Donation amount.
434 434
 		 *
435
-		 * @return mixed
435
+		 * @return double
436 436
 		 */
437 437
 		public function format_amount( $amount ) {
438 438
 
Please login to merge, or discard this patch.
includes/misc-functions.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
 /**
224 224
  * Retrieve Payment Key of the History Access Session.
225 225
  *
226
- * @return array|string
226
+ * @return boolean
227 227
  * @since 1.8.17
228 228
  */
229 229
 function give_get_history_session() {
@@ -520,7 +520,7 @@  discard block
 block discarded – undo
520 520
 /**
521 521
  * Show Donation Forms Post Type in Appearance > Menus by default on fresh install.
522 522
  *
523
- * @return bool
523
+ * @return false|null
524 524
  * @todo  Remove this, when WordPress Core ticket is resolved (https://core.trac.wordpress.org/ticket/16828).
525 525
  *
526 526
  * @since 1.8.14
@@ -861,7 +861,7 @@  discard block
 block discarded – undo
861 861
 /**
862 862
  * Check if terms enabled or not for form.
863 863
  *
864
- * @param $form_id
864
+ * @param integer $form_id
865 865
  *
866 866
  * @return bool
867 867
  * @since 1.8
@@ -983,7 +983,7 @@  discard block
 block discarded – undo
983 983
  * @param int    $id
984 984
  * @param string $meta_key
985 985
  * @param mixed  $meta_value
986
- * @param mixed  $prev_value
986
+ * @param string  $prev_value
987 987
  * @param string $meta_type
988 988
  *
989 989
  * @return mixed
@@ -1270,7 +1270,7 @@  discard block
 block discarded – undo
1270 1270
  * array_column() (PHP 5.5) but also supports objects.
1271 1271
  *
1272 1272
  * @param array      $list      List of objects or arrays
1273
- * @param int|string $field     Field from the object to place instead of the entire object
1273
+ * @param string $field     Field from the object to place instead of the entire object
1274 1274
  * @param int|string $index_key Optional. Field from the object to use as keys for the new array.
1275 1275
  *                              Default null.
1276 1276
  *
@@ -2217,7 +2217,7 @@  discard block
 block discarded – undo
2217 2217
  *
2218 2218
  * @param $args
2219 2219
  *
2220
- * @return bool|mixed
2220
+ * @return string|null
2221 2221
  * @since 2.4.1
2222 2222
  */
2223 2223
 function give_display_donation_receipt( $args ) {
@@ -2320,7 +2320,7 @@  discard block
 block discarded – undo
2320 2320
  * @param      $plugin_slug
2321 2321
  * @param bool        $by_plugin_name
2322 2322
  *
2323
- * @return mixed|void
2323
+ * @return string
2324 2324
  * @since 2.5.0
2325 2325
  */
2326 2326
 function give_get_addon_readme_url( $plugin_slug, $by_plugin_name = false ) {
Please login to merge, or discard this patch.
includes/database/class-give-db-donors.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
 	 * NOTE: This should not be called directly as it does not make necessary changes to
209 209
 	 * the payment meta and logs. Use give_donor_delete() instead.
210 210
 	 *
211
-	 * @param  bool|string|int $_id_or_email ID or Email of Donor.
211
+	 * @param  integer $_id_or_email ID or Email of Donor.
212 212
 	 *
213 213
 	 * @since  1.0
214 214
 	 * @access public
@@ -408,7 +408,7 @@  discard block
 block discarded – undo
408 408
 	 * @access public
409 409
 	 *
410 410
 	 * @param  string $field ID or email. Default is 'id'.
411
-	 * @param  mixed  $value The Customer ID or email to search. Default is 0.
411
+	 * @param  integer  $value The Customer ID or email to search. Default is 0.
412 412
 	 *
413 413
 	 * @return mixed         Upon success, an object of the donor. Upon failure, NULL
414 414
 	 */
Please login to merge, or discard this patch.
includes/database/class-give-db-meta.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
 	/**
280 280
 	 * Rename query clauses for new meta table
281 281
 	 *
282
-	 * @param $clause
282
+	 * @param string $clause
283 283
 	 * @param $filter
284 284
 	 *
285 285
 	 * @return mixed
@@ -515,7 +515,7 @@  discard block
 block discarded – undo
515 515
 	 * @since  2.0.4
516 516
 	 * @access public
517 517
 	 *
518
-	 * @return string
518
+	 * @return boolean
519 519
 	 */
520 520
 	public function get_meta_type() {
521 521
 		return $this->meta_type;
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
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
  *
20 20
  * @param array $args An array of form arguments.
21 21
  *
22
- * @return string Donation form.
22
+ * @return false|null Donation form.
23 23
  * @since 1.0
24 24
  *
25 25
  */
@@ -1736,7 +1736,7 @@  discard block
 block discarded – undo
1736 1736
  *
1737 1737
  * @param int $form_id The form ID.
1738 1738
  *
1739
- * @return bool
1739
+ * @return false|null
1740 1740
  * @since  1.0
1741 1741
  *
1742 1742
  */
@@ -1945,7 +1945,7 @@  discard block
 block discarded – undo
1945 1945
  * @param int   $form_id The form ID.
1946 1946
  * @param array $args    An array of form arguments.
1947 1947
  *
1948
- * @return mixed
1948
+ * @return boolean
1949 1949
  * @since        1.6   Add template for Give Goals Shortcode.
1950 1950
  *               More info is on https://github.com/impress-org/give/issues/411
1951 1951
  *
@@ -1979,7 +1979,7 @@  discard block
 block discarded – undo
1979 1979
  * @param int $total      Total amount based on shortcode parameter.
1980 1980
  * @param int $total_goal Total Goal amount passed by Admin.
1981 1981
  *
1982
- * @return mixed
1982
+ * @return boolean
1983 1983
  * @since  2.1
1984 1984
  *
1985 1985
  */
@@ -2008,7 +2008,7 @@  discard block
 block discarded – undo
2008 2008
 /**
2009 2009
  * Get form content position.
2010 2010
  *
2011
- * @param  $form_id
2011
+ * @param  integer $form_id
2012 2012
  * @param  $args
2013 2013
  *
2014 2014
  * @return mixed|string
@@ -2046,7 +2046,7 @@  discard block
 block discarded – undo
2046 2046
  * @param int   $form_id The form ID.
2047 2047
  * @param array $args    An array of form arguments.
2048 2048
  *
2049
- * @return void|bool
2049
+ * @return false|null
2050 2050
  * @since  1.0
2051 2051
  *
2052 2052
  */
@@ -2376,7 +2376,7 @@  discard block
 block discarded – undo
2376 2376
  * @param int   $id    ID of the form.
2377 2377
  * @param array $args  Additional args.
2378 2378
  *
2379
- * @return array
2379
+ * @return string[]
2380 2380
  * @since 2.1
2381 2381
  *
2382 2382
  */
@@ -2395,7 +2395,6 @@  discard block
 block discarded – undo
2395 2395
 /**
2396 2396
  * Add hidden field to Form Grid page
2397 2397
  *
2398
- * @param int              $form_id The form ID.
2399 2398
  * @param array            $args    An array of form arguments.
2400 2399
  * @param Give_Donate_Form $form    Form object.
2401 2400
  *
Please login to merge, or discard this patch.
includes/gateways/stripe/includes/give-stripe-helpers.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -552,7 +552,7 @@  discard block
 block discarded – undo
552 552
  * @param integer $donation_or_post_id Donation or wp post id.
553 553
  * @param bool    $check_enabled       Check if sequential-ordering_status is activated or not.
554 554
  *
555
- * @return bool|string
555
+ * @return false|string
556 556
  */
557 557
 function give_stripe_get_sequential_id( $donation_or_post_id, $check_enabled = true ) {
558 558
 	// Check if enabled.
@@ -1172,7 +1172,7 @@  discard block
 block discarded – undo
1172 1172
  *
1173 1173
  * @since  2.5.0
1174 1174
  *
1175
- * @return string
1175
+ * @return double
1176 1176
  */
1177 1177
 function give_stripe_dollars_to_cents( $dollars ) {
1178 1178
 	return round( $dollars, give_currency_decimal_filter() ) * 100;
@@ -1187,7 +1187,7 @@  discard block
 block discarded – undo
1187 1187
  *
1188 1188
  * @since 2.5.4
1189 1189
  *
1190
- * @return mixed
1190
+ * @return double
1191 1191
  */
1192 1192
 function give_stripe_format_amount( $amount ) {
1193 1193
 
Please login to merge, or discard this patch.
gateways/stripe/includes/payment-methods/class-give-stripe-card.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@
 block discarded – undo
136 136
 		 * @since  2.5.0
137 137
 		 * @access public
138 138
 		 *
139
-		 * @return void
139
+		 * @return null|false
140 140
 		 */
141 141
 		public function process_payment( $donation_data ) {
142 142
 
Please login to merge, or discard this patch.