Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit c8f3718

Browse files
committed
Optimize imports - removed unused and alphabetical order
1 parent a434c49 commit c8f3718

File tree

9 files changed

+5
-10
lines changed

9 files changed

+5
-10
lines changed

src/CallbackStream.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
namespace Zend\Diactoros;
1111

1212
use InvalidArgumentException;
13-
use RuntimeException;
1413
use Psr\Http\Message\StreamInterface;
14+
use RuntimeException;
1515

1616
use function array_key_exists;
1717

src/Response/SapiEmitter.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
namespace Zend\Diactoros\Response;
99

1010
use Psr\Http\Message\ResponseInterface;
11-
use RuntimeException;
1211

1312
class SapiEmitter implements EmitterInterface
1413
{

src/Response/SapiStreamEmitter.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
use function preg_match;
1414
use function strlen;
1515
use function substr;
16-
use RuntimeException;
17-
use Zend\Diactoros\RelativeStream;
1816

1917
class SapiStreamEmitter implements EmitterInterface
2018
{

src/Server.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
namespace Zend\Diactoros;
99

1010
use OutOfBoundsException;
11-
use Psr\Http\Message\ServerRequestInterface;
1211
use Psr\Http\Message\ResponseInterface;
12+
use Psr\Http\Message\ServerRequestInterface;
1313

1414
use function property_exists;
1515

src/Stream.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
namespace Zend\Diactoros;
99

1010
use InvalidArgumentException;
11-
use RuntimeException;
1211
use Psr\Http\Message\StreamInterface;
12+
use RuntimeException;
1313

1414
use function array_key_exists;
1515
use function fclose;

test/MessageTraitTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
use PHPUnit\Framework\TestCase;
1212
use Psr\Http\Message\MessageInterface;
1313
use Psr\Http\Message\StreamInterface;
14-
use ReflectionMethod;
1514
use Zend\Diactoros\Request;
1615

1716
use function count;

test/Response/SapiEmitterTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
namespace ZendTest\Diactoros\Response;
99

10-
use Zend\Diactoros\Response;
1110

1211
class SapiEmitterTest extends AbstractEmitterTest
1312
{

test/Response/SapiStreamEmitterTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
use Zend\Diactoros\CallbackStream;
1313
use Zend\Diactoros\Response;
1414
use Zend\Diactoros\Response\EmptyResponse;
15-
use Zend\Diactoros\Response\JsonResponse;
1615
use Zend\Diactoros\Response\HtmlResponse;
16+
use Zend\Diactoros\Response\JsonResponse;
1717
use Zend\Diactoros\Response\SapiStreamEmitter;
1818
use Zend\Diactoros\Response\TextResponse;
1919
use ZendTest\Diactoros\TestAsset\HeaderStack;

test/ServerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
namespace ZendTest\Diactoros;
99

1010
use OutOfBoundsException;
11-
use PHPUnit_Framework_MockObject_MockObject;
1211
use PHPUnit\Framework\TestCase;
12+
use PHPUnit_Framework_MockObject_MockObject;
1313
use Psr\Http\Message\ResponseInterface;
1414
use Psr\Http\Message\ServerRequestInterface;
1515
use Zend\Diactoros\Response;

0 commit comments

Comments
 (0)