mirror of
https://github.com/shlinkio/shlink.git
synced 2025-12-10 22:13:47 -06:00
Fix static analysis
This commit is contained in:
parent
13c1b12d84
commit
41c03a66e4
@ -16,7 +16,6 @@ use Shlinkio\Shlink\Core\ShortUrl\Model\ShortUrlWithDeps;
|
||||
use Shlinkio\Shlink\Core\ShortUrl\Model\TagsMode;
|
||||
use Shlinkio\Shlink\Core\ShortUrl\Persistence\ShortUrlsCountFiltering;
|
||||
use Shlinkio\Shlink\Core\ShortUrl\Persistence\ShortUrlsListFiltering;
|
||||
use Shlinkio\Shlink\Core\Tag\Entity\Tag;
|
||||
use Shlinkio\Shlink\Core\Visit\Entity\ShortUrlVisitsCount;
|
||||
|
||||
use function Shlinkio\Shlink\Core\ArrayUtils\map;
|
||||
@ -207,12 +206,17 @@ class ShortUrlListRepository extends EntitySpecificationRepository implements Sh
|
||||
QueryBuilder $qb,
|
||||
array $tags,
|
||||
string $shortUrlsAlias = 's',
|
||||
QueryBuilder|null $boundParamsQb = null
|
||||
QueryBuilder|null $boundParamsQb = null,
|
||||
): void {
|
||||
$boundParamsQb ??= $qb;
|
||||
foreach ($tags as $index => $tag) {
|
||||
$alias = 't_' . $index . $shortUrlsAlias;
|
||||
$qb->join($shortUrlsAlias . '.tags', $alias, Join::WITH, $alias . '.name = :tag' . $index . $shortUrlsAlias);
|
||||
$qb->join(
|
||||
$shortUrlsAlias . '.tags',
|
||||
$alias,
|
||||
Join::WITH,
|
||||
$alias . '.name = :tag' . $index . $shortUrlsAlias,
|
||||
);
|
||||
$boundParamsQb->setParameter('tag' . $index . $shortUrlsAlias, $tag);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user