Completed
Pull Request — master (#40)
by
unknown
01:44
created
src/Validators/BaseValidator.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace frictionlessdata\datapackage\Validators;
4 4
 
5
-use frictionlessdata\datapackage\Registry;
6 5
 use frictionlessdata\datapackage\Utils;
7 6
 use frictionlessdata\tableschema\SchemaValidator;
8 7
 use frictionlessdata\tableschema\SchemaValidationError;
Please login to merge, or discard this patch.
src/Factory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -342,7 +342,7 @@  discard block
 block discarded – undo
342 342
         unlink($tempfile);
343 343
         $tempfile .= '.zip';
344 344
         stream_copy_to_stream(fopen($source, 'r'), fopen($tempfile, 'w'));
345
-        register_shutdown_function(function () use ($tempfile) {unlink($tempfile); });
345
+        register_shutdown_function(function() use ($tempfile) {unlink($tempfile); });
346 346
 
347 347
         return self::loadFileZipSource($tempfile);
348 348
     }
@@ -353,7 +353,7 @@  discard block
 block discarded – undo
353 353
         $tempdir = tempnam(sys_get_temp_dir(), 'datapackage-php');
354 354
         unlink($tempdir);
355 355
         mkdir($tempdir);
356
-        register_shutdown_function(function () use ($tempdir) {Utils::removeDir($tempdir); });
356
+        register_shutdown_function(function() use ($tempdir) {Utils::removeDir($tempdir); });
357 357
         /* @noinspection PhpUnhandledExceptionInspection File existence is checked afterwards anyway */
358 358
         $zipper->make($source)->extractTo($tempdir);
359 359
         $zipper->close();
Please login to merge, or discard this patch.