Skip to content

Commit

Permalink
Update src/Packagist/Api/Result/Factory.php
Browse files Browse the repository at this point in the history
Co-authored-by: Robbie Averill <robbie@averill.co.nz>
  • Loading branch information
chillu and robbieaverill committed Dec 1, 2020
1 parent c2d2264 commit 0837c9a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Packagist/Api/Result/Factory.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,9 @@ public function create(array $data)
if (isset($packageOrResult['name'])) {
// Used for /explore/popular.json
return $this->createSearchResults($data['packages']);
} else {
// Used for /p/<package>.json
return $this->createComposerPackagesResults($data['packages']);
}
// Used for /p/<package>.json
return $this->createComposerPackagesResults($data['packages']);
}
if (isset($data['package'])) {
return $this->createPackageResults($data['package']);
Expand Down

0 comments on commit 0837c9a

Please sign in to comment.