Skip to content

Commit

Permalink
Fix missing function
Browse files Browse the repository at this point in the history
  • Loading branch information
junaidbhura committed Oct 30, 2020
1 parent c18cf1e commit 23ac96f
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions Installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,15 +116,13 @@ public function onPrePackageInstallOrUpdateInComposer1( PackageEvent $event ) {
$package = $operation->getPackage();
}

if ( $this->isPackageSupported( $package ) ) {
$download_url = $this->getDownloadUrl( $package );
if ( $download_url ) {
$this->downloadUrl = $download_url;

$dist_url = $package->getDistUrl();
$filtered_url = $this->filterDistUrl( $dist_url, $package );
$package->setDistUrl( $filtered_url );
}
$download_url = $this->getDownloadUrl( $package );
if ( ! empty( $download_url ) ) {
$this->downloadUrl = $download_url;

$dist_url = $package->getDistUrl();
$filtered_url = $this->filterDistUrl( $dist_url, $package );
$package->setDistUrl( $filtered_url );
}
}

Expand Down

0 comments on commit 23ac96f

Please sign in to comment.