mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
pspcs errors auto fix
This commit is contained in:
parent
64e9dc89c4
commit
4a2d522ccb
3 changed files with 12 additions and 11 deletions
|
@ -1876,17 +1876,18 @@ return array(
|
|||
},
|
||||
'wcgateway.url' => static function ( $container ): string {
|
||||
return plugins_url(
|
||||
$container->get('wcgateway.relative-path'),
|
||||
$container->get( 'wcgateway.relative-path' ),
|
||||
dirname( __FILE__, 3 ) . '/woocommerce-paypal-payments.php'
|
||||
);
|
||||
},
|
||||
'wcgateway.relative-path' => static function($container): string {
|
||||
'wcgateway.relative-path' => static function( $container ): string {
|
||||
return 'modules/ppcp-wc-gateway/';
|
||||
},
|
||||
'wcgateway.absolute-path' => static function($container): string {
|
||||
'wcgateway.absolute-path' => static function( $container ): string {
|
||||
return plugin_dir_path(
|
||||
dirname( __FILE__, 3 ) . '/woocommerce-paypal-payments.php') .
|
||||
$container->get('wcgateway.relative-path');
|
||||
dirname( __FILE__, 3 ) . '/woocommerce-paypal-payments.php'
|
||||
) .
|
||||
$container->get( 'wcgateway.relative-path' );
|
||||
},
|
||||
'wcgateway.endpoint.return-url' => static function ( $container ) : ReturnUrlEndpoint {
|
||||
$gateway = $container->get( 'wcgateway.paypal-gateway' );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue