Various code clean up. [skip ci]

This commit is contained in:
James Cole
2016-08-26 08:21:31 +02:00
parent e7a0a5937c
commit d0c6afc3a9
56 changed files with 205 additions and 184 deletions

View File

@@ -144,7 +144,6 @@ class AccountRepository implements AccountRepositoryInterface
$ids = $query->get(['transaction_journals.id'])->pluck('id')->toArray();
// that should do it:
$sum = $this->user->transactions()
->whereIn('transaction_journal_id', $ids)

View File

@@ -42,13 +42,6 @@ interface TagRepositoryInterface
*/
public function destroy(Tag $tag): bool;
/**
* @param string $tag
*
* @return Tag
*/
public function findByTag(string $tag) : Tag;
/**
* @param int $tagId
*
@@ -56,6 +49,13 @@ interface TagRepositoryInterface
*/
public function find(int $tagId) : Tag;
/**
* @param string $tag
*
* @return Tag
*/
public function findByTag(string $tag) : Tag;
/**
* This method returns all the user's tags.
*