diff options
author | Marcel Klehr <mklehr@gmx.net> | 2023-07-17 13:30:20 +0200 |
---|---|---|
committer | Marcel Klehr <mklehr@gmx.net> | 2023-07-17 13:30:20 +0200 |
commit | d63c122ec0071cc1d0417eaa5eb1a85e41290263 (patch) | |
tree | 4c1676f8cc9ecfb377354c9249dcfdadda8b6735 /lib | |
parent | 2811932247da3301c25259396c1b4a1667db1b54 (diff) | |
download | nextcloud-server-d63c122ec0071cc1d0417eaa5eb1a85e41290263.tar.gz nextcloud-server-d63c122ec0071cc1d0417eaa5eb1a85e41290263.zip |
Fix psalm errors
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/public/TextProcessing/FreePromptTaskType.php | 2 | ||||
-rw-r--r-- | lib/public/TextProcessing/HeadlineTaskType.php | 2 | ||||
-rw-r--r-- | lib/public/TextProcessing/IProvider.php | 1 | ||||
-rw-r--r-- | lib/public/TextProcessing/SummaryTaskType.php | 2 | ||||
-rw-r--r-- | lib/public/TextProcessing/TopicsTaskType.php | 2 |
5 files changed, 9 insertions, 0 deletions
diff --git a/lib/public/TextProcessing/FreePromptTaskType.php b/lib/public/TextProcessing/FreePromptTaskType.php index aa1d6842b54..dcc27df77c9 100644 --- a/lib/public/TextProcessing/FreePromptTaskType.php +++ b/lib/public/TextProcessing/FreePromptTaskType.php @@ -46,6 +46,7 @@ class FreePromptTaskType implements ITaskType { /** * @inheritDoc + * @since 27.1.0 */ public function getName(): string { return $this->l->t('Free prompt'); @@ -53,6 +54,7 @@ class FreePromptTaskType implements ITaskType { /** * @inheritDoc + * @since 27.1.0 */ public function getDescription(): string { return $this->l->t('Runs an arbitrary prompt through the built-in language model.'); diff --git a/lib/public/TextProcessing/HeadlineTaskType.php b/lib/public/TextProcessing/HeadlineTaskType.php index 4ced298fd4d..ad38848ea87 100644 --- a/lib/public/TextProcessing/HeadlineTaskType.php +++ b/lib/public/TextProcessing/HeadlineTaskType.php @@ -46,6 +46,7 @@ class HeadlineTaskType implements ITaskType { /** * @inheritDoc + * @since 27.1.0 */ public function getName(): string { return $this->l->t('Generate headline'); @@ -53,6 +54,7 @@ class HeadlineTaskType implements ITaskType { /** * @inheritDoc + * @since 27.1.0 */ public function getDescription(): string { return $this->l->t('Generates a possible headline for a text'); diff --git a/lib/public/TextProcessing/IProvider.php b/lib/public/TextProcessing/IProvider.php index 3eb83aef8c3..6132e60b493 100644 --- a/lib/public/TextProcessing/IProvider.php +++ b/lib/public/TextProcessing/IProvider.php @@ -55,6 +55,7 @@ interface IProvider { * Returns the task type class string of the task type, that this * provider handles * + * @since 27.1.0 * @return class-string<T> */ public function getTaskType(): string; diff --git a/lib/public/TextProcessing/SummaryTaskType.php b/lib/public/TextProcessing/SummaryTaskType.php index 7db695c18f7..3d80cee47f8 100644 --- a/lib/public/TextProcessing/SummaryTaskType.php +++ b/lib/public/TextProcessing/SummaryTaskType.php @@ -46,6 +46,7 @@ class SummaryTaskType implements ITaskType { /** * @inheritDoc + * @since 27.1.0 */ public function getName(): string { return $this->l->t('Summarize'); @@ -53,6 +54,7 @@ class SummaryTaskType implements ITaskType { /** * @inheritDoc + * @since 27.1.0 */ public function getDescription(): string { return $this->l->t('Summarizes text by reducing its length without losing key information.'); diff --git a/lib/public/TextProcessing/TopicsTaskType.php b/lib/public/TextProcessing/TopicsTaskType.php index 8b41b3ee61a..6162b9a13e9 100644 --- a/lib/public/TextProcessing/TopicsTaskType.php +++ b/lib/public/TextProcessing/TopicsTaskType.php @@ -46,6 +46,7 @@ class TopicsTaskType implements ITaskType { /** * @inheritDoc + * @since 27.1.0 */ public function getName(): string { return $this->l->t('Extract topics'); @@ -53,6 +54,7 @@ class TopicsTaskType implements ITaskType { /** * @inheritDoc + * @since 27.1.0 */ public function getDescription(): string { return $this->l->t('Extracts topics from a text and outputs them separated by commas.'); |