Completed
Push — master ( 3c3b41...d36340 )
by Ori
01:42
created
src/Factory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -337,7 +337,7 @@  discard block
 block discarded – undo
337 337
         unlink($tempfile);
338 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
 
342 342
         return self::loadFileZipSource($tempfile);
343 343
     }
@@ -348,7 +348,7 @@  discard block
 block discarded – undo
348 348
         $tempdir = tempnam(sys_get_temp_dir(), 'datapackage-php');
349 349
         unlink($tempdir);
350 350
         mkdir($tempdir);
351
-        register_shutdown_function(function () use ($tempdir) {Utils::removeDir($tempdir); });
351
+        register_shutdown_function(function() use ($tempdir) {Utils::removeDir($tempdir); });
352 352
         $zippy->open($source)->extract($tempdir);
353 353
         if (!file_exists($tempdir.'/datapackage.json')) {
354 354
             throw new Exceptions\DatapackageInvalidSourceException('zip file must contain a datappackage.json file');
Please login to merge, or discard this patch.