src/Adapter/YandexAdapter.php
public function getCover(Gallery $album)
    {
        $data = $this->getDataByType($album->getId(), 'album');
        if (isset($data['links']['cover'])) {
            $idImage = array_slice(explode('/', $data['links']['cover']), -2, 1);
            $data = $this->getDataByType($idImage[0]);
            $this->setListCover($data['img'], $album);
        }

        return $album;
    }
public function getCover(Gallery $album)
    {
        $data = $this->getDataByType($album->getId(), 'album');
        if (isset($data['links']['cover'])) {
            $idImage = array_slice(explode('/', $data['links']['cover']), -2, 1);
            $data = $this->getDataByType($idImage[0]);
            $this->setListCover($data['img'], $album);
        }

        return $album;
    }
{@inheritDoc}