Code cleanup

This commit is contained in:
James Cole
2018-04-28 06:23:13 +02:00
parent 6f0e1c79ac
commit 13b78bdc20
218 changed files with 621 additions and 681 deletions

View File

@@ -47,7 +47,7 @@ trait JournalServiceTrait
$factory = app(TagFactory::class);
$factory->setUser($journal->user);
$set = [];
if (!is_array($data['tags'])) {
if (!\is_array($data['tags'])) {
return; // @codeCoverageIgnore
}
foreach ($data['tags'] as $string) {
@@ -81,7 +81,6 @@ trait JournalServiceTrait
$journal->bill_id = null;
$journal->save();
return;
}
/**
@@ -111,7 +110,7 @@ trait JournalServiceTrait
protected function storeNote(TransactionJournal $journal, ?string $notes): void
{
$notes = (string)$notes;
if (strlen($notes) > 0) {
if (\strlen($notes) > 0) {
$note = $journal->notes()->first();
if (null === $note) {
$note = new Note;
@@ -127,7 +126,6 @@ trait JournalServiceTrait
$note->delete();
}
return;
}
}