Skip to content

Commit

Permalink
Fix pervious merge
Browse files Browse the repository at this point in the history
  • Loading branch information
sadortun committed May 6, 2020
1 parent 12fbf4d commit 0ee78cf
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions src/Service/Proxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,38 +60,6 @@ public function providerData(string $package, int $expireTime = self::PACKAGES_E

return $this->metadataProvider->fromUrl($this->getUrl($providerPath->get()));
}
/**
* @return Option<array<mixed>>
*/
public function providerDataV2(string $package, int $expireTime = self::PACKAGES_EXPIRE_TIME): Option
{
if (!($fromPath = $this->metadataProvider->fromPath($package, $this->url, $expireTime))->isEmpty()) {
return $fromPath;
}

$providerPath = $this->getProviderPathV2($package);
if ($providerPath->isEmpty()) {
return Option::none();
}

return $this->metadataProvider->fromUrl($this->getUrl($providerPath->get()));
}
/**
* @return Option<array<mixed>>
*/
public function providerDataV2(string $package, int $expireTime = self::PACKAGES_EXPIRE_TIME): Option
{
if (!($fromPath = $this->metadataProvider->fromPath($package, $this->url, $expireTime))->isEmpty()) {
return $fromPath;
}

$providerPath = $this->getProviderPathV2($package);
if ($providerPath->isEmpty()) {
return Option::none();
}

return $this->metadataProvider->fromUrl($this->getUrl($providerPath->get()));
}

/**
* @return GenericList<string>
Expand Down

0 comments on commit 0ee78cf

Please sign in to comment.