Code cleanup

This commit is contained in:
James Cole
2018-04-02 15:10:40 +02:00
parent fa7ab45a40
commit a3c34e6b3c
151 changed files with 802 additions and 990 deletions

View File

@@ -86,10 +86,10 @@ class LinkController extends Controller
{
$this->repository->destroyLink($link);
Session::flash('success', strval(trans('firefly.deleted_link')));
Session::flash('success', (string)trans('firefly.deleted_link'));
Preferences::mark();
return redirect(strval(session('journal_links.delete.uri')));
return redirect((string)session('journal_links.delete.uri'));
}
/**
@@ -111,7 +111,7 @@ class LinkController extends Controller
$other = $this->journalRepository->find($linkInfo['transaction_journal_id']);
$alreadyLinked = $this->repository->findLink($journal, $other);
if($other->id === $journal->id) {
if ($other->id === $journal->id) {
Session::flash('error', trans('firefly.journals_link_to_self'));
return redirect(route('transactions.show', [$journal->id]));