Completed
Pull Request — 1.11.x (#1359)
by José
193:39 queued 155:02
created
src/Chamilo/ThemeBundle/Theme/ThemeManager.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -52,6 +52,10 @@
 block discarded – undo
52 52
 
53 53
     }
54 54
 
55
+    /**
56
+     * @param string $id
57
+     * @param string $src
58
+     */
55 59
     public function registerStyle($id, $src, $deps = array()) {
56 60
         if(!isset($this->stylesheets[$id])) {
57 61
             $this->stylesheets[$id] = array(
Please login to merge, or discard this patch.
main/inc/lib/display.lib.php 1 patch
Doc Comments   +26 added lines, -17 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     }
33 33
 
34 34
     /**
35
-     * @return array
35
+     * @return string[]
36 36
      */
37 37
     public static function toolList()
38 38
     {
@@ -290,7 +290,6 @@  discard block
 block discarded – undo
290 290
      * 					'page_nr' = The page to display
291 291
      * 					'hide_navigation' =  true to hide the navigation
292 292
      * @param array $query_vars Additional variables to add in the query-string
293
-     * @param array $form actions Additional variables to add in the query-string
294 293
      * @param mixed An array with bool values to know which columns show.
295 294
      * i.e: $visibility_options= array(true, false) we will only show the first column
296 295
      * 				Can be also only a bool value. TRUE: show all columns, FALSE: show nothing
@@ -331,7 +330,6 @@  discard block
 block discarded – undo
331 330
      * 					'page_nr' = The page to display
332 331
      * 					'hide_navigation' =  true to hide the navigation
333 332
      * @param array $query_vars Additional variables to add in the query-string
334
-     * @param array $form actions Additional variables to add in the query-string
335 333
      * @param mixed An array with bool values to know which columns show. i.e:
336 334
      *  $visibility_options= array(true, false) we will only show the first column
337 335
      * 	Can be also only a bool value. TRUE: show all columns, FALSE: show nothing
@@ -388,10 +386,11 @@  discard block
 block discarded – undo
388 386
      * 					'per_page' = number of items to show per page
389 387
      * 					'page_nr' = The page to display
390 388
      * @param array $query_vars Additional variables to add in the query-string
391
-     * @param array $column_show Array of binaries 1= show columns 0. hide a column
389
+     * @param integer[] $column_show Array of binaries 1= show columns 0. hide a column
392 390
      * @param array $column_order An array of integers that let us decide how the columns are going to be sort.
393 391
      * 						      i.e:  $column_order=array('1''4','3','4'); The 2nd column will be order like the 4th column
394 392
      * @param array $form_actions Set optional forms actions
393
+     * @param string $table_name
395 394
      *
396 395
      * @author Julio Montoya
397 396
      */
@@ -444,7 +443,7 @@  discard block
 block discarded – undo
444 443
      * @param bool	$filter (true) or not (false)
445 444
      * @param bool $returnValue
446 445
      *
447
-     * @return void
446
+     * @return string|null
448 447
      */
449 448
     public static function display_normal_message($message, $filter = true, $returnValue = false)
450 449
     {
@@ -474,7 +473,7 @@  discard block
 block discarded – undo
474 473
     /**
475 474
      * Displays an confirmation message. Use this if something has been done successfully
476 475
      * @param bool	Filter (true) or not (false)
477
-     * @return void
476
+     * @return string|null
478 477
      */
479 478
     public static function display_confirmation_message ($message, $filter = true, $returnValue = false)
480 479
     {
@@ -491,7 +490,7 @@  discard block
 block discarded – undo
491 490
      * @param string $message - include any additional html
492 491
      *                          tags if you need them
493 492
      * @param bool	Filter (true) or not (false)
494
-     * @return void
493
+     * @return string|null
495 494
      */
496 495
     public static function display_error_message ($message, $filter = true, $returnValue = false)
497 496
     {
@@ -681,6 +680,7 @@  discard block
 block discarded – undo
681 680
      * @param string   The alt text (probably a language variable)
682 681
      * @param array    additional attributes (for instance height, width, onclick, ...)
683 682
      * @param integer  The wanted width of the icon (to be looked for in the corresponding img/icons/ folder)
683
+     * @param string $image
684 684
      * @return void
685 685
     */
686 686
     public static function display_icon(
@@ -886,6 +886,7 @@  discard block
 block discarded – undo
886 886
     /**
887 887
      * Displays an HTML input tag
888 888
      *
889
+     * @param string $type
889 890
      */
890 891
     public static function input($type, $name, $value, $attributes = array())
891 892
     {
@@ -902,8 +903,8 @@  discard block
 block discarded – undo
902 903
     }
903 904
 
904 905
     /**
905
-     * @param $name
906
-     * @param $value
906
+     * @param string $name
907
+     * @param string $value
907 908
      * @param array $attributes
908 909
      * @return string
909 910
      */
@@ -918,6 +919,7 @@  discard block
 block discarded – undo
918 919
     /**
919 920
      * Displays an HTML select tag
920 921
      *
922
+     * @param string $blank_item_text
921 923
      */
922 924
     public static function select(
923 925
         $name,
@@ -984,8 +986,8 @@  discard block
 block discarded – undo
984 986
                         $( "#tabs" ).tabs();
985 987
                     });
986 988
                 </script>
987
-     * @param   array   $headers list of the tab titles
988
-     * @param   array   $items
989
+     * @param   string[]   $headers list of the tab titles
990
+     * @param   string[]   $items
989 991
      * @param   string  $id id of the container of the tab in the example "tabs"
990 992
      * @param   array   $attributes for the ul
991 993
      * @param array $ul_attributes
@@ -1039,7 +1041,7 @@  discard block
 block discarded – undo
1039 1041
 
1040 1042
     /**
1041 1043
      * @param $headers
1042
-     * @param null $selected
1044
+     * @param integer $selected
1043 1045
      *
1044 1046
      * @return string
1045 1047
      */
@@ -1077,6 +1079,7 @@  discard block
 block discarded – undo
1077 1079
      * As you can see both function use the same "my_grid_name" this is very important otherwise nothing will work
1078 1080
      *
1079 1081
      * @param   string  the div id, this value must be the same with the first parameter of Display::grid_js()
1082
+     * @param string $div_id
1080 1083
      * @return  string  html
1081 1084
      *
1082 1085
      */
@@ -1632,6 +1635,8 @@  discard block
 block discarded – undo
1632 1635
      * @param  string  url that will be added (for jquery see hot_courses.tpl)
1633 1636
 	 * @param	string	point info array see function CourseManager::get_course_ranking()
1634 1637
 	 * @param	bool	add a div wrapper
1638
+	 * @param string $id
1639
+	 * @param string $url
1635 1640
 	 * @todo	use     templates
1636 1641
      **/
1637 1642
     public static function return_rating_system($id, $url, $point_info = array(), $add_div_wrapper = true)
@@ -1727,6 +1732,9 @@  discard block
 block discarded – undo
1727 1732
         return '<'.$size.'>'.Security::remove_XSS($title).'</'.$size.'>';
1728 1733
     }
1729 1734
 
1735
+    /**
1736
+     * @param string $title
1737
+     */
1730 1738
     public static function page_subheader2($title, $second_title = null)
1731 1739
     {
1732 1740
         return self::page_header($title, $second_title, 'h4');
@@ -1957,6 +1965,7 @@  discard block
 block discarded – undo
1957 1965
 
1958 1966
     /**
1959 1967
      * @todo use twig
1968
+     * @param string $title
1960 1969
      */
1961 1970
     public static function group_button($title, $elements)
1962 1971
     {
@@ -2174,9 +2183,9 @@  discard block
 block discarded – undo
2174 2183
 
2175 2184
     /**
2176 2185
      * @param int $id
2177
-     * @param array $content
2186
+     * @param string[] $content
2178 2187
      * @param int $col
2179
-     * @param bool|true $right
2188
+     * @param boolean $right
2180 2189
      * @return string
2181 2190
      */
2182 2191
     public static function toolbarAction($id, $content = array(), $col = 2, $right = true)
@@ -2258,10 +2267,10 @@  discard block
 block discarded – undo
2258 2267
     /**
2259 2268
      * @param string $title
2260 2269
      * @param string $content
2261
-     * @param null $id
2270
+     * @param string $id
2262 2271
      * @param array $params
2263
-     * @param null $idAccordion
2264
-     * @param null $idCollapse
2272
+     * @param string $idAccordion
2273
+     * @param string $idCollapse
2265 2274
      * @param bool|true $open
2266 2275
      * @param bool|false $fullClickable
2267 2276
      * @return null|string
Please login to merge, or discard this patch.
main/inc/lib/career.lib.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
 
85 85
     /**
86 86
      * Available driver list.
87
-     * @return array
87
+     * @return string[]
88 88
      */
89 89
     private function getDefaultDriverList()
90 90
     {
Please login to merge, or discard this patch.
main/inc/lib/course_category.lib.php 1 patch
Doc Comments   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      * @param string $canHaveCourses
104 104
      * @param int $parent_id
105 105
      *
106
-     * @return bool
106
+     * @return false|string
107 107
      */
108 108
     public static function addNode($code, $name, $canHaveCourses, $parent_id)
109 109
     {
@@ -297,8 +297,7 @@  discard block
 block discarded – undo
297 297
     /**
298 298
      * Counts the number of children categories a category has
299 299
      * @param int $categoryId The ID of the category of which we want to count the children
300
-     * @param int $count The number of subcategories we counted this far
301
-     * @return mixed The number of subcategories this category has
300
+     * @return integer The number of subcategories this category has
302 301
      */
303 302
     public static function courseCategoryChildrenCount($categoryId)
304 303
     {
@@ -476,7 +475,7 @@  discard block
 block discarded – undo
476 475
     /**
477 476
      * @param int $id
478 477
      *
479
-     * @return bool
478
+     * @return boolean|null
480 479
      */
481 480
     public static function addToUrl($id)
482 481
     {
@@ -958,7 +957,7 @@  discard block
 block discarded – undo
958 957
      * Get Pagination HTML div
959 958
      * @param $pageCurrent
960 959
      * @param $pageLength
961
-     * @param $pageTotal
960
+     * @param integer $pageTotal
962 961
      * @return string
963 962
      */
964 963
     public static function getCatalogPagination($pageCurrent, $pageLength, $pageTotal)
Please login to merge, or discard this patch.
plugin/vchamilo/cli/clilib.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
  * @param string $prompt text prompt, should include possible options
192 192
  * @param string $default default value when enter pressed
193 193
  * @param array $options list of allowed options, empty means any text
194
- * @param bool $casesensitive true if options are case sensitive
194
+ * @param bool $casesensitiveoptions true if options are case sensitive
195 195
  * @return string entered text
196 196
  */
197 197
 function cli_input($prompt, $default='', array $options=null, $casesensitiveoptions=false) {
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
 /**
289 289
  * Print or return section separator string
290 290
  * @param bool $return false means print, true return as string
291
- * @return mixed void or string
291
+ * @return string|null void or string
292 292
  */
293 293
 function cli_separator($return=false) {
294 294
     $separator = str_repeat('-', 79)."\n";
Please login to merge, or discard this patch.
src/Chamilo/FaqBundle/Entity/Category.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
      *
94 94
      * @param string $rank
95 95
      *
96
-     * @return Question
96
+     * @return Category
97 97
      */
98 98
     public function setRank($rank)
99 99
     {
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
     /**
202 202
      * Get questions
203 203
      *
204
-     * @return \Doctrine\Common\Collections\Collection
204
+     * @return Question[]
205 205
      */
206 206
     public function getQuestions()
207 207
     {
Please login to merge, or discard this patch.
src/Chamilo/ContactBundle/Controller/ContactController.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
      * @Route("/contact")
20 20
      *
21 21
      * @param Request $request
22
-     * @return mixed
22
+     * @return Response
23 23
      */
24 24
     public function indexAction(Request $request)
25 25
     {
Please login to merge, or discard this patch.
main/inc/lib/events.lib.php 1 patch
Doc Comments   +20 added lines, -10 removed lines patch added patch discarded remove patch
@@ -239,7 +239,7 @@  discard block
 block discarded – undo
239 239
     }
240 240
 
241 241
     /**
242
-     * @param doc_id id of document (id in mainDb.document table)
242
+     * @param doc_id string of document (id in mainDb.document table)
243 243
      * @author Sebastien Piraux <[email protected]>
244 244
      * @desc Record information for upload event
245 245
      * used in the works tool to record informations when
@@ -313,6 +313,9 @@  discard block
 block discarded – undo
313 313
      * @param   int     session_id
314 314
      * @param   int     learnpath_id (id of the learnpath)
315 315
      * @param   int     learnpath_item_id (id of the learnpath_item)
316
+     * @param integer $score
317
+     * @param integer $weighting
318
+     * @param integer $session_id
316 319
      *
317 320
      * @author Sebastien Piraux <[email protected]>
318 321
      * @author Julio Montoya Armas <[email protected]> Reworked 2010
@@ -414,7 +417,9 @@  discard block
 block discarded – undo
414 417
      * @param	integer	Session ID (from the session table). Default value of null means "get from context".
415 418
      * @param	integer	Learnpath ID (from c_lp table). Default value of null means "get from context".
416 419
      * @param	integer	Learnpath item ID (from the c_lp_item table). Default value of null means "get from context".
417
-     * @return	boolean	Result of the insert query
420
+     * @param integer $exe_id
421
+     * @param integer $position
422
+     * @return	false|string	Result of the insert query
418 423
      */
419 424
     public static function saveQuestionAttempt(
420 425
         $score,
@@ -581,6 +586,7 @@  discard block
 block discarded – undo
581 586
      * @param	int		Whether this answer is correct (1) or not (0)
582 587
      * @param	string	Coordinates of this point (e.g. 123;324)
583 588
      * @param	bool update results?
589
+     * @param integer $exe_id
584 590
      * @return	boolean	Result of the insert query
585 591
      * @uses Course code and user_id from global scope $_cid and $_user
586 592
      */
@@ -720,7 +726,6 @@  discard block
 block discarded – undo
720 726
     /**
721 727
      * Get every email stored in the database
722 728
      *
723
-     * @param int $etId
724 729
      * @return type
725 730
      * @assert () !== false
726 731
      */
@@ -788,11 +793,11 @@  discard block
 block discarded – undo
788 793
     /**
789 794
      * Save the new message for one event and for one language
790 795
      *
791
-     * @param string $eventName
796
+     * @param string $event_name
792 797
      * @param array $users
793 798
      * @param string $message
794 799
      * @param string $subject
795
-     * @param string $eventMessageLanguage
800
+     * @param string $event_message_language
796 801
      * @param int $activated
797 802
      */
798 803
     public static function save_event_type_message($event_name, $users, $message, $subject, $event_message_language, $activated)
@@ -926,10 +931,10 @@  discard block
 block discarded – undo
926 931
     }
927 932
 
928 933
     /**
929
-     * @param $user_id
934
+     * @param integer $user_id
930 935
      * @param $exerciseId
931
-     * @param $lp_id
932
-     * @param $lp_item_id
936
+     * @param integer $lp_id
937
+     * @param integer $lp_item_id
933 938
      * @return int
934 939
      */
935 940
     public static function get_attempt_count_not_finished($user_id, $exerciseId, $lp_id, $lp_item_id)
@@ -1106,6 +1111,7 @@  discard block
 block discarded – undo
1106 1111
      * @param   int     exercise id
1107 1112
      * @param   int $courseId
1108 1113
      * @param   int     session id
1114
+     * @param integer $user_id
1109 1115
      * @return  array   with the results
1110 1116
      *
1111 1117
      */
@@ -1201,6 +1207,7 @@  discard block
 block discarded – undo
1201 1207
      * @param   int     exercise id
1202 1208
      * @param   int  $courseId
1203 1209
      * @param   int     session id
1210
+     * @param integer $user_id
1204 1211
      * @return  array   with the results
1205 1212
      *
1206 1213
      */
@@ -1241,6 +1248,7 @@  discard block
 block discarded – undo
1241 1248
      * @param   int     exercise id
1242 1249
      * @param   string  course code
1243 1250
      * @param   int     session id
1251
+     * @param integer $exe_id
1244 1252
      * @return  array   with the results
1245 1253
      *
1246 1254
      */
@@ -1290,6 +1298,8 @@  discard block
 block discarded – undo
1290 1298
      * @param   int     lp id
1291 1299
      * @param   int     lp item id
1292 1300
      * @param   string 	order asc or desc
1301
+     * @param integer $courseId
1302
+     * @param string $order
1293 1303
      * @return  array   with the results
1294 1304
      *
1295 1305
      */
@@ -1349,7 +1359,7 @@  discard block
 block discarded – undo
1349 1359
      * @param   int     exercise id
1350 1360
      * @param   int     $courseId
1351 1361
      * @param   int     session id
1352
-     * @return  array   with the results
1362
+     * @return  string   with the results
1353 1363
      *
1354 1364
      */
1355 1365
     public static function count_exercise_attempts_by_user($user_id, $exercise_id, $courseId, $session_id = 0)
@@ -1525,7 +1535,7 @@  discard block
 block discarded – undo
1525 1535
      * @param   int     exercise id
1526 1536
      * @param   int   course id
1527 1537
      * @param   int     session id
1528
-     * @return  array   with the results
1538
+     * @return  integer   with the results
1529 1539
      *
1530 1540
      */
1531 1541
     public static function get_count_exercises_attempted_by_course($courseId, $session_id = 0)
Please login to merge, or discard this patch.
plugin/vchamilo/views/editinstance_form.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -13,9 +13,9 @@  discard block
 block discarded – undo
13 13
 
14 14
     /**
15 15
      * ChamiloForm constructor.
16
-     * @param $mode
17
-     * @param $returnurl
18
-     * @param $cancelurl
16
+     * @param string $mode
17
+     * @param string $returnurl
18
+     * @param string $cancelurl
19 19
      * @param $customdata
20 20
      */
21 21
     public function __construct($mode, $returnurl, $cancelurl, $customdata = [])
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
      * Check that form data is valid.
138 138
      * You should almost always use this, rather than {@see validate_defined_fields}
139 139
      *
140
-     * @return bool true if form data valid
140
+     * @return boolean|null true if form data valid
141 141
      */
142 142
     public function is_validated()
143 143
     {
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
      *                is NOT to validate the form when a no submit button has been pressed.
167 167
      *                pass true here to override this behaviour
168 168
      *
169
-     * @return bool true if form data valid
169
+     * @return boolean|null true if form data valid
170 170
      */
171 171
     public function validate_defined_fields($validateonnosubmit=false)
172 172
     {
Please login to merge, or discard this patch.