@@ -44,13 +44,13 @@ discard block |
||
| 44 | 44 | /** |
| 45 | 45 | * @inheritdoc |
| 46 | 46 | */ |
| 47 | - public function createServerRequest(string $method, $uri, array $serverParams = []): ServerRequestInterface |
|
| 47 | + public function createServerRequest(string $method, $uri, array $serverParams = [ ]): ServerRequestInterface |
|
| 48 | 48 | { |
| 49 | 49 | return new Request( |
| 50 | 50 | $method, |
| 51 | 51 | is_string($uri) ? $this->createUri($uri) : $uri, |
| 52 | 52 | new Headers(), |
| 53 | - [], |
|
| 53 | + [ ], |
|
| 54 | 54 | $serverParams, |
| 55 | 55 | $this->createStream() |
| 56 | 56 | ); |
@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | $size = $stream->getSize(); |
| 106 | 106 | } |
| 107 | 107 | $meta = $stream->getMetadata(); |
| 108 | - $file = $meta['uri']; |
|
| 108 | + $file = $meta[ 'uri' ]; |
|
| 109 | 109 | if ($file === 'php://temp') { |
| 110 | 110 | // Slim needs an actual path to the file |
| 111 | 111 | $file = tempnam(sys_get_temp_dir(), 'factory-test'); |