mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-25 18:45:27 -06:00
Removed style checks disabling due to bug on php code sniffer
This commit is contained in:
@@ -2,8 +2,6 @@
|
|||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
// phpcs:disable
|
|
||||||
// TODO Enable coding style checks again once code sniffer 3.7 is released https://github.com/squizlabs/PHP_CodeSniffer/issues/3474
|
|
||||||
namespace Shlinkio\Shlink\Core\Config;
|
namespace Shlinkio\Shlink\Core\Config;
|
||||||
|
|
||||||
use function Shlinkio\Shlink\Config\env;
|
use function Shlinkio\Shlink\Config\env;
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ class TagRepository extends EntitySpecificationRepository implements TagReposito
|
|||||||
'COUNT(DISTINCT s.id) AS short_urls_count',
|
'COUNT(DISTINCT s.id) AS short_urls_count',
|
||||||
'COUNT(DISTINCT v.id) AS visits_count',
|
'COUNT(DISTINCT v.id) AS visits_count',
|
||||||
)
|
)
|
||||||
->from('(' . $subQb->getQuery()->getSQL() . ')', 't')
|
->from('(' . $subQb->getQuery()->getSQL() . ')', 't') // @phpstan-ignore-line
|
||||||
->leftJoin('t', 'short_urls_in_tags', 'st', $nativeQb->expr()->eq('t.id_0', 'st.tag_id'))
|
->leftJoin('t', 'short_urls_in_tags', 'st', $nativeQb->expr()->eq('t.id_0', 'st.tag_id'))
|
||||||
->leftJoin('st', 'short_urls', 's', $nativeQb->expr()->eq('s.id', 'st.short_url_id'))
|
->leftJoin('st', 'short_urls', 's', $nativeQb->expr()->eq('s.id', 'st.short_url_id'))
|
||||||
->leftJoin('st', 'visits', 'v', $nativeQb->expr()->eq('s.id', 'v.short_url_id'))
|
->leftJoin('st', 'visits', 'v', $nativeQb->expr()->eq('s.id', 'v.short_url_id'))
|
||||||
|
|||||||
@@ -272,6 +272,7 @@ class VisitRepository extends EntitySpecificationRepository implements VisitRepo
|
|||||||
$nativeQb = $this->getEntityManager()->getConnection()->createQueryBuilder();
|
$nativeQb = $this->getEntityManager()->getConnection()->createQueryBuilder();
|
||||||
$nativeQb->select('v.id AS visit_id', 'v.*', 'vl.*')
|
$nativeQb->select('v.id AS visit_id', 'v.*', 'vl.*')
|
||||||
->from('visits', 'v')
|
->from('visits', 'v')
|
||||||
|
// @phpstan-ignore-next-line
|
||||||
->join('v', '(' . $subQuery . ')', 'sq', $nativeQb->expr()->eq('sq.id_0', 'v.id'))
|
->join('v', '(' . $subQuery . ')', 'sq', $nativeQb->expr()->eq('sq.id_0', 'v.id'))
|
||||||
->leftJoin('v', 'visit_locations', 'vl', $nativeQb->expr()->eq('v.visit_location_id', 'vl.id'))
|
->leftJoin('v', 'visit_locations', 'vl', $nativeQb->expr()->eq('v.visit_location_id', 'vl.id'))
|
||||||
->orderBy('v.id', 'DESC');
|
->orderBy('v.id', 'DESC');
|
||||||
|
|||||||
@@ -2,8 +2,6 @@
|
|||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
// phpcs:disable
|
|
||||||
// TODO Enable coding style checks again once code sniffer 3.7 is released https://github.com/squizlabs/PHP_CodeSniffer/issues/3474
|
|
||||||
namespace Shlinkio\Shlink\Core\ShortUrl\Model;
|
namespace Shlinkio\Shlink\Core\ShortUrl\Model;
|
||||||
|
|
||||||
enum TagsMode: string
|
enum TagsMode: string
|
||||||
|
|||||||
@@ -2,8 +2,6 @@
|
|||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
// phpcs:disable
|
|
||||||
// TODO Enable coding style checks again once code sniffer 3.7 is released https://github.com/squizlabs/PHP_CodeSniffer/issues/3474
|
|
||||||
namespace Shlinkio\Shlink\Core\Visit\Model;
|
namespace Shlinkio\Shlink\Core\Visit\Model;
|
||||||
|
|
||||||
enum VisitType: string
|
enum VisitType: string
|
||||||
|
|||||||
Reference in New Issue
Block a user