Completed
Push — master ( 3c3b41...d36340 )
by Ori
01:42
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
@@ -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.