File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -1639,8 +1639,9 @@ public function getUsersCampus(array $params): array
1639
1639
* return all the courses.
1640
1640
*
1641
1641
* @param int $campusId
1642
+ * @return array
1642
1643
*/
1643
- public function getCoursesCampus ($ campusId = null ): array
1644
+ public function getCoursesCampus (int $ campusId = 0 ): array
1644
1645
{
1645
1646
return CourseManager::get_courses_list (
1646
1647
0 , //offset
@@ -1658,9 +1659,11 @@ public function getCoursesCampus($campusId = null): array
1658
1659
* Returns a list of sessions in the given URL. If no URL is provided, we assume we are not in a multi-URL setup and
1659
1660
* return all the sessions.
1660
1661
*
1661
- * @param int $campusId
1662
+ * @param int $campusId Optional
1663
+ * @return array
1664
+ * @throws Exception
1662
1665
*/
1663
- public function getSessionsCampus (int $ campusId = null ): array
1666
+ public function getSessionsCampus (int $ campusId = 0 ): array
1664
1667
{
1665
1668
self ::protectAdminEndpoint ();
1666
1669
You can’t perform that action at this time.
0 commit comments