From 66c74dcca50d8f421ef6430cbc1f5a85e2641544 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Paris?= Date: Mon, 20 Jan 2025 18:20:18 +0100 Subject: [PATCH] Remove useless private method There is only one call to it. --- src/EventListener/SchemaFilterListener.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/EventListener/SchemaFilterListener.php b/src/EventListener/SchemaFilterListener.php index 203739b..6116cbc 100644 --- a/src/EventListener/SchemaFilterListener.php +++ b/src/EventListener/SchemaFilterListener.php @@ -40,11 +40,6 @@ public function __invoke($asset): bool return $asset !== $this->configurationTableName; } - private function disable(): void - { - $this->enabled = false; - } - public function onConsoleCommand(ConsoleCommandEvent $event): void { $command = $event->getCommand(); @@ -53,6 +48,6 @@ public function onConsoleCommand(ConsoleCommandEvent $event): void return; } - $this->disable(); + $this->enabled = false; } }