@@ -2626,6 +2626,9 @@ |
||
2626 | 2626 | ) |
2627 | 2627 | ); |
2628 | 2628 | |
2629 | +/** |
|
2630 | + * @param string $type |
|
2631 | + */ |
|
2629 | 2632 | function WSHelperActionOnUsers($params, $type) { |
2630 | 2633 | if (!WSHelperVerifyKey($params)) { |
2631 | 2634 | return returnError(WS_ERROR_SECRET_KEY); |
@@ -342,6 +342,7 @@ |
||
342 | 342 | * @param string User id value |
343 | 343 | * @param int Set to 1 to subscribe, 0 to unsubscribe |
344 | 344 | * @param int Status (STUDENT or TEACHER) Used for subscription only |
345 | + * @param integer $state |
|
345 | 346 | * @return mixed True if subscription or unsubscription was successful, false otherwise |
346 | 347 | */ |
347 | 348 | protected function changeUserSubscription($course_id_field_name, $course_id_value, $user_id_field_name, $user_id_value, $state, $status = STUDENT) { |
@@ -327,7 +327,7 @@ |
||
327 | 327 | * @param array $arr1 first array |
328 | 328 | * @param array $arr2 second array |
329 | 329 | * |
330 | - * @return array difference between the two arrays |
|
330 | + * @return string difference between the two arrays |
|
331 | 331 | */ |
332 | 332 | function diff($arr1, $arr2) |
333 | 333 | { |
@@ -25,7 +25,7 @@ |
||
25 | 25 | * @Route("/", name="contact") |
26 | 26 | * |
27 | 27 | * @param Request $request |
28 | - * @return mixed |
|
28 | + * @return Response |
|
29 | 29 | */ |
30 | 30 | public function indexAction(Request $request) |
31 | 31 | { |
@@ -212,7 +212,7 @@ |
||
212 | 212 | |
213 | 213 | /** |
214 | 214 | * @param array $file |
215 | - * @return bool|string |
|
215 | + * @return string|false |
|
216 | 216 | */ |
217 | 217 | public static function importUploadedFile($file) |
218 | 218 | { |
@@ -37,7 +37,7 @@ |
||
37 | 37 | * course |
38 | 38 | * @param string $backupType 'full_backup' or 'select_items' |
39 | 39 | * |
40 | - * @return bool |
|
40 | + * @return false|null |
|
41 | 41 | * |
42 | 42 | * @assert (null) === false |
43 | 43 | */ |
@@ -18,7 +18,7 @@ |
||
18 | 18 | * Asset constructor. |
19 | 19 | * @param int $id |
20 | 20 | * @param int $path |
21 | - * @param $title |
|
21 | + * @param string $title |
|
22 | 22 | */ |
23 | 23 | public function __construct($id, $path, $title) |
24 | 24 | { |
@@ -272,6 +272,7 @@ |
||
272 | 272 | } |
273 | 273 | /** |
274 | 274 | * Get dummy titles, descriptions and texts |
275 | + * @param string $type |
|
275 | 276 | */ |
276 | 277 | function get_dummy_content($type) |
277 | 278 | { |
@@ -470,6 +470,7 @@ discard block |
||
470 | 470 | * |
471 | 471 | * Get link info |
472 | 472 | * @param int link id |
473 | + * @param integer $id |
|
473 | 474 | * @return array link info |
474 | 475 | * |
475 | 476 | **/ |
@@ -855,7 +856,7 @@ discard block |
||
855 | 856 | } |
856 | 857 | |
857 | 858 | /** |
858 | - * @param $categoryId |
|
859 | + * @param integer $categoryId |
|
859 | 860 | * @param $courseId |
860 | 861 | * @param $sessionId |
861 | 862 | * @param bool $withBaseContent |
@@ -902,8 +903,8 @@ discard block |
||
902 | 903 | * @author Julio Montoya |
903 | 904 | * |
904 | 905 | * @param $catid |
905 | - * @param $courseId |
|
906 | - * @param $session_id |
|
906 | + * @param integer $courseId |
|
907 | + * @param integer $session_id |
|
907 | 908 | * @return string |
908 | 909 | */ |
909 | 910 | public static function showLinksPerCategory($catid, $courseId, $session_id) |
@@ -1107,6 +1108,8 @@ discard block |
||
1107 | 1108 | /** |
1108 | 1109 | * Displays the edit, delete and move icons |
1109 | 1110 | * @param int Category ID |
1111 | + * @param integer $currentCategory |
|
1112 | + * @param integer $countCategories |
|
1110 | 1113 | * @return string |
1111 | 1114 | * |
1112 | 1115 | * @author Patrick Cool <[email protected]>, Ghent University |
@@ -1247,6 +1250,7 @@ discard block |
||
1247 | 1250 | /** |
1248 | 1251 | * CSV file import functions |
1249 | 1252 | * @author René Haentjens , Ghent University |
1253 | + * @param string $catname |
|
1250 | 1254 | */ |
1251 | 1255 | public static function get_cat($catname) |
1252 | 1256 | { |
@@ -1281,6 +1285,11 @@ discard block |
||
1281 | 1285 | /** |
1282 | 1286 | * CSV file import functions |
1283 | 1287 | * @author René Haentjens , Ghent University |
1288 | + * @param string $url |
|
1289 | + * @param string $title |
|
1290 | + * @param string $description |
|
1291 | + * @param string $on_homepage |
|
1292 | + * @param string $hidden |
|
1284 | 1293 | */ |
1285 | 1294 | public static function put_link($url, $cat, $title, $description, $on_homepage, $hidden) |
1286 | 1295 | { |