Combine open zip call with conditional
parent
bcf4e94e8a
commit
2ed573b22d
|
@ -126,9 +126,7 @@ class ArtifactRepository extends ArrayRepository implements ConfigurableReposito
|
||||||
private function getComposerInformation(\SplFileInfo $file)
|
private function getComposerInformation(\SplFileInfo $file)
|
||||||
{
|
{
|
||||||
$zip = new \ZipArchive();
|
$zip = new \ZipArchive();
|
||||||
$res = $zip->open($file->getPathname());
|
if ($zip->open($file->getPathname()) !== true) {
|
||||||
|
|
||||||
if ($res !== true) {
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue