Various PSR12 code cleanup

This commit is contained in:
James Cole
2022-12-29 19:42:26 +01:00
parent dbf3e76ecc
commit 6cfdc58cb1
415 changed files with 7462 additions and 6874 deletions

View File

@@ -42,7 +42,7 @@ class MoveDescriptionToNotes implements ActionInterface
*
* @codeCoverageIgnore
*
* @param RuleAction $action
* @param RuleAction $action
*/
public function __construct(RuleAction $action)
{
@@ -69,11 +69,11 @@ class MoveDescriptionToNotes implements ActionInterface
$before = $note->text;
$beforeDescription = $object->description;
if ('' !== $note->text) {
$note->text = trim(sprintf("%s \n%s", $note->text, $object->description));
$note->text = trim(sprintf("%s \n%s", $note->text, $object->description));
$object->description = '(no description)';
}
if ('' === $note->text) {
$note->text = (string) $object->description;
$note->text = (string)$object->description;
$object->description = '(no description)';
}
$after = $note->text;