@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | ]; |
| 49 | 49 | |
| 50 | 50 | foreach ($files as $fileKey => $fileValue) { |
| 51 | - if (! isset($fileValue['tmp_name'])) { |
|
| 51 | + if (!isset($fileValue['tmp_name'])) { |
|
| 52 | 52 | // @codeCoverageIgnoreStart |
| 53 | 53 | return []; |
| 54 | 54 | // @codeCoverageIgnoreEnd |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | |
| 139 | 139 | if (is_array($values)) { |
| 140 | 140 | |
| 141 | - foreach($values as $key => $value) { |
|
| 141 | + foreach ($values as $key => $value) { |
|
| 142 | 142 | |
| 143 | 143 | // Restore the keys back to the original ones. |
| 144 | 144 | $key = rtrim($key, '_'); |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | string $clientMediaType = null |
| 36 | 36 | ): UploadedFileInterface |
| 37 | 37 | { |
| 38 | - if (! $stream->isReadable()) { |
|
| 38 | + if (!$stream->isReadable()) { |
|
| 39 | 39 | throw new InvalidArgumentException( |
| 40 | 40 | 'File is not readable.' |
| 41 | 41 | ); |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | $filesParams = $_FILES ?? []; |
| 67 | 67 | $uploadedFiles = []; |
| 68 | 68 | |
| 69 | - if (! empty($filesParams)) { |
|
| 69 | + if (!empty($filesParams)) { |
|
| 70 | 70 | $uploadedFiles = UploadedFileHelper::uploadedFileSpecsConvert( |
| 71 | 71 | UploadedFileHelper::uploadedFileParse($filesParams) |
| 72 | 72 | ); |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | */ |
| 50 | 50 | public function createStreamFromFile(string $filename, string $mode = 'r'): StreamInterface |
| 51 | 51 | { |
| 52 | - if ($mode === '' || ! preg_match('/^[rwaxce]{1}[bt]{0,1}[+]{0,1}+$/', $mode)) { |
|
| 52 | + if ($mode === '' || !preg_match('/^[rwaxce]{1}[bt]{0,1}[+]{0,1}+$/', $mode)) { |
|
| 53 | 53 | throw new InvalidArgumentException( |
| 54 | 54 | sprintf( |
| 55 | 55 | 'Invalid file opening mode "%s"', |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | |
| 61 | 61 | $resource = @fopen($filename, $mode); |
| 62 | 62 | |
| 63 | - if (! is_resource($resource)) { |
|
| 63 | + if (!is_resource($resource)) { |
|
| 64 | 64 | throw new RuntimeException( |
| 65 | 65 | sprintf( |
| 66 | 66 | 'Unable to open file at "%s"', |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | */ |
| 78 | 78 | public function createStreamFromResource($resource): StreamInterface |
| 79 | 79 | { |
| 80 | - if (! is_resource($resource)) { |
|
| 80 | + if (!is_resource($resource)) { |
|
| 81 | 81 | $resource = @fopen('php://temp', 'r+'); |
| 82 | 82 | } |
| 83 | 83 | |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | */ |
| 115 | 115 | protected static function assertResource($resource) |
| 116 | 116 | { |
| 117 | - if (! is_resource($resource)) { |
|
| 117 | + if (!is_resource($resource)) { |
|
| 118 | 118 | throw new RuntimeException( |
| 119 | 119 | 'Unable to open "php://temp" resource.' |
| 120 | 120 | ); |