Completed
Push — 1.11.x ( 7ffd51...902ebd )
by José
50:21 queued 21:28
created
main/inc/lib/message.lib.php 1 patch
Doc Comments   +5 added lines, -3 removed lines patch added patch discarded remove patch
@@ -700,6 +700,8 @@  discard block
 block discarded – undo
700 700
      * @param  int    message id
701 701
      * @param  int    message user id (receiver user id or sender user id)
702 702
      * @param  int    group id (optional)
703
+     * @param integer $message_id
704
+     * @param integer $message_uid
703 705
      */
704 706
     public static function delete_message_attachment_file(
705 707
         $message_id,
@@ -747,7 +749,7 @@  discard block
 block discarded – undo
747 749
      * update messages by user id and message id
748 750
      * @param  int $user_id
749 751
      * @param  int $message_id
750
-     * @return resource
752
+     * @return false|null
751 753
      */
752 754
     public static function update_message($user_id, $message_id)
753 755
     {
@@ -768,7 +770,7 @@  discard block
 block discarded – undo
768 770
      * @param int $user_id
769 771
      * @param int $message_id
770 772
      * @param string $type
771
-     * @return bool
773
+     * @return false|null
772 774
      */
773 775
     public static function update_message_status($user_id, $message_id, $type)
774 776
     {
@@ -1592,7 +1594,7 @@  discard block
 block discarded – undo
1592 1594
      * Sort date by desc from a multi-dimensional array
1593 1595
      * @param array $array1 first array to compare
1594 1596
      * @param array $array2 second array to compare
1595
-     * @return bool
1597
+     * @return integer
1596 1598
      */
1597 1599
     public function order_desc_date($array1, $array2)
1598 1600
     {
Please login to merge, or discard this patch.
main/inc/lib/system/web/request.class.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -9,6 +9,9 @@  discard block
 block discarded – undo
9 9
 class Request
10 10
 {
11 11
 
12
+    /**
13
+     * @param string $key
14
+     */
12 15
     public static function get($key, $default = null)
13 16
     {
14 17
         return isset($_REQUEST[$key]) ? $_REQUEST[$key] : $default;
@@ -30,6 +33,10 @@  discard block
 block discarded – undo
30 33
         return $method == 'GET';
31 34
     }
32 35
 
36
+    /**
37
+     * @param string $key
38
+     * @param string $default
39
+     */
33 40
     public static function post($key, $default = null)
34 41
     {
35 42
         return isset($_POST[$key]) ? $_POST[$key] : $default;
Please login to merge, or discard this patch.
main/inc/lib/search/ChamiloIndexer.class.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -80,6 +80,10 @@
 block discarded – undo
80 80
 
81 81
     /**
82 82
      * Get the terms stored at database
83
+     * @param string $prefix
84
+     * @param string $course_code
85
+     * @param string $tool_id
86
+     * @param integer $ref_id
83 87
      * @return  array Array of terms
84 88
      */
85 89
     public function get_terms_on_db($prefix, $course_code, $tool_id, $ref_id)
Please login to merge, or discard this patch.
main/inc/lib/search/xapian/XapianIndexer.class.php 1 patch
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
 
101 101
     /**
102 102
      * Simple getter for the db attribute
103
-     * @return  object  The db attribute
103
+     * @return  null|XapianWritableDatabase  The db attribute
104 104
      */
105 105
     public function getDb()
106 106
     {
@@ -110,6 +110,7 @@  discard block
 block discarded – undo
110 110
     /**
111 111
      * Add this chunk to the chunk array attribute
112 112
      * @param  string  Chunk of text
113
+     * @param IndexableChunk $chunk
113 114
      * @return  void
114 115
      */
115 116
     public function addChunk($chunk)
@@ -181,7 +182,7 @@  discard block
 block discarded – undo
181 182
      * Get document data on a xapian document
182 183
      *
183 184
      * @param XapianDocument $doc xapian document to push into the db
184
-     * @return mixed xapian document data or FALSE if error
185
+     * @return string xapian document data or FALSE if error
185 186
      */
186 187
     public function get_document_data($doc)
187 188
     {
Please login to merge, or discard this patch.
main/exercise/hotpotatoes_exercise_result.class.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -19,6 +19,7 @@
 block discarded – undo
19 19
      * @param    string        The document path (for HotPotatoes retrieval)
20 20
      * @param    integer        User ID. Optional. If no user ID is provided, we take all the results. Defauts to null
21 21
      * @param string $document_path
22
+     * @param string|null $hotpotato_name
22 23
      * @return bool
23 24
      */
24 25
     public function getExercisesReporting($document_path, $hotpotato_name)
Please login to merge, or discard this patch.
main/inc/lib/tracking.lib.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1635,7 +1635,7 @@  discard block
 block discarded – undo
1635 1635
      * Get first connection date for a student
1636 1636
      * @param int $student_id
1637 1637
      *
1638
-     * @return string|bool Date format long without day or false if there are no connections
1638
+     * @return string|false Date format long without day or false if there are no connections
1639 1639
      */
1640 1640
     public static function get_first_connection_date($student_id)
1641 1641
     {
@@ -1665,7 +1665,7 @@  discard block
 block discarded – undo
1665 1665
      * @param int $student_id
1666 1666
      * @param bool $warning_message Show a warning message (optional)
1667 1667
      * @param bool $return_timestamp True for returning results in timestamp (optional)
1668
-     * @return string|int|bool Date format long without day, false if there are no connections or
1668
+     * @return string Date format long without day, false if there are no connections or
1669 1669
      * timestamp if parameter $return_timestamp is true
1670 1670
      */
1671 1671
     public static function get_last_connection_date(
@@ -3045,7 +3045,7 @@  discard block
 block discarded – undo
3045 3045
 
3046 3046
     /**
3047 3047
      * This function gets time spent in learning path for a student inside a course
3048
-     * @param int|array $student_id Student id(s)
3048
+     * @param integer $student_id Student id(s)
3049 3049
      * @param string $course_code Course code
3050 3050
      * @param array $lp_ids Limit average to listed lp ids
3051 3051
      * @param int $session_id Session id (optional), if param $session_id is null(default)
@@ -3113,7 +3113,7 @@  discard block
 block discarded – undo
3113 3113
 
3114 3114
     /**
3115 3115
      * This function gets last connection time to one learning path
3116
-     * @param int|array $student_id Student id(s)
3116
+     * @param integer $student_id Student id(s)
3117 3117
      * @param string $course_code      Course code
3118 3118
      * @param int $lp_id    Learning path id
3119 3119
      * @param int $session_id
@@ -6014,7 +6014,7 @@  discard block
 block discarded – undo
6014 6014
 
6015 6015
     /**
6016 6016
     * @param FormValidator $form
6017
-    * @return mixed
6017
+    * @return FormValidator
6018 6018
     */
6019 6019
     public static function setUserSearchForm($form)
6020 6020
     {
Please login to merge, or discard this patch.
main/inc/lib/skill.visualizer.lib.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -35,6 +35,9 @@
 block discarded – undo
35 35
         $this->center_x = intval($this->offset_x + $this->canvas_x / 2 - $this->block_size / 2);
36 36
     }
37 37
 
38
+    /**
39
+     * @param string $class
40
+     */
38 41
     public function prepare_skill_box($skill, $position, $class)
39 42
     {
40 43
         $block_id = $skill['id'];
Please login to merge, or discard this patch.
main/inc/lib/pdf.lib.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -574,7 +574,7 @@
 block discarded – undo
574 574
      * @param	string	$filename filename
575 575
      * @param	string	$source_file path of the file
576 576
      * @param	string	$course_code
577
-     * @return 	mixed	web path of the file if sucess, false otherwise
577
+     * @return 	string|boolean	web path of the file if sucess, false otherwise
578 578
      */
579 579
     public function upload_watermark($filename, $source_file, $course_code = null)
580 580
     {
Please login to merge, or discard this patch.
main/install/install.lib.php 1 patch
Doc Comments   +15 added lines, -6 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
  * This function return the value of a php.ini setting if not "" or if exists,
124 124
  * otherwise return false
125 125
  * @param   string  $phpSetting The name of a PHP setting
126
- * @return  mixed   The value of the setting, or false if not found
126
+ * @return  string|false   The value of the setting, or false if not found
127 127
  */
128 128
 function checkPhpSettingExists($phpSetting)
129 129
 {
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
  * Returns a textual value ('ON' or 'OFF') based on a requester 2-state ini- configuration setting.
155 155
  *
156 156
  * @param string $val a php ini value
157
- * @return bool ON or OFF
157
+ * @return string ON or OFF
158 158
  * @author Joomla <http://www.joomla.org>
159 159
  */
160 160
 function getPhpSetting($val)
@@ -1358,6 +1358,10 @@  discard block
 block discarded – undo
1358 1358
  * @param   string  Extra notice (to show on the right side)
1359 1359
  * @param   boolean Whether to display in update mode
1360 1360
  * @param   string  Additional attribute for the <tr> element
1361
+ * @param string $installType
1362
+ * @param string $parameterName
1363
+ * @param string $formFieldName
1364
+ * @param string $extra_notice
1361 1365
  * @return  void    Direct output
1362 1366
  */
1363 1367
 function displayDatabaseParameter(
@@ -1561,6 +1565,11 @@  discard block
 block discarded – undo
1561 1565
     <?php
1562 1566
 }
1563 1567
 
1568
+/**
1569
+ * @param string $content
1570
+ * @param string $title
1571
+ * @param string $id
1572
+ */
1564 1573
 function panel($content = null, $title = null, $id = null, $style = null)
1565 1574
 {
1566 1575
     $html = '';
@@ -1924,8 +1933,8 @@  discard block
 block discarded – undo
1924 1933
 }
1925 1934
 
1926 1935
 /**
1927
- * @param $current_value
1928
- * @param $wanted_value
1936
+ * @param string $current_value
1937
+ * @param string $wanted_value
1929 1938
  * @return string
1930 1939
  */
1931 1940
 function compare_setting_values($current_value, $wanted_value)
@@ -1942,8 +1951,8 @@  discard block
 block discarded – undo
1942 1951
 }
1943 1952
 
1944 1953
 /**
1945
- * @param $course_dir
1946
- * @param $course_attempt_name
1954
+ * @param string $course_dir
1955
+ * @param string $course_attempt_name
1947 1956
  * @param string $file
1948 1957
  * @return bool
1949 1958
  */
Please login to merge, or discard this patch.