| @@ -24,7 +24,7 @@ discard block | ||
| 24 | 24 |      { | 
| 25 | 25 |          $resource = fopen('php://temp', 'rb+'); | 
| 26 | 26 | |
| 27 | -        if (! \is_resource($resource)) { | |
| 27 | +        if (!\is_resource($resource)) { | |
| 28 | 28 |              throw new RuntimeException('Cannot create stream'); | 
| 29 | 29 | } | 
| 30 | 30 | |
| @@ -40,7 +40,7 @@ discard block | ||
| 40 | 40 |      { | 
| 41 | 41 | $resource = fopen($file, $mode); | 
| 42 | 42 | |
| 43 | -        if (! \is_resource($resource)) { | |
| 43 | +        if (!\is_resource($resource)) { | |
| 44 | 44 |              throw new RuntimeException('Cannot create stream'); | 
| 45 | 45 | } | 
| 46 | 46 | |
| @@ -27,7 +27,7 @@ | ||
| 27 | 27 | string $clientMediaType = null | 
| 28 | 28 |      ): UploadedFileInterface { | 
| 29 | 29 |          if ($size === null) { | 
| 30 | - $size = (int) $stream->getSize(); | |
| 30 | + $size = (int)$stream->getSize(); | |
| 31 | 31 | } | 
| 32 | 32 | |
| 33 | 33 | /** @var resource $stream */ | 
| @@ -37,7 +37,7 @@ discard block | ||
| 37 | 37 | private $originalServer = []; | 
| 38 | 38 | |
| 39 | 39 | /** @var string[] Valid values for HTTP protocol version */ | 
| 40 | - private static $allowedVersions = ['1.0', '1.1', '2',]; | |
| 40 | + private static $allowedVersions = ['1.0', '1.1', '2', ]; | |
| 41 | 41 | |
| 42 | 42 | /** | 
| 43 | 43 | * @param Worker $worker | 
| @@ -148,7 +148,7 @@ discard block | ||
| 148 | 148 |              if (\in_array($key, ['CONTENT_TYPE', 'CONTENT_LENGTH'])) { | 
| 149 | 149 |                  $server[$key] = implode(', ', $value); | 
| 150 | 150 |              } else { | 
| 151 | -                $server['HTTP_' . $key] = implode(', ', $value); | |
| 151 | +                $server['HTTP_'.$key] = implode(', ', $value); | |
| 152 | 152 | } | 
| 153 | 153 | } | 
| 154 | 154 | |
| @@ -69,7 +69,7 @@ | ||
| 69 | 69 | |
| 70 | 70 | $this->getWorker()->send( | 
| 71 | 71 | $body, | 
| 72 | - (string) json_encode(['status' => $status, 'headers' => $headers]) | |
| 72 | + (string)json_encode(['status' => $status, 'headers' => $headers]) | |
| 73 | 73 | ); | 
| 74 | 74 | } | 
| 75 | 75 | } |