pspcs errors auto fix

This commit is contained in:
Kirill Braslavsky 2021-03-25 14:39:13 +02:00
parent 64e9dc89c4
commit 4a2d522ccb
3 changed files with 12 additions and 11 deletions

View file

@ -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' );