| @@ -41,11 +41,11 @@ | ||
| 41 | 41 | /** | 
| 42 | 42 | * @inheritdoc | 
| 43 | 43 | */ | 
| 44 | - public function createServerRequest(string $method, $uri, array $serverParams = []): ServerRequestInterface | |
| 44 | + public function createServerRequest(string $method, $uri, array $serverParams = [ ]): ServerRequestInterface | |
| 45 | 45 |      { | 
| 46 | 46 | return new ServerRequest( | 
| 47 | 47 | $serverParams, | 
| 48 | - [], | |
| 48 | + [ ], | |
| 49 | 49 | $uri, | 
| 50 | 50 | $method, | 
| 51 | 51 | $this->createStream() | 
| @@ -33,15 +33,15 @@ | ||
| 33 | 33 | */ | 
| 34 | 34 | public function createResponse(int $code = 200, string $reasonPhrase = ''): ResponseInterface | 
| 35 | 35 |      { | 
| 36 | - return new Response($code, [], null, '1.1', $reasonPhrase); | |
| 36 | + return new Response($code, [ ], null, '1.1', $reasonPhrase); | |
| 37 | 37 | } | 
| 38 | 38 | |
| 39 | 39 | /** | 
| 40 | 40 | * @inheritdoc | 
| 41 | 41 | */ | 
| 42 | - public function createServerRequest(string $method, $uri, array $serverParams = []): ServerRequestInterface | |
| 42 | + public function createServerRequest(string $method, $uri, array $serverParams = [ ]): ServerRequestInterface | |
| 43 | 43 |      { | 
| 44 | - return new ServerRequest($method, $uri, [], null, '1.1', $serverParams); | |
| 44 | + return new ServerRequest($method, $uri, [ ], null, '1.1', $serverParams); | |
| 45 | 45 | } | 
| 46 | 46 | |
| 47 | 47 | /** | 
| @@ -78,7 +78,7 @@ | ||
| 78 | 78 | /** | 
| 79 | 79 | * @inheritdoc | 
| 80 | 80 | */ | 
| 81 | - public function createServerRequest(string $method, $uri, array $serverParams = []): ServerRequestInterface | |
| 81 | + public function createServerRequest(string $method, $uri, array $serverParams = [ ]): ServerRequestInterface | |
| 82 | 82 |      { | 
| 83 | 83 | return $this->getFactory()->createServerRequest($method, $uri, $serverParams); | 
| 84 | 84 | } | 
| @@ -43,7 +43,7 @@ | ||
| 43 | 43 | /** | 
| 44 | 44 | * @inheritdoc | 
| 45 | 45 | */ | 
| 46 | - public function createServerRequest(string $method, $uri, array $serverParams = []): ServerRequestInterface | |
| 46 | + public function createServerRequest(string $method, $uri, array $serverParams = [ ]): ServerRequestInterface | |
| 47 | 47 |      { | 
| 48 | 48 | return $this->factory->createServerRequest($method, $uri, $serverParams); | 
| 49 | 49 | } | 
| @@ -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'); |