aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/TextProcessing
diff options
context:
space:
mode:
authorMarcel Klehr <mklehr@gmx.net>2023-11-08 17:01:02 +0100
committerGitHub <noreply@github.com>2023-11-08 17:01:02 +0100
commit6fbf430fe30a90d900397a28a3357d0e1fc7ffb5 (patch)
treefc2073c9f69625370a7d812c7b99b08decaba60e /lib/private/TextProcessing
parent12c558f20ad27237f4650aca53056ae7e263e459 (diff)
downloadnextcloud-server-6fbf430fe30a90d900397a28a3357d0e1fc7ffb5.tar.gz
nextcloud-server-6fbf430fe30a90d900397a28a3357d0e1fc7ffb5.zip
Update lib/private/TextProcessing/Manager.php
Co-authored-by: Julien Veyssier <julien-nc@posteo.net> Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Diffstat (limited to 'lib/private/TextProcessing')
-rw-r--r--lib/private/TextProcessing/Manager.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/TextProcessing/Manager.php b/lib/private/TextProcessing/Manager.php
index d6633568553..c165f229919 100644
--- a/lib/private/TextProcessing/Manager.php
+++ b/lib/private/TextProcessing/Manager.php
@@ -158,7 +158,7 @@ class Manager implements IManager {
throw new PreConditionNotMetException('No LanguageModel provider is installed that can handle this task');
}
$task->setStatus(OCPTask::STATUS_SCHEDULED);
- [$provider, ] = $this->getPreferredProviders($task);
+ [$provider,] = $this->getPreferredProviders($task);
if ($provider instanceof IProviderWithExpectedRuntime) {
$completionExpectedAt = new \DateTime('now');
$completionExpectedAt->add(new \DateInterval('PT'.$provider->getExpectedRuntime().'S'));