Fix psalm errors

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
Marcel Klehr
2023-07-17 13:30:20 +02:00
parent 2811932247
commit d63c122ec0
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.');