Various code cleanup. [skip ci]

This commit is contained in:
James Cole
2018-01-17 09:32:18 +01:00
parent ccf1a6c182
commit 3ccb791674
6 changed files with 17 additions and 11 deletions

View File

@@ -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;