Skip to content

Commit

Permalink
Fix psalm errors
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
  • Loading branch information
marcelklehr committed Jul 17, 2023
1 parent 2811932 commit d63c122
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/public/TextProcessing/FreePromptTaskType.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,15 @@ public function __construct(

/**
* @inheritDoc
* @since 27.1.0
*/
public function getName(): string {
return $this->l->t('Free prompt');
}

/**
* @inheritDoc
* @since 27.1.0
*/
public function getDescription(): string {
return $this->l->t('Runs an arbitrary prompt through the built-in language model.');
Expand Down
2 changes: 2 additions & 0 deletions lib/public/TextProcessing/HeadlineTaskType.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,15 @@ public function __construct(

/**
* @inheritDoc
* @since 27.1.0
*/
public function getName(): string {
return $this->l->t('Generate headline');
}

/**
* @inheritDoc
* @since 27.1.0
*/
public function getDescription(): string {
return $this->l->t('Generates a possible headline for a text');
Expand Down
1 change: 1 addition & 0 deletions lib/public/TextProcessing/IProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public function process(string $prompt): string;
* 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;
Expand Down
2 changes: 2 additions & 0 deletions lib/public/TextProcessing/SummaryTaskType.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,15 @@ public function __construct(

/**
* @inheritDoc
* @since 27.1.0
*/
public function getName(): string {
return $this->l->t('Summarize');
}

/**
* @inheritDoc
* @since 27.1.0
*/
public function getDescription(): string {
return $this->l->t('Summarizes text by reducing its length without losing key information.');
Expand Down
2 changes: 2 additions & 0 deletions lib/public/TextProcessing/TopicsTaskType.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,15 @@ public function __construct(

/**
* @inheritDoc
* @since 27.1.0
*/
public function getName(): string {
return $this->l->t('Extract topics');
}

/**
* @inheritDoc
* @since 27.1.0
*/
public function getDescription(): string {
return $this->l->t('Extracts topics from a text and outputs them separated by commas.');
Expand Down

0 comments on commit d63c122

Please sign in to comment.