diff options
author | Andrey Borysenko <andrey18106x@gmail.com> | 2024-01-15 16:54:28 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2024-02-12 20:47:33 +0100 |
commit | 162537916ba6a53fe74584b69a1fcd9e79e849f3 (patch) | |
tree | 42690a707ec081a1dd06b5aef82213d3eaec01ee /lib/private/TextProcessing | |
parent | c1fc1b29bc922cc61f1538cc9b7e6903cafdf867 (diff) | |
download | nextcloud-server-162537916ba6a53fe74584b69a1fcd9e79e849f3.tar.gz nextcloud-server-162537916ba6a53fe74584b69a1fcd9e79e849f3.zip |
fix missing return statement, inline return
Signed-off-by: Andrey Borysenko <andrey18106x@gmail.com>
Diffstat (limited to 'lib/private/TextProcessing')
-rw-r--r-- | lib/private/TextProcessing/Manager.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/private/TextProcessing/Manager.php b/lib/private/TextProcessing/Manager.php index 34f0b4e7964..e62a794f228 100644 --- a/lib/private/TextProcessing/Manager.php +++ b/lib/private/TextProcessing/Manager.php @@ -287,7 +287,7 @@ class Manager implements IManager { if ($provider instanceof IProviderWithId) { return $provider->getId() === $preferences[$task->getType()]; } - $provider::class === $preferences[$task->getType()]; + return $provider::class === $preferences[$task->getType()]; }))); if ($provider !== false) { $providers = array_filter($providers, fn ($p) => $p !== $provider); @@ -295,7 +295,6 @@ class Manager implements IManager { } } } - $providers = array_values(array_filter($providers, fn (IProvider $provider) => $task->canUseProvider($provider))); - return $providers; + return array_values(array_filter($providers, fn (IProvider $provider) => $task->canUseProvider($provider))); } } |