@@ -445,7 +445,10 @@ |
||
445 | 445 | } |
446 | 446 | } |
447 | 447 | ?> |
448 | - <input type="hidden" name="updatePath" value="<?php if (!$badUpdatePath) echo api_htmlentities($proposedUpdatePath, ENT_QUOTES); ?>" /> |
|
448 | + <input type="hidden" name="updatePath" value="<?php if (!$badUpdatePath) { |
|
449 | + echo api_htmlentities($proposedUpdatePath, ENT_QUOTES); |
|
450 | +} |
|
451 | +?>" /> |
|
449 | 452 | <input type="hidden" name="urlAppendPath" value="<?php echo api_htmlentities($urlAppendPath, ENT_QUOTES); ?>" /> |
450 | 453 | <input type="hidden" name="pathForm" value="<?php echo api_htmlentities($pathForm, ENT_QUOTES); ?>" /> |
451 | 454 | <input type="hidden" name="urlForm" value="<?php echo api_htmlentities($urlForm, ENT_QUOTES); ?>" /> |
@@ -261,7 +261,7 @@ |
||
261 | 261 | ?> |
262 | 262 | <option value="<?php echo $enreg['user_id']; ?>"><?php echo $enreg['username'].' - '.api_get_person_name($enreg['firstname'], $enreg['lastname']); ?></option> |
263 | 263 | <?php |
264 | - } |
|
264 | + } |
|
265 | 265 | unset($nosessionUsersList); |
266 | 266 | ?> |
267 | 267 | </select> |
@@ -55,7 +55,7 @@ |
||
55 | 55 | //$gradebook['name'] = $gradebook['name']; |
56 | 56 | //$gradebook_list[] = $gradebook; |
57 | 57 | } else { |
58 | - // $gradebook['name'] = $gradebook_list[$gradebook['parent_id']]['name'].' > '.$gradebook['name']; |
|
58 | + // $gradebook['name'] = $gradebook_list[$gradebook['parent_id']]['name'].' > '.$gradebook['name']; |
|
59 | 59 | //$gradebook_list[] = $gradebook; |
60 | 60 | } |
61 | 61 | } |
@@ -70,13 +70,13 @@ |
||
70 | 70 | <tr> |
71 | 71 | <td align="center"> |
72 | 72 | <?php |
73 | - echo Display::select( |
|
74 | - 'sessions[]', |
|
75 | - $sessionList, |
|
76 | - '', |
|
77 | - array('style'=>'width:100%', 'multiple'=>'multiple', 'id'=>'sessions', 'size'=>'15px'), |
|
78 | - false |
|
79 | - ); |
|
73 | + echo Display::select( |
|
74 | + 'sessions[]', |
|
75 | + $sessionList, |
|
76 | + '', |
|
77 | + array('style'=>'width:100%', 'multiple'=>'multiple', 'id'=>'sessions', 'size'=>'15px'), |
|
78 | + false |
|
79 | + ); |
|
80 | 80 | ?> |
81 | 81 | </td> |
82 | 82 | <td align="center"> |
@@ -57,6 +57,7 @@ discard block |
||
57 | 57 | * Add a value to the indexed item |
58 | 58 | * @param string Key |
59 | 59 | * @param string Value |
60 | + * @param string $key |
|
60 | 61 | * @return void |
61 | 62 | */ |
62 | 63 | function addValue($key, $value) { |
@@ -109,6 +110,7 @@ discard block |
||
109 | 110 | |
110 | 111 | /** |
111 | 112 | * Let add tool id term |
113 | + * @param string $tool_id |
|
112 | 114 | */ |
113 | 115 | public function addToolId($tool_id) |
114 | 116 | { |
@@ -59,7 +59,8 @@ discard block |
||
59 | 59 | * @param string Value |
60 | 60 | * @return void |
61 | 61 | */ |
62 | - function addValue($key, $value) { |
|
62 | + function addValue($key, $value) |
|
63 | + { |
|
63 | 64 | $this->data[$key] = $value; |
64 | 65 | } |
65 | 66 | |
@@ -68,7 +69,8 @@ discard block |
||
68 | 69 | * @param string Term |
69 | 70 | * @param string Flag (one character) |
70 | 71 | */ |
71 | - public function addTerm($term, $flag) { |
|
72 | + public function addTerm($term, $flag) |
|
73 | + { |
|
72 | 74 | global $charset; |
73 | 75 | if (strlen($flag) == 1) { |
74 | 76 | $this->terms[] = array('name' => api_convert_encoding(stripslashes($term), 'UTF-8', $charset), 'flag' => $flag); |
@@ -78,14 +80,16 @@ discard block |
||
78 | 80 | /** |
79 | 81 | * Class constructor. Just generates an empty 'data' array attribute |
80 | 82 | */ |
81 | - function __construct() { |
|
83 | + function __construct() |
|
84 | + { |
|
82 | 85 | $this->data = array(); |
83 | 86 | } |
84 | 87 | |
85 | 88 | /** |
86 | 89 | * Class desctructor. Unsets attributes. |
87 | 90 | */ |
88 | - function __destruct() { |
|
91 | + function __destruct() |
|
92 | + { |
|
89 | 93 | unset($this->data); |
90 | 94 | unset($this->terms); |
91 | 95 | } |
@@ -79,6 +79,7 @@ discard block |
||
79 | 79 | /** |
80 | 80 | * Available driver list. |
81 | 81 | * @param array |
82 | + * @param string[] $list |
|
82 | 83 | */ |
83 | 84 | public function setDriverList($list) |
84 | 85 | { |
@@ -87,7 +88,7 @@ discard block |
||
87 | 88 | |
88 | 89 | /** |
89 | 90 | * Available driver list. |
90 | - * @return array |
|
91 | + * @return string[] |
|
91 | 92 | */ |
92 | 93 | private function getDefaultDriverList() |
93 | 94 | { |
@@ -149,7 +149,7 @@ |
||
149 | 149 | } |
150 | 150 | |
151 | 151 | /** |
152 | - * @param $action |
|
152 | + * @param string $action |
|
153 | 153 | * @param MenuItemInterface $menu |
154 | 154 | * @return MenuItemInterface |
155 | 155 | */ |
@@ -38,9 +38,6 @@ discard block |
||
38 | 38 | * @Route("/", name="home") |
39 | 39 | * @Method({"GET"}) |
40 | 40 | * |
41 | - * @param string $type courses|sessions|mycoursecategories |
|
42 | - * @param string $filter for the userportal courses page. Only works when setting 'history' |
|
43 | - * @param int $page |
|
44 | 41 | * |
45 | 42 | * @return Response |
46 | 43 | */ |
@@ -137,7 +134,7 @@ discard block |
||
137 | 134 | * @Method({"GET"}) |
138 | 135 | * @param Request $request |
139 | 136 | * |
140 | - * @return Response |
|
137 | + * @return string |
|
141 | 138 | */ |
142 | 139 | public function toggleStudentViewAction(Request $request) |
143 | 140 | { |
@@ -392,7 +392,7 @@ discard block |
||
392 | 392 | } |
393 | 393 | |
394 | 394 | /** |
395 | - * @return ArrayCollection |
|
395 | + * @return CTool[] |
|
396 | 396 | */ |
397 | 397 | public function getTools() |
398 | 398 | { |
@@ -427,7 +427,7 @@ discard block |
||
427 | 427 | } |
428 | 428 | |
429 | 429 | /** |
430 | - * @param $urls |
|
430 | + * @param ArrayCollection $urls |
|
431 | 431 | */ |
432 | 432 | public function setUrls($urls) |
433 | 433 | { |
@@ -1244,7 +1244,7 @@ discard block |
||
1244 | 1244 | } |
1245 | 1245 | |
1246 | 1246 | /** |
1247 | - * @return array |
|
1247 | + * @return string[] |
|
1248 | 1248 | */ |
1249 | 1249 | public static function getStatusList() |
1250 | 1250 | { |