Skip to content

Commit

Permalink
PHPCsFixer
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurujai committed Sep 21, 2023
1 parent e9fa6c8 commit 9f94f21
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
4 changes: 1 addition & 3 deletions Services/CaptionsDataValidationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@

namespace Pumukit\YoutubeBundle\Services;

class CaptionsDataValidationService extends CommonDataValidationService
{
}
class CaptionsDataValidationService extends CommonDataValidationService {}
6 changes: 2 additions & 4 deletions Services/NotificationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,7 @@ public function notificationMetadataErrorResult(array $result): bool
return $this->sendEmail2('upload', $result);
}

public function notificationPlaylistsErrorResult(array $result)
{
}
public function notificationPlaylistsErrorResult(array $result) {}

/*public function notificationOfUploadedVideoResults(array $uploadedVideos, array $failedVideos, array $errors): void
{
Expand Down Expand Up @@ -259,7 +257,7 @@ protected function buildStatusUpdateBody($cause = '', $succeed = []): string
} elseif ('duplicated' === $cause) {
if ($multimediaObject instanceof MultimediaObject) {
$body = $body.'<br/>YouTube has rejected the upload of the video: "'.$multimediaObject->getTitle($this->locale).'"</br>';
$body = $body.'because it has been published previously.<br/>';
$body .= 'because it has been published previously.<br/>';
}
if ($youtube instanceof Youtube) {
$body = $body.'<br/>'.$youtube->getLink().'<br/>';
Expand Down
2 changes: 1 addition & 1 deletion Services/VideoDataValidationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public function getTitleForYoutube(MultimediaObject $multimediaObject, int $limi
$title = substr($title, 0, strrpos($title, ' '));
}
if (strlen($multimediaObject->getTitle($this->locale)) > ($limit - 5)) {
$title = $title.'(...)';
$title .= '(...)';
}

return $title;
Expand Down

0 comments on commit 9f94f21

Please sign in to comment.