Skip to content

Commit

Permalink
update #34
Browse files Browse the repository at this point in the history
- Fix not able to grab categories that are camel case.
  • Loading branch information
oyeaussie committed Aug 24, 2024
1 parent 3b491e0 commit 5803e87
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public function getPackagesForCategory($category)
$packages = [];

foreach($this->packages as $package) {
if ($package['category'] === $category) {
if (strtolower($package['category']) === strtolower($category)) {
$packages[$package['id']] = $package;
}
}
Expand All @@ -177,7 +177,7 @@ public function getPackagesForAppType($appType)
$packages = [];

foreach($this->packages as $package) {
if ($package['app_type'] === $appType) {
if (strtolower($package['app_type']) === strtolower($appType)) {
$packages[$package['id']] = $package;
}
}
Expand Down

0 comments on commit 5803e87

Please sign in to comment.