Fix linter errors

This commit is contained in:
Alex P 2022-02-23 17:35:17 +02:00
parent 577e5c54d2
commit a38ebfae04
2 changed files with 9 additions and 0 deletions

View file

@ -63,6 +63,9 @@ trait PaymentsStatusHandlingTrait {
switch ( $status->name() ) {
case CaptureStatus::COMPLETED:
$wc_order->payment_complete();
/**
* Fired when PayPal order is captured.
*/
do_action( 'woocommerce_paypal_payments_order_captured', $wc_order, $capture );
break;
// It is checked in the capture endpoint already, but there are other ways to capture,

View file

@ -57,6 +57,12 @@ class FilePathPluginFactory implements FilePathPluginFactoryInterface {
}
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';
}