From 59ccc5fcb75e2ec44dde1f74abc253d853f43e4f Mon Sep 17 00:00:00 2001 From: Angel Fernando Quiroz Campos Date: Mon, 20 Sep 2021 18:40:43 -0500 Subject: [PATCH] Minor: ECS fixes --- src/CourseBundle/Repository/CCourseDescriptionRepository.php | 3 ++- .../Repository/CCourseDescriptionRepositoryTest.php | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/CourseBundle/Repository/CCourseDescriptionRepository.php b/src/CourseBundle/Repository/CCourseDescriptionRepository.php index c3d9c1eab4..d072fd5823 100644 --- a/src/CourseBundle/Repository/CCourseDescriptionRepository.php +++ b/src/CourseBundle/Repository/CCourseDescriptionRepository.php @@ -27,7 +27,8 @@ final class CCourseDescriptionRepository extends ResourceRepository ->innerJoin('d.resourceNode', 'node') ->innerJoin('node.resourceLinks', 'links') ->where('d.descriptionType = :type') - ->setParameter('type', $type); + ->setParameter('type', $type) + ; $this->addCourseSessionGroupQueryBuilder($course, $session, $group, $qb); diff --git a/tests/CourseBundle/Repository/CCourseDescriptionRepositoryTest.php b/tests/CourseBundle/Repository/CCourseDescriptionRepositoryTest.php index d01f41893e..fe3549326d 100644 --- a/tests/CourseBundle/Repository/CCourseDescriptionRepositoryTest.php +++ b/tests/CourseBundle/Repository/CCourseDescriptionRepositoryTest.php @@ -69,10 +69,10 @@ class CCourseDescriptionRepositoryTest extends AbstractApiTest $descriptionsInCourse = $repo->findByTypeInCourse(CCourseDescription::TYPE_DESCRIPTION, $course); - $this->assertSame(1, count($descriptionsInCourse)); + $this->assertSame(1, \count($descriptionsInCourse)); $descriptionsInSession = $repo->findByTypeInCourse(CCourseDescription::TYPE_DESCRIPTION, $course, $session); - $this->assertSame(1, count($descriptionsInSession)); + $this->assertSame(1, \count($descriptionsInSession)); } }