Skip to content

Commit

Permalink
Remove unused transformer includes
Browse files Browse the repository at this point in the history
  • Loading branch information
nanaya committed Nov 14, 2023
1 parent 332badc commit 9f7d71b
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions app/Transformers/CountryTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,31 +9,11 @@

class CountryTransformer extends TransformerAbstract
{
protected array $availableIncludes = [
'display',
'ranking',
];

public function transform(Country $country)
{
return [
'code' => $country->acronym,
'name' => $country->name,
];
}

public function includeDisplay(Country $country)
{
return $this->primitive($country->display);
}

public function includeRanking(Country $country)
{
return $this->primitive([
'active_users' => $country->usercount,
'play_count' => $country->playcount,
'ranked_score' => $country->rankedscore,
'performance' => $country->pp,
]);
}
}

0 comments on commit 9f7d71b

Please sign in to comment.