mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 10:55:00 +08:00
🎨 Fix format of existing PHP code
This commit is contained in:
parent
eddf78e977
commit
d4aa87dff4
1 changed files with 7 additions and 6 deletions
|
@ -2,10 +2,11 @@
|
||||||
/**
|
/**
|
||||||
* The Settings module.
|
* The Settings module.
|
||||||
*
|
*
|
||||||
* @package WooCommerce\PayPalCommerce\AxoBlock
|
* @package WooCommerce\PayPalCommerce\Settings
|
||||||
*/
|
*/
|
||||||
|
|
||||||
declare(strict_types=1);
|
declare( strict_types = 1 );
|
||||||
|
|
||||||
namespace WooCommerce\PayPalCommerce\Settings;
|
namespace WooCommerce\PayPalCommerce\Settings;
|
||||||
|
|
||||||
use WooCommerce\PayPalCommerce\Vendor\Inpsyde\Modularity\Module\ExecutableModule;
|
use WooCommerce\PayPalCommerce\Vendor\Inpsyde\Modularity\Module\ExecutableModule;
|
||||||
|
@ -23,14 +24,14 @@ class SettingsModule implements ServiceModule, ExecutableModule {
|
||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
public function services(): array {
|
public function services() : array {
|
||||||
return require __DIR__ . '/../services.php';
|
return require __DIR__ . '/../services.php';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
public function run( ContainerInterface $container ): bool {
|
public function run( ContainerInterface $container ) : bool {
|
||||||
add_action(
|
add_action(
|
||||||
'admin_enqueue_scripts',
|
'admin_enqueue_scripts',
|
||||||
/**
|
/**
|
||||||
|
@ -38,7 +39,7 @@ class SettingsModule implements ServiceModule, ExecutableModule {
|
||||||
*
|
*
|
||||||
* @psalm-suppress MissingClosureParamType
|
* @psalm-suppress MissingClosureParamType
|
||||||
*/
|
*/
|
||||||
static function( $hook_suffix ) use ( $container ) {
|
static function ( $hook_suffix ) use ( $container ) {
|
||||||
if ( 'woocommerce_page_wc-settings' !== $hook_suffix ) {
|
if ( 'woocommerce_page_wc-settings' !== $hook_suffix ) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -82,7 +83,7 @@ class SettingsModule implements ServiceModule, ExecutableModule {
|
||||||
|
|
||||||
add_action(
|
add_action(
|
||||||
'woocommerce_paypal_payments_gateway_admin_options_wrapper',
|
'woocommerce_paypal_payments_gateway_admin_options_wrapper',
|
||||||
static function(): void {
|
static function () : void {
|
||||||
global $hide_save_button;
|
global $hide_save_button;
|
||||||
$hide_save_button = true;
|
$hide_save_button = true;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue