Completed
Push — 1.11.x ( 30c239...4463da )
by José
63:32 queued 32:15
created
main/inc/lib/display.lib.php 1 patch
Doc Comments   +26 added lines, -17 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     }
34 34
 
35 35
     /**
36
-     * @return array
36
+     * @return string[]
37 37
      */
38 38
     public static function toolList()
39 39
     {
@@ -293,7 +293,6 @@  discard block
 block discarded – undo
293 293
      * 					'page_nr' = The page to display
294 294
      * 					'hide_navigation' =  true to hide the navigation
295 295
      * @param array $query_vars Additional variables to add in the query-string
296
-     * @param array $form actions Additional variables to add in the query-string
297 296
      * @param mixed An array with bool values to know which columns show.
298 297
      * i.e: $visibility_options= array(true, false) we will only show the first column
299 298
      * 				Can be also only a bool value. TRUE: show all columns, FALSE: show nothing
@@ -334,7 +333,6 @@  discard block
 block discarded – undo
334 333
      * 					'page_nr' = The page to display
335 334
      * 					'hide_navigation' =  true to hide the navigation
336 335
      * @param array $query_vars Additional variables to add in the query-string
337
-     * @param array $form actions Additional variables to add in the query-string
338 336
      * @param mixed An array with bool values to know which columns show. i.e:
339 337
      *  $visibility_options= array(true, false) we will only show the first column
340 338
      * 	Can be also only a bool value. TRUE: show all columns, FALSE: show nothing
@@ -391,10 +389,11 @@  discard block
 block discarded – undo
391 389
      * 					'per_page' = number of items to show per page
392 390
      * 					'page_nr' = The page to display
393 391
      * @param array $query_vars Additional variables to add in the query-string
394
-     * @param array $column_show Array of binaries 1= show columns 0. hide a column
392
+     * @param integer[] $column_show Array of binaries 1= show columns 0. hide a column
395 393
      * @param array $column_order An array of integers that let us decide how the columns are going to be sort.
396 394
      * 						      i.e:  $column_order=array('1''4','3','4'); The 2nd column will be order like the 4th column
397 395
      * @param array $form_actions Set optional forms actions
396
+     * @param string $table_name
398 397
      *
399 398
      * @author Julio Montoya
400 399
      */
@@ -449,7 +448,7 @@  discard block
 block discarded – undo
449 448
      *
450 449
      * @deprecated use Display::addFlash with Display::return_message($message, 'normal');
451 450
      *
452
-     * @return void
451
+     * @return string|null
453 452
      */
454 453
     public static function display_normal_message($message, $filter = true, $returnValue = false)
455 454
     {
@@ -481,7 +480,7 @@  discard block
 block discarded – undo
481 480
      * Displays an confirmation message. Use this if something has been done successfully
482 481
      * @param bool	Filter (true) or not (false)
483 482
      * @deprecated use Display::addFlash with Display::return_message
484
-     * @return void
483
+     * @return string|null
485 484
      */
486 485
     public static function display_confirmation_message ($message, $filter = true, $returnValue = false)
487 486
     {
@@ -500,7 +499,7 @@  discard block
 block discarded – undo
500 499
      * @param bool	Filter (true) or not (false)
501 500
      * @deprecated use Display::addFlash with Display::return_message
502 501
      *
503
-     * @return void
502
+     * @return string|null
504 503
      */
505 504
     public static function display_error_message ($message, $filter = true, $returnValue = false)
506 505
     {
@@ -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(
@@ -917,6 +917,7 @@  discard block
 block discarded – undo
917 917
     /**
918 918
      * Displays an HTML input tag
919 919
      *
920
+     * @param string $type
920 921
      */
921 922
     public static function input($type, $name, $value, $attributes = array())
922 923
     {
@@ -933,8 +934,8 @@  discard block
 block discarded – undo
933 934
     }
934 935
 
935 936
     /**
936
-     * @param $name
937
-     * @param $value
937
+     * @param string $name
938
+     * @param string $value
938 939
      * @param array $attributes
939 940
      * @return string
940 941
      */
@@ -949,6 +950,7 @@  discard block
 block discarded – undo
949 950
     /**
950 951
      * Displays an HTML select tag
951 952
      *
953
+     * @param string $blank_item_text
952 954
      */
953 955
     public static function select(
954 956
         $name,
@@ -1015,8 +1017,8 @@  discard block
 block discarded – undo
1015 1017
                         $( "#tabs" ).tabs();
1016 1018
                     });
1017 1019
                 </script>
1018
-     * @param   array   $headers list of the tab titles
1019
-     * @param   array   $items
1020
+     * @param   string[]   $headers list of the tab titles
1021
+     * @param   string[]   $items
1020 1022
      * @param   string  $id id of the container of the tab in the example "tabs"
1021 1023
      * @param   array   $attributes for the ul
1022 1024
      * @param array $ul_attributes
@@ -1070,7 +1072,7 @@  discard block
 block discarded – undo
1070 1072
 
1071 1073
     /**
1072 1074
      * @param $headers
1073
-     * @param null $selected
1075
+     * @param integer $selected
1074 1076
      *
1075 1077
      * @return string
1076 1078
      */
@@ -1108,6 +1110,7 @@  discard block
 block discarded – undo
1108 1110
      * As you can see both function use the same "my_grid_name" this is very important otherwise nothing will work
1109 1111
      *
1110 1112
      * @param   string  the div id, this value must be the same with the first parameter of Display::grid_js()
1113
+     * @param string $div_id
1111 1114
      * @return  string  html
1112 1115
      *
1113 1116
      */
@@ -1668,6 +1671,8 @@  discard block
 block discarded – undo
1668 1671
      * @param  string  url that will be added (for jquery see hot_courses.tpl)
1669 1672
 	 * @param	string	point info array see function CourseManager::get_course_ranking()
1670 1673
 	 * @param	bool	add a div wrapper
1674
+	 * @param string $id
1675
+	 * @param string $url
1671 1676
 	 * @todo	use     templates
1672 1677
      **/
1673 1678
     public static function return_rating_system($id, $url, $point_info = array(), $add_div_wrapper = true)
@@ -1758,6 +1763,9 @@  discard block
 block discarded – undo
1758 1763
         return '<'.$size.'>'.Security::remove_XSS($title).'</'.$size.'>';
1759 1764
     }
1760 1765
 
1766
+    /**
1767
+     * @param string $title
1768
+     */
1761 1769
     public static function page_subheader2($title, $second_title = null)
1762 1770
     {
1763 1771
         return self::page_header($title, $second_title, 'h4');
@@ -2005,6 +2013,7 @@  discard block
 block discarded – undo
2005 2013
 
2006 2014
     /**
2007 2015
      * @todo use twig
2016
+     * @param string $title
2008 2017
      */
2009 2018
     public static function groupButtonWithDropDown($title, $elements)
2010 2019
     {
@@ -2378,9 +2387,9 @@  discard block
 block discarded – undo
2378 2387
 
2379 2388
     /**
2380 2389
      * @param int $id
2381
-     * @param array $content
2390
+     * @param string[] $content
2382 2391
      * @param int $col
2383
-     * @param bool|true $right
2392
+     * @param boolean $right
2384 2393
      * @return string
2385 2394
      */
2386 2395
     public static function toolbarAction($id, $content = array(), $col = 2, $right = true)
@@ -2464,10 +2473,10 @@  discard block
 block discarded – undo
2464 2473
     /**
2465 2474
      * @param string $title
2466 2475
      * @param string $content
2467
-     * @param null $id
2476
+     * @param string $id
2468 2477
      * @param array $params
2469
-     * @param null $idAccordion
2470
-     * @param null $idCollapse
2478
+     * @param string $idAccordion
2479
+     * @param string $idCollapse
2471 2480
      * @param bool|true $open
2472 2481
      * @param bool|false $fullClickable
2473 2482
      * @return null|string
Please login to merge, or discard this patch.
main/gradebook/lib/be/evaluation.class.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -120,6 +120,9 @@  discard block
 block discarded – undo
120 120
 		return $this->created_at;
121 121
 	}
122 122
 
123
+	/**
124
+	 * @return string
125
+	 */
123 126
 	public function get_weight()
124 127
 	{
125 128
 		return $this->weight;
@@ -271,7 +274,7 @@  discard block
 block discarded – undo
271 274
 	}
272 275
 
273 276
 	/**
274
-	 * @param array $result
277
+	 * @param Doctrine\DBAL\Driver\Statement|null $result
275 278
 	 * @return array
276 279
 	 */
277 280
 	private static function create_evaluation_objects_from_sql_result($result)
Please login to merge, or discard this patch.
main/gradebook/lib/scoredisplay.class.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
      * Formats a number depending of the number of decimals
278 278
      *
279 279
      * @param float $score
280
-     * @return float the score formatted
280
+     * @return boolean|string the score formatted
281 281
      */
282 282
     public function format_score($score)
283 283
     {
@@ -391,7 +391,7 @@  discard block
 block discarded – undo
391 391
 
392 392
     /**
393 393
      * @param array $score
394
-     * @return float|string
394
+     * @return boolean|string
395 395
      */
396 396
     private function display_simple_score($score)
397 397
     {
@@ -404,7 +404,7 @@  discard block
 block discarded – undo
404 404
     /**
405 405
      * Returns "1" for array("100", "100");
406 406
      * @param array $score
407
-     * @return float
407
+     * @return boolean|string
408 408
      */
409 409
     private function display_as_decimal($score)
410 410
     {
Please login to merge, or discard this patch.
main/exercise/export/exercise_import.inc.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -1022,7 +1022,6 @@
 block discarded – undo
1022 1022
  * Processes an IMS/QTI manifest file: store links to new files
1023 1023
  * to be able to transform them into the questions text
1024 1024
  * @param string $filePath The absolute filepath
1025
- * @param array $links List of filepaths changes
1026 1025
  * @return bool
1027 1026
  */
1028 1027
 function qtiProcessManifest($filePath)
Please login to merge, or discard this patch.