Skip to content

Commit

Permalink
fix(style): php-cs-fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurujai committed Mar 23, 2024
1 parent f5384b1 commit 5d17542
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Command/ImportVideosFromYouTubeChannel.php
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,9 @@ private function autocompleteMultimediaObjectMetadata(MultimediaObject $multimed
$youtubeInfo = $videoInfo->getItems()[0];

if (!$youtubeInfo) {
$this->youtubeErrors[] = 'YouTube info not found for video ID '. $multimediaObject->getId();
throw new \Exception('Snippet not found for MultimediaObject '. $multimediaObject->getId());
$this->youtubeErrors[] = 'YouTube info not found for video ID '.$multimediaObject->getId();

throw new \Exception('Snippet not found for MultimediaObject '.$multimediaObject->getId());
}

$text = $this->i18nService->generateI18nText($youtubeInfo->snippet->title);
Expand Down

0 comments on commit 5d17542

Please sign in to comment.