Fix psalm errors

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
pull/38854/head
Marcel Klehr 3 years ago
parent 2811932247
commit d63c122ec0
  1. 2
      lib/public/TextProcessing/FreePromptTaskType.php
  2. 2
      lib/public/TextProcessing/HeadlineTaskType.php
  3. 1
      lib/public/TextProcessing/IProvider.php
  4. 2
      lib/public/TextProcessing/SummaryTaskType.php
  5. 2
      lib/public/TextProcessing/TopicsTaskType.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.');

@ -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…
Cancel
Save