src/Service/AlbumService.php
public function search(string $album, int $limit = 50, int $page = 1): array
    {
        $response = $this->client->unsignedCall('album.search', [
            'album' => $album,
            'limit' => $limit,
            'page'  => $page,
        ]);

        if (!isset($response['results']['albummatches']['album'])) {
            return [];
        }

        return ApiHelper::mapList(
            static function ($data) {
                return Album::fromApi($data);
            },
            $response['results']['albummatches']['album']
        );
    }
public function search(string $album, int $limit = 50, int $page = 1): array
    {
        $response = $this->client->unsignedCall('album.search', [
            'album' => $album,
            'limit' => $limit,
            'page'  => $page,
        ]);

        if (!isset($response['results']['albummatches']['album'])) {
            return [];
        }

        return ApiHelper::mapList(
            static function ($data) {
                return Album::fromApi($data);
            },
            $response['results']['albummatches']['album']
        );
    }
{@inheritdoc}