mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-09 16:53:11 +08:00
Increased MIS to 83%
This commit is contained in:
@@ -103,7 +103,7 @@ class Visit extends AbstractEntity implements JsonSerializable
|
||||
}
|
||||
|
||||
try {
|
||||
return (string) IpAddress::fromString($address)->getAnonymizedCopy();
|
||||
return IpAddress::fromString($address)->getAnonymizedCopy()->__toString();
|
||||
} catch (InvalidArgumentException) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -17,6 +17,6 @@ class BelongsToApiKeyInlined implements Filter
|
||||
public function getFilter(QueryBuilder $qb, string $dqlAlias): string
|
||||
{
|
||||
// Parameters in this query need to be inlined, not bound, as we need to use it as sub-query later
|
||||
return (string) $qb->expr()->eq('s.authorApiKey', '\'' . $this->apiKey->getId() . '\'');
|
||||
return $qb->expr()->eq('s.authorApiKey', '\'' . $this->apiKey->getId() . '\'')->__toString();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,6 +16,6 @@ class BelongsToDomainInlined implements Filter
|
||||
public function getFilter(QueryBuilder $qb, string $context): string
|
||||
{
|
||||
// Parameters in this query need to be inlined, not bound, as we need to use it as sub-query later
|
||||
return (string) $qb->expr()->eq('s.domain', '\'' . $this->domainId . '\'');
|
||||
return $qb->expr()->eq('s.domain', '\'' . $this->domainId . '\'')->__toString();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user