@@ -12,8 +12,10 @@ |
||
| 12 | 12 | |
| 13 | 13 | namespace chillerlan\HTTP\Psr7; |
| 14 | 14 | |
| 15 | +use Exception; |
|
| 16 | +use InvalidArgumentException; |
|
| 15 | 17 | use Psr\Http\Message\StreamInterface; |
| 16 | -use Exception, InvalidArgumentException, RuntimeException; |
|
| 18 | +use RuntimeException; |
|
| 17 | 19 | |
| 18 | 20 | final class Stream implements StreamInterface{ |
| 19 | 21 | |
@@ -14,7 +14,8 @@ |
||
| 14 | 14 | |
| 15 | 15 | use chillerlan\HTTP\{Psr17, Psr17\StreamFactory}; |
| 16 | 16 | use Psr\Http\Message\{StreamInterface, UploadedFileInterface}; |
| 17 | -use InvalidArgumentException, RuntimeException; |
|
| 17 | +use InvalidArgumentException; |
|
| 18 | +use RuntimeException; |
|
| 18 | 19 | |
| 19 | 20 | final class UploadedFile implements UploadedFileInterface{ |
| 20 | 21 | |
@@ -105,9 +105,9 @@ |
||
| 105 | 105 | $interfaceName = $name.'Interface'; |
| 106 | 106 | |
| 107 | 107 | $str = '<?php'.PHP_EOL.PHP_EOL |
| 108 | - .'namespace '.__NAMESPACE__.';'.PHP_EOL.PHP_EOL |
|
| 109 | - .'use \\'.$returntype.';'.PHP_EOL.PHP_EOL |
|
| 110 | - .'interface '.$interfaceName.'{'.PHP_EOL.PHP_EOL; |
|
| 108 | + .'namespace '.__NAMESPACE__.';'.PHP_EOL.PHP_EOL |
|
| 109 | + .'use \\'.$returntype.';'.PHP_EOL.PHP_EOL |
|
| 110 | + .'interface '.$interfaceName.'{'.PHP_EOL.PHP_EOL; |
|
| 111 | 111 | |
| 112 | 112 | $ep = $this->endpointMap->toArray(); |
| 113 | 113 | ksort($ep); |