Pick up some phpmd things

This commit is contained in:
James Cole
2023-12-21 05:46:05 +01:00
parent ebf4b00288
commit 337d14e71e
5 changed files with 38 additions and 2 deletions

View File

@@ -77,7 +77,7 @@ class MoveNotesToDescription implements ActionInterface
}
$before = $object->description;
$beforeNote = $note->text;
$object->description = (string)$this->clearString($note->text);
$object->description = (string) $this->clearString($note->text);
$object->save();
$note->delete();
@@ -87,11 +87,17 @@ class MoveNotesToDescription implements ActionInterface
return true;
}
/**
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/
public function get(string $key, mixed $default = null): mixed
{
return null;
}
/**
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
*/
public function has(mixed $key): mixed
{
return null;