mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-05-04 05:06:37 +00:00
Various code cleanup. [skip ci]
This commit is contained in:
@@ -126,7 +126,7 @@ class TagRepository implements TagRepositoryInterface
|
||||
public function findByTag(string $tag): Tag
|
||||
{
|
||||
$tags = $this->user->tags()->get();
|
||||
// @var Tag $tag
|
||||
/** @var Tag $databaseTag */
|
||||
foreach ($tags as $databaseTag) {
|
||||
if ($databaseTag->tag === $tag) {
|
||||
return $databaseTag;
|
||||
|
||||
Reference in New Issue
Block a user