Fix psalm errors

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
(cherry picked from commit d63c122ec0)
This commit is contained in:
Marcel Klehr 2023-07-17 13:30:20 +02:00
parent 2d296ce698
commit 96ec6ff5ea
5 changed files with 9 additions and 0 deletions

View file

@ -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.');

View file

@ -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');

View file

@ -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;

View file

@ -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.');

View file

@ -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.');