Completed
Pull Request — master (#500)
by Roy
02:10
created
includes/class-wc-stripe-api.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,6 @@
 block discarded – undo
23 23
 
24 24
 	/**
25 25
 	 * Set secret API Key.
26
-	 * @param string $key
27 26
 	 */
28 27
 	public static function set_secret_key( $secret_key ) {
29 28
 		self::$secret_key = $secret_key;
Please login to merge, or discard this patch.
includes/abstracts/abstract-wc-stripe-payment-gateway.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -32,6 +32,8 @@
 block discarded – undo
32 32
 	 *
33 33
 	 * @since 4.0.0
34 34
 	 * @version 4.0.0
35
+	 * @param string $slug
36
+	 * @param string $class
35 37
 	 */
36 38
 	public function add_admin_notice( $slug, $class, $message ) {
37 39
 		$this->notices[ $slug ] = array(
Please login to merge, or discard this patch.
includes/class-wc-stripe-customer.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -233,7 +233,6 @@
 block discarded – undo
233 233
 	/**
234 234
 	 * Get a customers saved sources using their Stripe ID. Cached.
235 235
 	 *
236
-	 * @param  string $customer_id
237 236
 	 * @return array
238 237
 	 */
239 238
 	public function get_sources() {
Please login to merge, or discard this patch.
includes/payment-methods/class-wc-gateway-stripe-alipay.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -289,7 +289,7 @@
 block discarded – undo
289 289
 	 *
290 290
 	 * @param int  $order_id Reference.
291 291
 	 * @param bool $retry Should we retry on fail.
292
-	 * @param bool $force_save_source Force payment source to be saved.
292
+	 * @param bool $force_save_save Force payment source to be saved.
293 293
 	 *
294 294
 	 * @throws Exception If payment will not be accepted.
295 295
 	 *
Please login to merge, or discard this patch.
woocommerce-gateway-stripe.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -162,6 +162,8 @@
 block discarded – undo
162 162
 		 *
163 163
 		 * @since 1.0.0
164 164
 		 * @version 4.0.0
165
+		 * @param string $slug
166
+		 * @param string $class
165 167
 		 */
166 168
 		public function add_admin_notice( $slug, $class, $message, $dismissible = false ) {
167 169
 			$this->notices[ $slug ] = array(
Please login to merge, or discard this patch.
includes/compat/class-wc-stripe-compat.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
 
315 315
 	/**
316 316
 	 * Don't transfer Stripe fee/ID meta to renewal orders.
317
-	 * @param int $resubscribe_order The order created for the customer to resubscribe to the old expired/cancelled subscription
317
+	 * @param integer $renewal_order
318 318
 	 */
319 319
 	public function delete_renewal_meta( $renewal_order ) {
320 320
 		delete_post_meta( ( WC_Stripe_Helper::is_pre_30() ? $renewal_order->id : $renewal_order->get_id() ), 'Stripe Fee' );
@@ -556,6 +556,8 @@  discard block
 block discarded – undo
556 556
 	/**
557 557
 	 * Process the pre-order
558 558
 	 * @param int $order_id
559
+	 * @param boolean $retry
560
+	 * @param boolean $force_save_source
559 561
 	 * @return array
560 562
 	 */
561 563
 	public function process_pre_order( $order_id, $retry, $force_save_source ) {
Please login to merge, or discard this patch.
includes/compat/class-wc-stripe-sepa-compat.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
 
315 315
 	/**
316 316
 	 * Don't transfer Stripe fee/ID meta to renewal orders.
317
-	 * @param int $resubscribe_order The order created for the customer to resubscribe to the old expired/cancelled subscription
317
+	 * @param integer $renewal_order
318 318
 	 */
319 319
 	public function delete_renewal_meta( $renewal_order ) {
320 320
 		delete_post_meta( ( WC_Stripe_Helper::is_pre_30() ? $renewal_order->id : $renewal_order->get_id() ), 'Stripe Fee' );
@@ -556,6 +556,8 @@  discard block
 block discarded – undo
556 556
 	/**
557 557
 	 * Process the pre-order
558 558
 	 * @param int $order_id
559
+	 * @param boolean $retry
560
+	 * @param boolean $force_save_source
559 561
 	 * @return array
560 562
 	 */
561 563
 	public function process_pre_order( $order_id, $retry, $force_save_source ) {
Please login to merge, or discard this patch.
includes/class-wc-stripe-webhook-handler.php 1 patch
Doc Comments   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
 	 *
124 124
 	 * @since 4.0.0
125 125
 	 * @version 4.0.0
126
-	 * @param object $notification
126
+	 * @param string $notification
127 127
 	 * @param bool $retry
128 128
 	 */
129 129
 	public function process_webhook_payment( $notification, $retry = true ) {
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
 	 * We want to put the order into on-hold and add an order note.
242 242
 	 *
243 243
 	 * @since 4.0.0
244
-	 * @param object $notification
244
+	 * @param string $notification
245 245
 	 */
246 246
 	public function process_webhook_dispute( $notification ) {
247 247
 		$order = WC_Stripe_Helper::get_order_by_charge_id( $notification->data->object->charge );
@@ -265,7 +265,7 @@  discard block
 block discarded – undo
265 265
 	 *
266 266
 	 * @since 4.0.0
267 267
 	 * @version 4.0.0
268
-	 * @param object $notification
268
+	 * @param string $notification
269 269
 	 */
270 270
 	public function process_webhook_capture( $notification ) {
271 271
 		$order = WC_Stripe_Helper::get_order_by_charge_id( $notification->data->object->id );
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
 	 *
315 315
 	 * @since 4.0.0
316 316
 	 * @version 4.0.0
317
-	 * @param object $notification
317
+	 * @param string $notification
318 318
 	 */
319 319
 	public function process_webhook_charge_succeeded( $notification ) {
320 320
 		// The following payment methods are synchronous so does not need to be handle via webhook.
@@ -356,7 +356,7 @@  discard block
 block discarded – undo
356 356
 	 *
357 357
 	 * @since 4.0.0
358 358
 	 * @version 4.0.0
359
-	 * @param object $notification
359
+	 * @param string $notification
360 360
 	 */
361 361
 	public function process_webhook_charge_failed( $notification ) {
362 362
 		$order = WC_Stripe_Helper::get_order_by_charge_id( $notification->data->object->id );
@@ -383,7 +383,7 @@  discard block
 block discarded – undo
383 383
 	 *
384 384
 	 * @since 4.0.0
385 385
 	 * @version 4.0.0
386
-	 * @param object $notification
386
+	 * @param string $notification
387 387
 	 */
388 388
 	public function process_webhook_source_canceled( $notification ) {
389 389
 		$order = WC_Stripe_Helper::get_order_by_charge_id( $notification->data->object->id );
@@ -410,7 +410,7 @@  discard block
 block discarded – undo
410 410
 	 *
411 411
 	 * @since 4.0.0
412 412
 	 * @version 4.0.0
413
-	 * @param object $notification
413
+	 * @param string $notification
414 414
 	 */
415 415
 	public function process_webhook_refund( $notification ) {
416 416
 		$order = WC_Stripe_Helper::get_order_by_charge_id( $notification->data->object->id );
Please login to merge, or discard this patch.