Skip to content

Commit 3d70779

Browse files
committed
cs fix
1 parent e969e0e commit 3d70779

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

tests/system/Helpers/URLHelper/MiscUrlTest.php

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -964,9 +964,7 @@ public function testUrlToMissingArgument(): void
964964
url_to('loginURL');
965965
}
966966

967-
/**
968-
* @dataProvider provideParseSubdomain
969-
*/
967+
#[DataProvider('provideParseSubdomain')]
970968
public function testParseSubdomain(?string $host, string $expected, bool $useRequest = false): void
971969
{
972970
if ($useRequest) {
@@ -989,15 +987,15 @@ public function testParseSubdomain(?string $host, string $expected, bool $useReq
989987
public static function provideParseSubdomain(): iterable
990988
{
991989
return [
992-
'standard subdomain' => ['api.example.com', 'api', false],
993-
'multi-level subdomain' => ['admin.api.example.com', 'admin.api', false],
994-
'no subdomain (domain only)' => ['example.com', '', false],
995-
'localhost' => ['localhost', '', false],
996-
'ipv4' => ['127.0.0.1', '', false],
997-
'ipv6' => ['::1', '', false],
998-
'two-part tld no subdomain' => ['example.co.uk', '', false],
990+
'standard subdomain' => ['api.example.com', 'api', false],
991+
'multi-level subdomain' => ['admin.api.example.com', 'admin.api', false],
992+
'no subdomain (domain only)' => ['example.com', '', false],
993+
'localhost' => ['localhost', '', false],
994+
'ipv4' => ['127.0.0.1', '', false],
995+
'ipv6' => ['::1', '', false],
996+
'two-part tld no subdomain' => ['example.co.uk', '', false],
999997
'two-part tld with subdomain' => ['api.example.co.uk', 'api', false],
1000-
'null uses request host' => [null, 'sub', true],
998+
'null uses request host' => [null, 'sub', true],
1001999
];
10021000
}
10031001
}

0 commit comments

Comments
 (0)