mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-30 05:00:51 +08:00
Fix linter errors
This commit is contained in:
parent
577e5c54d2
commit
a38ebfae04
2 changed files with 9 additions and 0 deletions
|
@ -63,6 +63,9 @@ trait PaymentsStatusHandlingTrait {
|
||||||
switch ( $status->name() ) {
|
switch ( $status->name() ) {
|
||||||
case CaptureStatus::COMPLETED:
|
case CaptureStatus::COMPLETED:
|
||||||
$wc_order->payment_complete();
|
$wc_order->payment_complete();
|
||||||
|
/**
|
||||||
|
* Fired when PayPal order is captured.
|
||||||
|
*/
|
||||||
do_action( 'woocommerce_paypal_payments_order_captured', $wc_order, $capture );
|
do_action( 'woocommerce_paypal_payments_order_captured', $wc_order, $capture );
|
||||||
break;
|
break;
|
||||||
// It is checked in the capture endpoint already, but there are other ways to capture,
|
// It is checked in the capture endpoint already, but there are other ways to capture,
|
||||||
|
|
|
@ -57,6 +57,12 @@ class FilePathPluginFactory implements FilePathPluginFactoryInterface {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( ! function_exists( 'get_plugin_data' ) ) {
|
if ( ! function_exists( 'get_plugin_data' ) ) {
|
||||||
|
/**
|
||||||
|
* Skip check for WP files and constants.
|
||||||
|
*
|
||||||
|
* @psalm-suppress UnresolvableInclude
|
||||||
|
* @psalm-suppress UndefinedConstant
|
||||||
|
*/
|
||||||
require_once ABSPATH . 'wp-admin/includes/plugin.php';
|
require_once ABSPATH . 'wp-admin/includes/plugin.php';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue