Version 5.1 - All the GraphQL #32

Closed
timw4mail wants to merge 1160 commits from develop into master
2 changed files with 8 additions and 4 deletions
Showing only changes of commit 38cd9c74d9 - Show all commits

View File

@ -164,6 +164,10 @@ final class Kitsu {
];
}
usort($links, function ($a, $b) {
return $a['meta']['name'] <=> $b['meta']['name'];
});
return $links;
}

View File

@ -94,16 +94,16 @@ final class User extends BaseController {
/**
* Reorganize favorites data to be more useful
*
* @param array $rawfavorites
* @param array $rawFavorites
* @return array
*/
private function organizeFavorites(array $rawfavorites): array
private function organizeFavorites(array $rawFavorites): array
{
$output = [];
unset($rawfavorites['data']);
unset($rawFavorites['data']);
foreach ($rawfavorites as $item)
foreach ($rawFavorites as $item)
{
$rank = $item['attributes']['favRank'];
foreach ($item['relationships']['item'] as $key => $fav)