mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-25 18:45:27 -06:00
Removed unnecesary if statements
This commit is contained in:
@@ -132,9 +132,7 @@ class ShortUrlRepository extends EntitySpecificationRepository implements ShortU
|
||||
->andWhere($qb->expr()->in('t.name', $tags));
|
||||
}
|
||||
|
||||
if ($spec) {
|
||||
$this->applySpecification($qb, $spec, 's');
|
||||
}
|
||||
|
||||
return $qb;
|
||||
}
|
||||
@@ -198,9 +196,7 @@ class ShortUrlRepository extends EntitySpecificationRepository implements ShortU
|
||||
|
||||
$this->whereDomainIs($qb, $domain);
|
||||
|
||||
if ($spec !== null) {
|
||||
$this->applySpecification($qb, $spec, 's');
|
||||
}
|
||||
|
||||
return $qb;
|
||||
}
|
||||
|
||||
@@ -38,9 +38,7 @@ class TagRepository extends EntitySpecificationRepository implements TagReposito
|
||||
->groupBy('t')
|
||||
->orderBy('t.name', 'ASC');
|
||||
|
||||
if ($spec !== null) {
|
||||
$this->applySpecification($qb, $spec, 't');
|
||||
}
|
||||
|
||||
$query = $qb->getQuery();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user