From 09e17a8cfb9a38419686b9553e67ff7d618d2793 Mon Sep 17 00:00:00 2001 From: Narek Zakarian Date: Wed, 15 Jan 2025 18:13:07 +0400 Subject: [PATCH] Add namespaces to root files --- modules.php | 3 ++- scoper.inc.php | 2 ++ uninstall.php | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/modules.php b/modules.php index 792aa636e..21a4e645e 100644 --- a/modules.php +++ b/modules.php @@ -5,10 +5,11 @@ * @package WooCommerce\PayPalCommerce */ +namespace WooCommerce\PayPalCommerce; + use WooCommerce\PayPalCommerce\PayLaterBlock\PayLaterBlockModule; use WooCommerce\PayPalCommerce\PayLaterWCBlocks\PayLaterWCBlocksModule; use WooCommerce\PayPalCommerce\PayLaterConfigurator\PayLaterConfiguratorModule; -use WooCommerce\PayPalCommerce\PluginModule; return function ( string $root_dir ): iterable { $modules_dir = "$root_dir/modules"; diff --git a/scoper.inc.php b/scoper.inc.php index 57e9b8a9a..b253a18e7 100644 --- a/scoper.inc.php +++ b/scoper.inc.php @@ -7,6 +7,8 @@ declare(strict_types=1); +namespace WooCommerce\PayPalCommerce; + use Isolated\Symfony\Component\Finder\Finder; $finders = array( diff --git a/uninstall.php b/uninstall.php index 26fa6cb67..7ae2763b4 100644 --- a/uninstall.php +++ b/uninstall.php @@ -7,6 +7,8 @@ declare(strict_types=1); +namespace WooCommerce\PayPalCommerce; + use WooCommerce\PayPalCommerce\Uninstall\ClearDatabaseInterface; use WooCommerce\PayPalCommerce\Vendor\Psr\Container\ContainerInterface; use WooCommerce\PayPalCommerce\WcGateway\Settings\Settings;