mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-31 06:52:50 +08:00
Remove unneeded translations
This commit is contained in:
parent
65d958254d
commit
fc9ca6fe60
23 changed files with 43 additions and 120 deletions
|
@ -40,14 +40,10 @@ class WebhookEventFactory {
|
|||
*/
|
||||
public function from_paypal_response( $data ): WebhookEvent {
|
||||
if ( ! isset( $data->id ) ) {
|
||||
throw new RuntimeException(
|
||||
__( 'ID for webhook event not found.', 'woocommerce-paypal-payments' )
|
||||
);
|
||||
throw new RuntimeException( 'ID for webhook event not found.' );
|
||||
}
|
||||
if ( ! isset( $data->event_type ) ) {
|
||||
throw new RuntimeException(
|
||||
__( 'Event type for webhook event not found.', 'woocommerce-paypal-payments' )
|
||||
);
|
||||
throw new RuntimeException( 'Event type for webhook event not found.' );
|
||||
}
|
||||
|
||||
$create_time = ( isset( $data->create_time ) ) ?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue