Skip to content

Commit 755e381

Browse files
committed
Improve coding style and remove dead code
1 parent 343f4ad commit 755e381

File tree

4 files changed

+0
-6
lines changed

4 files changed

+0
-6
lines changed

src/Domain.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ final class Domain implements DomainName
2828
private const IDNA_2003 = 'IDNA_2003';
2929
private const IDNA_2008 = 'IDNA_2008';
3030
private const REGEXP_IDN_PATTERN = '/[^\x20-\x7f]/';
31-
3231
// Note that unreserved is purposely missing . as it is used to separate labels.
3332
private const REGEXP_REGISTERED_NAME = '/(?(DEFINE)
3433
(?<unreserved>[a-z0-9_~\-])
@@ -37,7 +36,6 @@ final class Domain implements DomainName
3736
(?<reg_name>(?:(?&unreserved)|(?&sub_delims)|(?&encoded)){1,63})
3837
)
3938
^(?:(?&reg_name)\.){0,126}(?&reg_name)\.?$/ix';
40-
4139
private const REGEXP_URI_DELIMITERS = '/[:\/?#\[\]@ ]/';
4240

4341
/** @var array<int, string> */

src/Idna.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
final class Idna
2222
{
2323
private const REGEXP_IDNA_PATTERN = '/[^\x20-\x7f]/';
24-
2524
/**
2625
* IDNA options.
2726
*/
@@ -33,7 +32,6 @@ final class Idna
3332
public const IDNA_NONTRANSITIONAL_TO_ASCII = 0x10;
3433
public const IDNA_NONTRANSITIONAL_TO_UNICODE = 0x20;
3534
public const IDNA_CHECK_CONTEXTO = 0x40;
36-
3735
/**
3836
* IDNA errors.
3937
*/

src/Storage/TimeToLiveTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use DateInterval;
88
use DateTimeImmutable;
99
use DateTimeZone;
10-
use mysql_xdevapi\CollectionModify;
1110
use PHPUnit\Framework\TestCase;
1211
use Stringable;
1312

src/Storage/TopLevelDomainListStorageFactory.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?php
22

3-
43
declare(strict_types=1);
54

65
namespace Pdp\Storage;

0 commit comments

Comments
 (0)