From 3aa604eb254a4e35d333635e024a8fa9bf6b7803 Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Wed, 11 Oct 2023 11:15:11 +0000 Subject: [PATCH] Apply fixes from StyleCI --- framework/core/src/Extend/Conditional.php | 2 -- framework/core/tests/integration/extenders/ConditionalTest.php | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/framework/core/src/Extend/Conditional.php b/framework/core/src/Extend/Conditional.php index 26202666c2..55584beebe 100644 --- a/framework/core/src/Extend/Conditional.php +++ b/framework/core/src/Extend/Conditional.php @@ -19,8 +19,6 @@ * * This is useful for applying extenders only if certain conditions are met, * such as the presence of an enabled extension or a specific configuration setting. - * - * @package Flarum\Extend */ class Conditional implements ExtenderInterface { diff --git a/framework/core/tests/integration/extenders/ConditionalTest.php b/framework/core/tests/integration/extenders/ConditionalTest.php index ce5291b80b..2ee1512073 100644 --- a/framework/core/tests/integration/extenders/ConditionalTest.php +++ b/framework/core/tests/integration/extenders/ConditionalTest.php @@ -144,7 +144,7 @@ public function conditional_injects_dependencies_to_condition_callable() $this->extend( (new Extend\Conditional()) ->when(function (?ExtensionManager $extensions) { - if (!$extensions) { + if (! $extensions) { throw new Exception('ExtensionManager not injected'); } }, [