Skip to content

Commit

Permalink
Fix TranslatorInterface definition
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurujai committed Sep 27, 2023
1 parent 4902d2f commit af1ddcb
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 13 deletions.
6 changes: 3 additions & 3 deletions Command/renewedVideosWithoutOwnerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
use Pumukit\ExpiredVideoBundle\Services\ExpiredVideoConfigurationService;
use Pumukit\SchemaBundle\Document\Role;
use Pumukit\SchemaBundle\Document\Tag;
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Helper\Table;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
use Symfony\Component\Console\Output\OutputInterface;

class renewedVideosWithoutOwnerCommand extends ContainerAwareCommand
class renewedVideosWithoutOwnerCommand extends Command
{
private $expiredVideoService;
private $expiredVideoConfigurationService;
Expand All @@ -35,7 +35,7 @@ protected function configure(): void
->addOption('user', null, InputArgument::OPTIONAL, 'username', 'allUsers')
->setHelp(
<<<'EOT'
Example:
php bin/console pumukit:expired:video:renewed:without:owner
Expand Down
4 changes: 1 addition & 3 deletions Exception/ExpiredVideoException.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@

namespace Pumukit\ExpiredVideoBundle\Exception;

class ExpiredVideoException extends \Exception
{
}
class ExpiredVideoException extends \Exception {}
4 changes: 1 addition & 3 deletions PumukitExpiredVideoBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,4 @@

use Symfony\Component\HttpKernel\Bundle\Bundle;

class PumukitExpiredVideoBundle extends Bundle
{
}
class PumukitExpiredVideoBundle extends Bundle {}
2 changes: 1 addition & 1 deletion Services/ExpiredVideoDeleteService.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
use Pumukit\SchemaBundle\Document\Track;
use Symfony\Component\Filesystem\Filesystem;
use Symfony\Component\Finder\Finder;
use Symfony\Component\Translation\TranslatorInterface;
use Symfony\Contracts\Translation\TranslatorInterface;

class ExpiredVideoDeleteService
{
Expand Down
2 changes: 1 addition & 1 deletion Services/ExpiredVideoNotificationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
use Pumukit\SchemaBundle\Document\Person;
use Pumukit\SchemaBundle\Document\PersonInterface;
use Pumukit\SchemaBundle\Services\PersonService;
use Symfony\Component\Translation\TranslatorInterface;
use Symfony\Contracts\Translation\TranslatorInterface;

class ExpiredVideoNotificationService
{
Expand Down
3 changes: 2 additions & 1 deletion Services/ExpiredVideoService.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ public function getExpiredVideos()
public function getExpiredVideosByDateAndRange(int $days, bool $range = true)
{
$qb = $this->mmobjRepo->createQueryBuilder()
->field($this->expiredVideoConfigurationService->getMultimediaObjectPropertyExpirationDateKey(true))->exists(true);
->field($this->expiredVideoConfigurationService->getMultimediaObjectPropertyExpirationDateKey(true))->exists(true)
;

if ($range) {
$now = new \DateTimeImmutable(date('Y-m-d H:i:s'));
Expand Down
2 changes: 1 addition & 1 deletion Services/ExpiredVideoUpdateService.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
use Pumukit\SchemaBundle\Document\Role;
use Pumukit\SchemaBundle\Document\Tag;
use Pumukit\SchemaBundle\Services\PersonService;
use Symfony\Component\Translation\TranslatorInterface;
use Symfony\Contracts\Translation\TranslatorInterface;

class ExpiredVideoUpdateService
{
Expand Down

0 comments on commit af1ddcb

Please sign in to comment.