@@ -356,7 +356,7 @@ discard block |
||
356 | 356 | unlink($tempfile); |
357 | 357 | $tempfile .= '.zip'; |
358 | 358 | stream_copy_to_stream(fopen($source, 'r'), fopen($tempfile, 'w')); |
359 | - register_shutdown_function(function () use ($tempfile) { |
|
359 | + register_shutdown_function(function() use ($tempfile) { |
|
360 | 360 | unlink($tempfile); |
361 | 361 | }); |
362 | 362 | |
@@ -377,7 +377,7 @@ discard block |
||
377 | 377 | $tempdir = tempnam(sys_get_temp_dir(), 'datapackage-php'); |
378 | 378 | unlink($tempdir); |
379 | 379 | mkdir($tempdir); |
380 | - register_shutdown_function(function () use ($tempdir) { |
|
380 | + register_shutdown_function(function() use ($tempdir) { |
|
381 | 381 | Utils::removeDir($tempdir); |
382 | 382 | }); |
383 | 383 | /* @noinspection PhpUnhandledExceptionInspection File existence is checked afterwards anyway */ |
@@ -204,7 +204,7 @@ |
||
204 | 204 | } |
205 | 205 | $packageCopy->saveDescriptor($files['datapackage.json']); |
206 | 206 | |
207 | - register_shutdown_function(function () use ($base) { |
|
207 | + register_shutdown_function(function() use ($base) { |
|
208 | 208 | Utils::removeDir($base); |
209 | 209 | }); |
210 | 210 | if ($zip->open($zip_filename, ZipArchive::CREATE | ZipArchive::OVERWRITE) === true) { |
@@ -192,7 +192,9 @@ |
||
192 | 192 | ]; |
193 | 193 | $ri = 0; |
194 | 194 | foreach ($packageCopy as $resource) { |
195 | - if ($resource->isRemote()) continue; |
|
195 | + if ($resource->isRemote()) { |
|
196 | + continue; |
|
197 | + } |
|
196 | 198 | |
197 | 199 | $resourceFiles = []; |
198 | 200 | $fileNames = $resource->save($base.'resource-'.$ri); |