Completed
Pull Request — master (#48)
by
unknown
02:50
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
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -362,8 +362,7 @@
 block discarded – undo
362 362
         /* @noinspection PhpUnhandledExceptionInspection File existence is checked afterwards anyway */
363 363
         if (($zip->open($source) === TRUE) && ($zip->extractTo($tempdir) === TRUE)) {
364 364
             $zip->close();
365
-        }
366
-        else {
365
+        } else {
367 366
             throw new Exceptions\DatapackageInvalidSourceException('zip file could not be opened from source.');
368 367
         }
369 368
 
Please login to merge, or discard this patch.
src/Datapackages/BaseDatapackage.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -195,8 +195,7 @@
 block discarded – undo
195 195
             $zip->addFile($resource, $filename);
196 196
           }
197 197
           $zip->close();
198
-        }
199
-        else {
198
+        } else {
200 199
           throw new DatapackageInvalidSourceException('zip file could not be saved.');
201 200
         }
202 201
     }
Please login to merge, or discard this patch.