mirror of
https://github.com/shlinkio/shlink.git
synced 2026-08-01 09:07:54 -05:00
Remove codesniffer disable tags in code
This commit is contained in:
@@ -28,9 +28,7 @@ final class ShortUrlsParamsInput
|
||||
)]
|
||||
public bool $all = false;
|
||||
|
||||
// phpcs:disable PSR2.Classes.PropertyDeclaration.Multiple
|
||||
public int $itemsPerPage {
|
||||
// phpcs:disable PSR2.Classes.PropertyDeclaration.ScopeMissing
|
||||
get => $this->all ? Paginator::ALL_ITEMS : ShortUrlsParams::DEFAULT_ITEMS_PER_PAGE;
|
||||
}
|
||||
|
||||
@@ -56,9 +54,7 @@ final class ShortUrlsParamsInput
|
||||
#[Option('If --tag is provided, returns only short URLs including ALL of them')]
|
||||
public bool $tagsAll = false;
|
||||
|
||||
// phpcs:disable PSR2.Classes.PropertyDeclaration.Multiple
|
||||
public TagsMode $tagsMode {
|
||||
// phpcs:disable PSR2.Classes.PropertyDeclaration.ScopeMissing
|
||||
get => $this->tagsAll ? TagsMode::ALL : TagsMode::ANY;
|
||||
}
|
||||
|
||||
@@ -69,9 +65,7 @@ final class ShortUrlsParamsInput
|
||||
#[Option('If --exclude-tag is provided, returns only short URLs not including ANY of them')]
|
||||
public bool $excludeTagsAll = false;
|
||||
|
||||
// phpcs:disable PSR2.Classes.PropertyDeclaration.Multiple
|
||||
public TagsMode $excludeTagsMode {
|
||||
// phpcs:disable PSR2.Classes.PropertyDeclaration.ScopeMissing
|
||||
get => $this->excludeTagsAll ? TagsMode::ALL : TagsMode::ANY;
|
||||
}
|
||||
|
||||
|
||||
@@ -53,7 +53,6 @@ class GetDomainVisitsCommandTest extends TestCase
|
||||
$type = VisitType::VALID_SHORT_URL->value;
|
||||
|
||||
self::assertEquals(
|
||||
// phpcs:disable Generic.Files.LineLength
|
||||
<<<OUTPUT
|
||||
+---------------------------+---------------+------------+---------+---------+--------+--------+-------------+--------------+-----------------+
|
||||
| Date | Potential bot | User agent | Referer | Country | Region | City | Visited URL | Redirect URL | Type |
|
||||
@@ -62,7 +61,6 @@ class GetDomainVisitsCommandTest extends TestCase
|
||||
+---------------------------+---------------+------------+------- Page 1 of 1 --------+--------+-------------+--------------+-----------------+
|
||||
|
||||
OUTPUT,
|
||||
// phpcs:enable
|
||||
$output,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -123,7 +123,6 @@ class GetShortUrlVisitsCommandTest extends TestCase
|
||||
{
|
||||
yield 'regular' => [
|
||||
VisitsListFormat::FULL,
|
||||
// phpcs:disable Generic.Files.LineLength
|
||||
static fn (Chronos $date) => <<<OUTPUT
|
||||
+---------------------------+---------------+------------+---------+---------+--------+--------+-------------+--------------+-----------------+
|
||||
| Date | Potential bot | User agent | Referer | Country | Region | City | Visited URL | Redirect URL | Type |
|
||||
@@ -132,7 +131,6 @@ class GetShortUrlVisitsCommandTest extends TestCase
|
||||
+---------------------------+---------------+------------+------- Page 1 of 1 --------+--------+-------------+--------------+-----------------+
|
||||
|
||||
OUTPUT,
|
||||
// phpcs:enable
|
||||
];
|
||||
yield 'CSV' => [
|
||||
VisitsListFormat::CSV,
|
||||
|
||||
@@ -147,7 +147,6 @@ class ListShortUrlsCommandTest extends TestCase
|
||||
$shortCode = $shortUrl->getShortCode();
|
||||
$created = $shortUrl->dateCreated()->toAtomString();
|
||||
|
||||
// phpcs:disable Generic.Files.LineLength
|
||||
yield 'tags only' => [
|
||||
['--show-tags' => true],
|
||||
<<<OUTPUT
|
||||
@@ -214,8 +213,6 @@ class ListShortUrlsCommandTest extends TestCase
|
||||
OUTPUT,
|
||||
$shortUrl,
|
||||
];
|
||||
|
||||
// phpcs:enable
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -52,7 +52,6 @@ class GetTagVisitsCommandTest extends TestCase
|
||||
$type = VisitType::VALID_SHORT_URL->value;
|
||||
|
||||
self::assertEquals(
|
||||
// phpcs:disable Generic.Files.LineLength
|
||||
<<<OUTPUT
|
||||
+---------------------------+---------------+------------+---------+---------+--------+--------+-------------+--------------+-----------------+
|
||||
| Date | Potential bot | User agent | Referer | Country | Region | City | Visited URL | Redirect URL | Type |
|
||||
@@ -61,7 +60,6 @@ class GetTagVisitsCommandTest extends TestCase
|
||||
+---------------------------+---------------+------------+------- Page 1 of 1 --------+--------+-------------+--------------+-----------------+
|
||||
|
||||
OUTPUT,
|
||||
// phpcs:enable
|
||||
$output,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -51,7 +51,6 @@ class GetNonOrphanVisitsCommandTest extends TestCase
|
||||
$type = VisitType::VALID_SHORT_URL->value;
|
||||
|
||||
self::assertEquals(
|
||||
// phpcs:disable Generic.Files.LineLength
|
||||
<<<OUTPUT
|
||||
+---------------------------+---------------+------------+---------+---------+--------+--------+-------------+--------------+-----------------+
|
||||
| Date | Potential bot | User agent | Referer | Country | Region | City | Visited URL | Redirect URL | Type |
|
||||
@@ -60,7 +59,6 @@ class GetNonOrphanVisitsCommandTest extends TestCase
|
||||
+---------------------------+---------------+------------+------- Page 1 of 1 --------+--------+-------------+--------------+-----------------+
|
||||
|
||||
OUTPUT,
|
||||
// phpcs:enable
|
||||
$output,
|
||||
);
|
||||
}
|
||||
|
||||
@@ -56,7 +56,6 @@ class GetOrphanVisitsCommandTest extends TestCase
|
||||
$type = OrphanVisitType::BASE_URL->value;
|
||||
|
||||
self::assertEquals(
|
||||
// phpcs:disable Generic.Files.LineLength
|
||||
<<<OUTPUT
|
||||
+---------------------------+---------------+------------+---------+---------+--------+--------+-------------+--------------+----------+
|
||||
| Date | Potential bot | User agent | Referer | Country | Region | City | Visited URL | Redirect URL | Type |
|
||||
@@ -65,7 +64,6 @@ class GetOrphanVisitsCommandTest extends TestCase
|
||||
+---------------------------+---------------+------------+--- Page 1 of 1 ---+--------+--------+-------------+--------------+----------+
|
||||
|
||||
OUTPUT,
|
||||
// phpcs:enable
|
||||
$output,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user