@@ -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 */ |
@@ -215,14 +215,14 @@ |
||
| 215 | 215 | protected $basePath; |
| 216 | 216 | protected $skipValidations = false; |
| 217 | 217 | |
| 218 | - /** |
|
| 219 | - * called by the resources iterator for each iteration. |
|
| 220 | - * |
|
| 221 | - * @param object $descriptor |
|
| 222 | - * |
|
| 223 | - * @return \frictionlessdata\datapackage\Resources\BaseResource |
|
| 224 | - * @throws \frictionlessdata\datapackage\Exceptions\ResourceValidationFailedException |
|
| 225 | - */ |
|
| 218 | + /** |
|
| 219 | + * called by the resources iterator for each iteration. |
|
| 220 | + * |
|
| 221 | + * @param object $descriptor |
|
| 222 | + * |
|
| 223 | + * @return \frictionlessdata\datapackage\Resources\BaseResource |
|
| 224 | + * @throws \frictionlessdata\datapackage\Exceptions\ResourceValidationFailedException |
|
| 225 | + */ |
|
| 226 | 226 | protected function initResource($descriptor) |
| 227 | 227 | { |
| 228 | 228 | return Factory::resource($descriptor, $this->basePath, $this->skipValidations); |
@@ -197,7 +197,7 @@ |
||
| 197 | 197 | ++$ri; |
| 198 | 198 | } |
| 199 | 199 | $this->saveDescriptor($files['datapackage.json']); |
| 200 | - register_shutdown_function(function () use ($base) { |
|
| 200 | + register_shutdown_function(function() use ($base) { |
|
| 201 | 201 | Utils::removeDir($base); |
| 202 | 202 | }); |
| 203 | 203 | if ($zip->open($zip_filename, ZipArchive::CREATE | ZipArchive::OVERWRITE) === true) { |