mirror of
https://github.com/nextcloud/server.git
synced 2026-04-05 00:56:16 -04:00
Fix psalm errors
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
(cherry picked from commit d63c122ec0)
This commit is contained in:
parent
2d296ce698
commit
96ec6ff5ea
5 changed files with 9 additions and 0 deletions
|
|
@ -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.');
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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.');
|
||||
|
|
|
|||
|
|
@ -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.');
|
||||
|
|
|
|||
Loading…
Reference in a new issue