Test Setup Failed
Pull Request — 1.11.x (#1541)
by José
33:51 queued 05:26
created
main/lp/aicc.class.php 1 patch
Doc Comments   +5 added lines, -3 removed lines patch added patch discarded remove patch
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
     /**
217 217
      * Import the aicc object (as a result from the parse_config_files function) into the database structure
218 218
      * @param	string	$course_code
219
-     * @return	bool	Returns -1 on error
219
+     * @return	false|null	Returns -1 on error
220 220
      */
221 221
     public function import_aicc($course_code)
222 222
     {
@@ -780,7 +780,8 @@  discard block
 block discarded – undo
780 780
      * Static function to parse AICC ini files.
781 781
      * Based on work by sinedeo at gmail dot com published on php.net (parse_ini_file()).
782 782
      * @param	string	File path
783
-     * @return	array	Structured array
783
+     * @param string $f
784
+     * @return	string	Structured array
784 785
      */
785 786
     function parse_ini_file_quotes_safe($f) {
786 787
         $null = '';
@@ -831,7 +832,7 @@  discard block
 block discarded – undo
831 832
      * Based on work by sinedeo at gmail dot com published on php.net (parse_ini_file()).
832 833
      * @param		string	INI File string
833 834
      * @param		array	List of names of sections that should be considered as containing only hard string data (no variables), provided in lower case
834
-     * @return	array	Structured array
835
+     * @return	string	Structured array
835 836
      */
836 837
     function parse_ini_string_quotes_safe($s, $pure_strings = array()) {
837 838
         $null = '';
@@ -894,6 +895,7 @@  discard block
 block discarded – undo
894 895
      * @param	string	CSV delimiter
895 896
      * @param	string	CSV enclosure
896 897
      * @param	boolean	Might one field name happen more than once on the same line? (then split by comma in the values)
898
+     * @param string $f
897 899
      * @return array	Simple structured array
898 900
      */
899 901
     function parse_csv_file($f, $delim = ',', $enclosure = '"', $multiples = false) {
Please login to merge, or discard this patch.
main/lp/learnpathList.class.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
      * @param   int     $categoryId
35 35
      * @param bool $ignoreCategoryFilter
36 36
      *
37
-     * @return	void
37
+     * @return	false|null
38 38
      */
39 39
     public function __construct(
40 40
         $user_id,
Please login to merge, or discard this patch.
main/lp/lp_ajax_save_item.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,9 +20,9 @@
 block discarded – undo
20 20
  * @param   int $user_id User ID
21 21
  * @param   int $view_id View ID
22 22
  * @param   int $item_id Item ID
23
- * @param   float  $score Current score
24
- * @param   float  $max Maximum score
25
- * @param   float  $min Minimum score
23
+ * @param   integer  $score Current score
24
+ * @param   integer  $max Maximum score
25
+ * @param   integer  $min Minimum score
26 26
  * @param   string  $status Lesson status
27 27
  * @param   int  $time Session time
28 28
  * @param   string  $suspend Suspend data
Please login to merge, or discard this patch.
main/lp/lp_ajax_start_timer.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 /**
10 10
  * Start a timer and hand it back to the JS by assigning the current time (of start) to
11 11
  * var asset_timer
12
- * @return string JavaScript time intializer
12
+ * @return integer JavaScript time intializer
13 13
  */
14 14
 function start_timer() {
15 15
     $time = time();
Please login to merge, or discard this patch.
main/lp/lp_final_item.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -116,7 +116,7 @@
 block discarded – undo
116 116
  * @param int $sessionId
117 117
  * @param string $downloadCertificateLink
118 118
  * @param string $badgeLink
119
- * @return mixed|string
119
+ * @return string
120 120
  */
121 121
 function generateLPFinalItemTemplate($lpItemId, $courseCode, $sessionId=0, $downloadCertificateLink='', $badgeLink='')
122 122
 {
Please login to merge, or discard this patch.
main/lp/openoffice_text.class.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     /**
39 39
      * Gets html pages and compose them into a learning path
40 40
      * @param	array	The files that will compose the generated learning path. Unused so far.
41
-     * @return	boolean	False if file does not exit. Nothing otherwise.
41
+     * @return	false|null	False if file does not exit. Nothing otherwise.
42 42
      */
43 43
     public function make_lp($files = array())
44 44
     {
@@ -92,6 +92,7 @@  discard block
 block discarded – undo
92 92
      * Manages chapter splitting
93 93
      * @param	string	Chapter header
94 94
      * @param	string	Content
95
+     * @param string $content
95 96
      * @return	void
96 97
      */
97 98
     function dealPerChapter($header, $content)
@@ -164,6 +165,7 @@  discard block
 block discarded – undo
164 165
      * Manages page splitting
165 166
      * @param	string	Page header
166 167
      * @param	string	Page body
168
+     * @param string $body
167 169
      * @return	void
168 170
      */
169 171
     function dealPerPage($header, $body)
Please login to merge, or discard this patch.
main/lp/openoffice_text_document.class.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     /**
39 39
      * Gets html pages and compose them into a learning path
40 40
      * @param	array	The files that will compose the generated learning path. Unused so far.
41
-     * @return	boolean	False if file does not exit. Nothing otherwise.
41
+     * @return	false|null	False if file does not exit. Nothing otherwise.
42 42
      */
43 43
     public function make_lp($files = array())
44 44
     {
@@ -92,6 +92,7 @@  discard block
 block discarded – undo
92 92
      * Manages chapter splitting
93 93
      * @param	string	Chapter header
94 94
      * @param	string	Content
95
+     * @param string $content
95 96
      * @return	void
96 97
      */
97 98
     function dealPerChapter($header, $content)
@@ -164,6 +165,7 @@  discard block
 block discarded – undo
164 165
      * Manages page splitting
165 166
      * @param	string	Page header
166 167
      * @param	string	Page body
168
+     * @param string $body
167 169
      * @return	void
168 170
      */
169 171
     function dealPerPage($header, $body)
Please login to merge, or discard this patch.
main/lp/scorm.class.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
      * @param int $userMaxScore
272 272
      * @param int $sessionId
273 273
      *
274
-     * @return bool	Returns -1 on error
274
+     * @return boolean|null	Returns -1 on error
275 275
      */
276 276
     public function import_manifest($courseCode, $userMaxScore = 1, $sessionId = 0, $userId = 0)
277 277
     {
@@ -925,7 +925,7 @@  discard block
 block discarded – undo
925 925
      * @param	string	course Code
926 926
      * @param string	LP ID (in database)
927 927
      * @param string	Manifest file path (optional if lp_id defined)
928
-     * @return	integer	New LP ID or false on failure
928
+     * @return	boolean	New LP ID or false on failure
929 929
      * TODO @TODO Implement imsmanifest_path parameter
930 930
      */
931 931
     public function reimport_manifest($courseCode, $lp_id = null, $imsmanifest_path = '')
Please login to merge, or discard this patch.
main/admin/settings.lib.php 1 patch
Doc Comments   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1154,7 +1154,7 @@  discard block
 block discarded – undo
1154 1154
 /**
1155 1155
  * Returns an array containing the list of options used to populate the gradebook_number_decimals variable
1156 1156
  * This function is called through a call_user_func() in the generate_settings_form function.
1157
- * @return array List of gradebook_number_decimals options
1157
+ * @return string[] List of gradebook_number_decimals options
1158 1158
  *
1159 1159
  * @author Guillaume Viguier <[email protected]>
1160 1160
  */
@@ -1575,8 +1575,9 @@  discard block
 block discarded – undo
1575 1575
 }
1576 1576
 /**
1577 1577
  * Helper function to generates a form elements group
1578
- * @param object $form The form where the elements group has to be added
1578
+ * @param FormValidator $form The form where the elements group has to be added
1579 1579
  * @param array $values Values to browse through
1580
+ * @param string $elementName
1580 1581
  * @return array
1581 1582
  */
1582 1583
 function formGenerateElementsGroup($form, $values = array(), $elementName)
@@ -1592,7 +1593,7 @@  discard block
 block discarded – undo
1592 1593
 }
1593 1594
 /**
1594 1595
  * Helper function with allowed file types for CSS
1595
- * @return  array Array of file types (no indexes)
1596
+ * @return  string[] Array of file types (no indexes)
1596 1597
  */
1597 1598
 function getAllowedFileTypes()
1598 1599
 {
Please login to merge, or discard this patch.