mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-02 03:51:18 +00:00
Various PSR12 code cleanup
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user