@@ -335,9 +335,9 @@ discard block |
||
| 335 | 335 | { |
| 336 | 336 | $tempfile = tempnam(sys_get_temp_dir(), 'datapackage-php'); |
| 337 | 337 | unlink($tempfile); |
| 338 | - $tempfile.='.zip'; |
|
| 338 | + $tempfile .= '.zip'; |
|
| 339 | 339 | stream_copy_to_stream(fopen($source, 'r'), fopen($tempfile, 'w')); |
| 340 | - register_shutdown_function(function() use ($tempfile) {unlink($tempfile);}); |
|
| 340 | + register_shutdown_function(function() use ($tempfile) {unlink($tempfile); }); |
|
| 341 | 341 | return self::loadFileZipSource($tempfile); |
| 342 | 342 | } |
| 343 | 343 | |
@@ -347,7 +347,7 @@ discard block |
||
| 347 | 347 | $tempdir = tempnam(sys_get_temp_dir(), 'datapackage-php'); |
| 348 | 348 | unlink($tempdir); |
| 349 | 349 | mkdir($tempdir); |
| 350 | - register_shutdown_function(function() use ($tempdir) {Utils::removeDir($tempdir);}); |
|
| 350 | + register_shutdown_function(function() use ($tempdir) {Utils::removeDir($tempdir); }); |
|
| 351 | 351 | $zippy->open($source)->extract($tempdir); |
| 352 | 352 | if (!file_exists($tempdir."/datapackage.json")) { |
| 353 | 353 | throw new Exceptions\DatapackageInvalidSourceException("zip file must contain a datappackage.json file"); |
@@ -37,7 +37,7 @@ |
||
| 37 | 37 | return static::handlesProfile(Registry::getResourceValidationProfile($descriptor)); |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | - public function read($readOptions=null) |
|
| 40 | + public function read($readOptions = null) |
|
| 41 | 41 | { |
| 42 | 42 | $limit = ($readOptions && isset($readOptions["limit"])) ? $readOptions["limit"] : null; |
| 43 | 43 | $rows = []; |