← All changes
|
includes/sdk/google/psr/http-factory/src/StreamFactoryInterface.php
+4
-4
1.0.3
→
1.4.2
View file →
| @@ -1,7 +1,7 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -namespace Dudlewebs\WPMCS\Psr\Http\Message; | |
| 3 | +namespace Dudlewebs\WPMCS\GCP\Psr\Http\Message; | |
| 4 | 4 | |
| 5 | 5 | interface StreamFactoryInterface |
| 6 | 6 | { |
| 7 | 7 | /** |
| @@ -12,9 +12,9 @@ | ||
| 12 | 12 | * @param string $content String content with which to populate the stream. |
| 13 | 13 | * |
| 14 | 14 | * @return StreamInterface |
| 15 | 15 | */ |
| 16 | - public function createStream(string $content = ''): StreamInterface; | |
| 16 | + public function createStream(string $content = '') : StreamInterface; | |
| 17 | 17 | /** |
| 18 | 18 | * Create a stream from an existing file. |
| 19 | 19 | * |
| 20 | 20 | * The file MUST be opened using the given mode, which may be any mode |
| @@ -28,9 +28,9 @@ | ||
| 28 | 28 | * @return StreamInterface |
| 29 | 29 | * @throws \RuntimeException If the file cannot be opened. |
| 30 | 30 | * @throws \InvalidArgumentException If the mode is invalid. |
| 31 | 31 | */ |
| 32 | - public function createStreamFromFile(string $filename, string $mode = 'r'): StreamInterface; | |
| 32 | + public function createStreamFromFile(string $filename, string $mode = 'r') : StreamInterface; | |
| 33 | 33 | /** |
| 34 | 34 | * Create a new stream from an existing resource. |
| 35 | 35 | * |
| 36 | 36 | * The stream MUST be readable and may be writable. |
| @@ -38,6 +38,6 @@ | ||
| 38 | 38 | * @param resource $resource PHP resource to use as basis of stream. |
| 39 | 39 | * |
| 40 | 40 | * @return StreamInterface |
| 41 | 41 | */ |
| 42 | - public function createStreamFromResource($resource): StreamInterface; | |
| 42 | + public function createStreamFromResource($resource) : StreamInterface; | |
| 43 | 43 | } |