From 15ba5d4e6e68f095e958a4b0c3b6d1d4339fd83b Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Wed, 18 Oct 2023 16:32:21 +0000 Subject: [PATCH] Apply fixes from StyleCI --- extensions/mentions/src/TagExtender.php | 7 +++++++ framework/core/src/Extend/Conditional.php | 2 +- .../core/tests/integration/extenders/ConditionalTest.php | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/extensions/mentions/src/TagExtender.php b/extensions/mentions/src/TagExtender.php index 0974563bb1..d32fe60f58 100644 --- a/extensions/mentions/src/TagExtender.php +++ b/extensions/mentions/src/TagExtender.php @@ -1,5 +1,12 @@ when(function (ExtensionManager $extensions) use ($extensionId) { - return !$extensions->isEnabled($extensionId); + return ! $extensions->isEnabled($extensionId); }, $extenders); } diff --git a/framework/core/tests/integration/extenders/ConditionalTest.php b/framework/core/tests/integration/extenders/ConditionalTest.php index 19a523d935..3dc8c021b8 100644 --- a/framework/core/tests/integration/extenders/ConditionalTest.php +++ b/framework/core/tests/integration/extenders/ConditionalTest.php @@ -246,7 +246,7 @@ public function conditional_enabled_extension_enabled_applies_invokable_class() $this->assertArrayHasKey('customConditionalAttribute', $payload['data']['attributes']); } - + /** @test */ public function conditional_does_not_instantiate_extender_if_condition_is_false_using_callable() {