Skip to content

Commit

Permalink
Minor: Format code
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelFQC committed Jun 27, 2024
1 parent 423fc09 commit b3d90e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/CoreBundle/Controller/CourseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')]
Expand Down
3 changes: 2 additions & 1 deletion src/CourseBundle/Repository/CLpItemRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit b3d90e3

Please sign in to comment.