From 74f14c068d19190e438c374542b48d64ba705317 Mon Sep 17 00:00:00 2001 From: Sylius Bot Date: Fri, 8 Nov 2024 02:25:01 +0000 Subject: [PATCH] [CS][DX] Refactor --- src/Sylius/Bundle/AdminBundle/Twig/PaymentMethodExtension.php | 2 +- .../Installer/Provider/DatabaseSetupCommandsProvider.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Sylius/Bundle/AdminBundle/Twig/PaymentMethodExtension.php b/src/Sylius/Bundle/AdminBundle/Twig/PaymentMethodExtension.php index 87b59bb573..0bff096f96 100644 --- a/src/Sylius/Bundle/AdminBundle/Twig/PaymentMethodExtension.php +++ b/src/Sylius/Bundle/AdminBundle/Twig/PaymentMethodExtension.php @@ -43,7 +43,7 @@ final class PaymentMethodExtension extends AbstractExtension return array_filter( $this->gatewayFactories, fn (string $gatewayFactory) => !in_array($gatewayFactory, $this->excludedGatewayFactories, true), - ARRAY_FILTER_USE_KEY + \ARRAY_FILTER_USE_KEY, ); } } diff --git a/src/Sylius/Bundle/CoreBundle/Installer/Provider/DatabaseSetupCommandsProvider.php b/src/Sylius/Bundle/CoreBundle/Installer/Provider/DatabaseSetupCommandsProvider.php index 010d47896c..d512856f12 100644 --- a/src/Sylius/Bundle/CoreBundle/Installer/Provider/DatabaseSetupCommandsProvider.php +++ b/src/Sylius/Bundle/CoreBundle/Installer/Provider/DatabaseSetupCommandsProvider.php @@ -122,7 +122,7 @@ final class DatabaseSetupCommandsProvider implements DatabaseSetupCommandsProvid return $this->schemaManager; } - protected function isSQLite(): bool + private function isSQLite(): bool { $platform = $this->entityManager->getConnection()->getDatabasePlatform();