Skip to content

Commit 31be9e9

Browse files
committed
🚿
1 parent b4b45cf commit 31be9e9

6 files changed

+9
-24
lines changed

src/MimeTypeUtil.php

+2-4
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,8 @@
1313
namespace chillerlan\HTTP\Utils;
1414

1515
use finfo;
16-
use function pathinfo;
17-
use function strtolower;
18-
use const FILEINFO_MIME_TYPE;
19-
use const PATHINFO_EXTENSION;
16+
use function pathinfo, strtolower;
17+
use const FILEINFO_MIME_TYPE, PATHINFO_EXTENSION;
2018

2119
/**
2220
*

src/ServerUtil.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,11 @@
1212

1313
namespace chillerlan\HTTP\Utils;
1414

15-
use InvalidArgumentException;
1615
use Psr\Http\Message\{
1716
ServerRequestFactoryInterface, ServerRequestInterface, StreamFactoryInterface,
1817
UploadedFileFactoryInterface, UploadedFileInterface, UriFactoryInterface, UriInterface
1918
};
20-
19+
use InvalidArgumentException;
2120
use function array_keys, explode, function_exists, is_array, is_file, substr;
2221

2322
/**

src/StreamUtil.php

+3-14
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,10 @@
1212

1313
namespace chillerlan\HTTP\Utils;
1414

15-
use InvalidArgumentException;
1615
use Psr\Http\Message\StreamInterface;
17-
use RuntimeException;
18-
use Throwable;
19-
use function fopen;
20-
use function in_array;
21-
use function min;
22-
use function preg_match;
23-
use function restore_error_handler;
24-
use function set_error_handler;
25-
use function sprintf;
26-
use function str_contains;
27-
use function stream_get_contents;
28-
use function strlen;
29-
use function substr;
16+
use InvalidArgumentException, RuntimeException, Throwable;
17+
use function fopen, in_array, min, preg_match, restore_error_handler, set_error_handler,
18+
sprintf, str_contains, stream_get_contents, strlen, substr;
3019

3120
/**
3221
*

tests/QueryUtilTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
namespace chillerlan\HTTPTest\Utils;
1616

1717
use chillerlan\HTTP\Utils\QueryUtil;
18-
use InvalidArgumentException;
1918
use PHPUnit\Framework\Attributes\DataProvider;
2019
use PHPUnit\Framework\TestCase;
20+
use InvalidArgumentException;
2121
use const PHP_QUERY_RFC1738, PHP_QUERY_RFC3986;
2222

2323
/**

tests/ServerUtilTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414

1515
namespace chillerlan\HTTPTest\Utils;
1616

17-
use InvalidArgumentException;
1817
use PHPUnit\Framework\Attributes\DataProvider;
1918
use PHPUnit\Framework\TestCase;
19+
use InvalidArgumentException;
2020
use function microtime, time;
2121
use const UPLOAD_ERR_OK, UPLOAD_ERR_PARTIAL;
2222

tests/StreamUtilTest.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@
1313
namespace chillerlan\HTTPTest\Utils;
1414

1515
use chillerlan\HTTP\Utils\StreamUtil;
16-
use InvalidArgumentException;
1716
use PHPUnit\Framework\TestCase;
18-
use RuntimeException;
17+
use InvalidArgumentException, RuntimeException;
1918
use function fclose, fopen, stream_get_meta_data, strlen, substr;
2019

2120
/**

0 commit comments

Comments
 (0)