Various code cleanup.

This commit is contained in:
James Cole
2018-03-25 09:01:43 +02:00
parent dd9694890a
commit 6660306ac4
46 changed files with 327 additions and 121 deletions

View File

@@ -456,17 +456,17 @@ class JournalRepository implements JournalRepositoryInterface
}
/**
* Return text of a note attached to journal, or ''.
* Return text of a note attached to journal, or NULL
*
* @param TransactionJournal $journal
*
* @return string
* @return string|null
*/
public function getNoteText(TransactionJournal $journal): string
public function getNoteText(TransactionJournal $journal): ?string
{
$note = $this->getNote($journal);
if (is_null($note)) {
return '';
return null;
}
return $note->text;