@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | string $line_endings, |
110 | 110 | string $filename, |
111 | 111 | string $format, |
112 | - Collection|null $records = null |
|
112 | + Collection | null $records = null |
|
113 | 113 | ): ResponseInterface { |
114 | 114 | $access_level = self::ACCESS_LEVELS[$privacy]; |
115 | 115 | |
@@ -178,10 +178,10 @@ discard block |
||
178 | 178 | string $encoding = UTF8::NAME, |
179 | 179 | int $access_level = Auth::PRIV_HIDE, |
180 | 180 | string $line_endings = 'CRLF', |
181 | - Collection|null $records = null, |
|
182 | - FilesystemOperator|null $zip_filesystem = null, |
|
183 | - string|null $media_path = null, |
|
184 | - string|null $temp_zip_file = null |
|
181 | + Collection | null $records = null, |
|
182 | + FilesystemOperator | null $zip_filesystem = null, |
|
183 | + string | null $media_path = null, |
|
184 | + string | null $temp_zip_file = null |
|
185 | 185 | ) { |
186 | 186 | $stream = fopen('php://memory', 'wb+'); |
187 | 187 | |
@@ -228,9 +228,9 @@ discard block |
||
228 | 228 | |
229 | 229 | // Use PHP ZipArchive if available (way faster, and probably mandatory for shared servers that are not fully customizable regarding timeout). |
230 | 230 | // Fallback to Flysystem versatile solution if not (works everywhere). |
231 | - if($zip_filesystem !== null) { |
|
231 | + if ($zip_filesystem !== null) { |
|
232 | 232 | $zip = new ZipArchive; |
233 | - $php_zip = extension_loaded('zip') && $zip->open($temp_zip_file, ZipArchive::CREATE|ZIPARCHIVE::OVERWRITE); |
|
233 | + $php_zip = extension_loaded('zip') && $zip->open($temp_zip_file, ZipArchive::CREATE | ZIPARCHIVE::OVERWRITE); |
|
234 | 234 | } |
235 | 235 | |
236 | 236 | foreach ($data as $rows) { |