diff --git a/src/CoreBundle/Controller/CourseController.php b/src/CoreBundle/Controller/CourseController.php index 4355f3f890f..d53e0a35a60 100644 --- a/src/CoreBundle/Controller/CourseController.php +++ b/src/CoreBundle/Controller/CourseController.php @@ -540,11 +540,12 @@ private function findIntroOfCourse(Course $course): ?CTool 'title' => 'course_homepage', 'session_id' => 0, ]) - ->getQuery(); + ->getQuery() + ; $results = $query->getResult(); - return count($results) > 0 ? $results[0] : null; + return \count($results) > 0 ? $results[0] : null; } #[Route('/{id}/getToolIntro', name: 'chamilo_core_course_gettoolintro')] diff --git a/src/CourseBundle/Repository/CLpItemRepository.php b/src/CourseBundle/Repository/CLpItemRepository.php index 3e613eed763..25c3b6d4dc1 100644 --- a/src/CourseBundle/Repository/CLpItemRepository.php +++ b/src/CourseBundle/Repository/CLpItemRepository.php @@ -44,7 +44,8 @@ public function findItemsByLearningPathAndType(int $learningPathId, string $item ->where('i.lp = :learningPathId') ->andWhere('i.itemType = :itemType') ->setParameter('learningPathId', $learningPathId) - ->setParameter('itemType', $itemType); + ->setParameter('itemType', $itemType) + ; $query = $qb->getQuery();