Minor: Format code

pull/5310/head
Angel Fernando Quiroz Campos 5 months ago
parent 423fc09692
commit b3d90e3e90
No known key found for this signature in database
GPG Key ID: B284841AE3E562CD
  1. 5
      src/CoreBundle/Controller/CourseController.php
  2. 3
      src/CourseBundle/Repository/CLpItemRepository.php

@ -540,11 +540,12 @@ class CourseController extends ToolBaseController
'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')]

@ -44,7 +44,8 @@ final class CLpItemRepository extends ServiceEntityRepository
->where('i.lp = :learningPathId')
->andWhere('i.itemType = :itemType')
->setParameter('learningPathId', $learningPathId)
->setParameter('itemType', $itemType);
->setParameter('itemType', $itemType)
;
$query = $qb->getQuery();

Loading…
Cancel
Save