Skip to content

Commit d63c122

Browse files
committed
Fix psalm errors
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
1 parent 2811932 commit d63c122

File tree

5 files changed

+9
-0
lines changed

5 files changed

+9
-0
lines changed

lib/public/TextProcessing/FreePromptTaskType.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,15 @@ public function __construct(
4646

4747
/**
4848
* @inheritDoc
49+
* @since 27.1.0
4950
*/
5051
public function getName(): string {
5152
return $this->l->t('Free prompt');
5253
}
5354

5455
/**
5556
* @inheritDoc
57+
* @since 27.1.0
5658
*/
5759
public function getDescription(): string {
5860
return $this->l->t('Runs an arbitrary prompt through the built-in language model.');

lib/public/TextProcessing/HeadlineTaskType.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,15 @@ public function __construct(
4646

4747
/**
4848
* @inheritDoc
49+
* @since 27.1.0
4950
*/
5051
public function getName(): string {
5152
return $this->l->t('Generate headline');
5253
}
5354

5455
/**
5556
* @inheritDoc
57+
* @since 27.1.0
5658
*/
5759
public function getDescription(): string {
5860
return $this->l->t('Generates a possible headline for a text');

lib/public/TextProcessing/IProvider.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ public function process(string $prompt): string;
5555
* Returns the task type class string of the task type, that this
5656
* provider handles
5757
*
58+
* @since 27.1.0
5859
* @return class-string<T>
5960
*/
6061
public function getTaskType(): string;

lib/public/TextProcessing/SummaryTaskType.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,15 @@ public function __construct(
4646

4747
/**
4848
* @inheritDoc
49+
* @since 27.1.0
4950
*/
5051
public function getName(): string {
5152
return $this->l->t('Summarize');
5253
}
5354

5455
/**
5556
* @inheritDoc
57+
* @since 27.1.0
5658
*/
5759
public function getDescription(): string {
5860
return $this->l->t('Summarizes text by reducing its length without losing key information.');

lib/public/TextProcessing/TopicsTaskType.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,15 @@ public function __construct(
4646

4747
/**
4848
* @inheritDoc
49+
* @since 27.1.0
4950
*/
5051
public function getName(): string {
5152
return $this->l->t('Extract topics');
5253
}
5354

5455
/**
5556
* @inheritDoc
57+
* @since 27.1.0
5658
*/
5759
public function getDescription(): string {
5860
return $this->l->t('Extracts topics from a text and outputs them separated by commas.');

0 commit comments

Comments
 (0)