Minor - format code

pull/3984/head
Julio 3 years ago
parent 0daa731edb
commit 099693c44b
  1. 2
      src/CoreBundle/Migrations/Schema/V200/Version20201010224040.php
  2. 1
      src/CoreBundle/Migrations/Schema/V200/Version20210205082253.php
  3. 2
      tests/CoreBundle/Repository/SysAnnouncementRepositoryTest.php

@ -27,7 +27,7 @@ final class Version20201010224040 extends AbstractMigrationChamilo
/** @var Connection $connection */
$connection = $em->getConnection();
$sql = "SELECT * FROM sys_announcement";
$sql = 'SELECT * FROM sys_announcement';
$result = $connection->executeQuery($sql);
$items = $result->fetchAllAssociative();

@ -8,7 +8,6 @@ use Chamilo\CoreBundle\Entity\User;
use Chamilo\CoreBundle\Entity\Usergroup;
use Chamilo\CoreBundle\Migrations\AbstractMigrationChamilo;
use Chamilo\CoreBundle\Repository\Node\IllustrationRepository;
use Chamilo\CoreBundle\Repository\Node\UserRepository;
use Doctrine\DBAL\Connection;
use Doctrine\DBAL\Schema\Schema;
use Symfony\Component\HttpFoundation\File\UploadedFile;

@ -69,6 +69,6 @@ class SysAnnouncementRepositoryTest extends WebTestCase
$repo = self::getContainer()->get(SysAnnouncementRepository::class);
$user = $this->getUser('admin');
$items = $repo->getAnnouncements($user, $this->getAccessUrl(), 'en');
$this->assertSame(1, count($items));
$this->assertSame(1, \count($items));
}
}

Loading…
Cancel
Save