Completed
Push — master ( 6257ee...7420f9 )
by José
82:44 queued 52:54
created
main/inc/lib/internationalization.lib.php 1 patch
Doc Comments   +19 added lines, -12 removed lines patch added patch discarded remove patch
@@ -419,6 +419,7 @@  discard block
 block discarded – undo
419 419
  * If null, the timezone will be determined based on user preference,
420 420
  * or timezone chosen by the admin for the platform.
421 421
  * @param string The timezone to be converted from. If null, UTC will be assumed.
422
+ * @param string $to_timezone
422 423
  * @return string The converted time formatted as Y-m-d H:i:s
423 424
  *
424 425
  * @author Guillaume Viguier <[email protected]>
@@ -683,6 +684,8 @@  discard block
 block discarded – undo
683 684
  * @param mixed The time to be converted
684 685
  * @param mixed Format to be used (TIME_NO_SEC_FORMAT, DATE_FORMAT_SHORT, DATE_FORMAT_LONG, DATE_TIME_FORMAT_LONG)
685 686
  * @param string Timezone to be converted from. If null, UTC will be assumed.
687
+ * @param integer $format
688
+ * @param string $from_timezone
686 689
  * @return string Converted and localized date
687 690
  *
688 691
  * @author Guillaume Viguier <[email protected]>
@@ -752,7 +755,7 @@  discard block
 block discarded – undo
752 755
  * @param int|string $format (optional)	The person name format. It may be a pattern-string (for example '%t %l, %f' or '%T %F %L', ...) or some of the constants PERSON_NAME_COMMON_CONVENTION (default), PERSON_NAME_WESTERN_ORDER, PERSON_NAME_EASTERN_ORDER, PERSON_NAME_LIBRARY_ORDER.
753 756
  * @param string $language (optional)	The language id. If it is omitted, the current interface language is assumed. This parameter has meaning with the format PERSON_NAME_COMMON_CONVENTION only.
754 757
  * @param string $encoding (optional)	The used internally by this function character encoding. If it is omitted, the platform character set will be used by default.
755
- * @return bool							The result is sort of full name of the person.
758
+ * @return string							The result is sort of full name of the person.
756 759
  * Sample results:
757 760
  * Peter Ustinoff or Dr. Peter Ustinoff     - the Western order
758 761
  * Ustinoff Peter or Dr. Ustinoff Peter     - the Eastern order
@@ -1071,8 +1074,8 @@  discard block
 block discarded – undo
1071 1074
 
1072 1075
 /**
1073 1076
  * This function returns a string or an array with all occurrences of search in subject (ignoring case) replaced with the given replace value.
1074
- * @param mixed $search					String or array of strings to be found.
1075
- * @param mixed $replace				String or array of strings used for replacement.
1077
+ * @param string $search					String or array of strings to be found.
1078
+ * @param string $replace				String or array of strings used for replacement.
1076 1079
  * @param mixed $subject				String or array of strings being searched.
1077 1080
  * @param int $count (optional)			The number of matched and replaced needles will be returned in count, which is passed by reference.
1078 1081
  * @param string $encoding (optional)	The used internally by this function character encoding.
@@ -1135,10 +1138,10 @@  discard block
 block discarded – undo
1135 1138
 /**
1136 1139
  * Finds first occurrence of a string within another, case insensitive.
1137 1140
  * @param string $haystack					The string from which to get the first occurrence.
1138
- * @param mixed $needle						The string to be found.
1141
+ * @param string $needle						The string to be found.
1139 1142
  * @param bool $before_needle (optional)	Determines which portion of $haystack this function returns. The default value is FALSE.
1140 1143
  * @param string $encoding (optional)		The used internally by this function character encoding. If it is omitted, the platform character set will be used by default.
1141
- * @return mixed							Returns the portion of $haystack, or FALSE if $needle is not found.
1144
+ * @return false|string							Returns the portion of $haystack, or FALSE if $needle is not found.
1142 1145
  * Notes:
1143 1146
  * If $needle is not a string, it is converted to an integer and applied as the ordinal value (codepoint if the encoding is UTF-8) of a character.
1144 1147
  * If $before_needle is set to TRUE, the function returns all of $haystack from the beginning to the first occurrence of $needle.
@@ -1194,7 +1197,7 @@  discard block
 block discarded – undo
1194 1197
  * @param mixed $needle						The string which first character is to be found.
1195 1198
  * @param bool $before_needle (optional)	Determines which portion of $haystack this function returns. The default value is FALSE.
1196 1199
  * @param string $encoding (optional)		The used internally by this function character encoding. If it is omitted, the platform character set will be used by default.
1197
- * @return mixed							Returns the portion of $haystack, or FALSE if the first character from $needle is not found.
1200
+ * @return false|string							Returns the portion of $haystack, or FALSE if the first character from $needle is not found.
1198 1201
  * Notes:
1199 1202
  * If $needle is not a string, it is converted to an integer and applied as the ordinal value (codepoint if the encoding is UTF-8) of a character.
1200 1203
  * If $before_needle is set to TRUE, the function returns all of $haystack from the beginning to the first occurrence.
@@ -1261,7 +1264,7 @@  discard block
 block discarded – undo
1261 1264
  * @param mixed $needle						The string to be found.
1262 1265
  * @param bool $before_needle (optional)	Determines which portion of $haystack this function returns. The default value is FALSE.
1263 1266
  * @param string $encoding (optional)		The used internally by this function character encoding. If it is omitted, the platform character set will be used by default.
1264
- * @return mixed							Returns the portion of $haystack, or FALSE if $needle is not found.
1267
+ * @return false|string							Returns the portion of $haystack, or FALSE if $needle is not found.
1265 1268
  * Notes:
1266 1269
  * If $needle is not a string, it is converted to an integer and applied as the ordinal value (codepoint if the encoding is UTF-8) of a character.
1267 1270
  * If $before_needle is set to TRUE, the function returns all of $haystack from the beginning to the first occurrence of $needle.
@@ -1442,8 +1445,8 @@  discard block
 block discarded – undo
1442 1445
 
1443 1446
 /**
1444 1447
  * Performs a regular expression search and replace, UTF-8 aware when it is applicable.
1445
- * @param string|array $pattern			The pattern to search for. It can be either a string or an array with strings.
1446
- * @param string|array $replacement		The string or an array with strings to replace.
1448
+ * @param string $pattern			The pattern to search for. It can be either a string or an array with strings.
1449
+ * @param string $replacement		The string or an array with strings to replace.
1447 1450
  * @param string|array $subject			The string or an array with strings to search and replace.
1448 1451
  * @param int $limit					The maximum possible replacements for each pattern in each subject string. Defaults to -1 (no limit).
1449 1452
  * @param int &$count					If specified, this variable will be filled with the number of replacements done.
@@ -1591,7 +1594,7 @@  discard block
 block discarded – undo
1591 1594
 
1592 1595
 /**
1593 1596
  * This function checks whether two $encoding are equal (same, equvalent).
1594
- * @param string|array $encoding1		The first encoding
1597
+ * @param string $encoding1		The first encoding
1595 1598
  * @param string|array $encoding2		The second encoding
1596 1599
  * @param bool $strict					When this parameter is TRUE the comparison ignores aliases of encodings.
1597 1600
  * When the parameter is FALSE, aliases are taken into account.
@@ -1695,6 +1698,7 @@  discard block
 block discarded – undo
1695 1698
 /**
1696 1699
  * Checks a string for UTF-8 validity.
1697 1700
  *
1701
+ * @param string $string
1698 1702
  */
1699 1703
 function api_is_valid_utf8(&$string)
1700 1704
 {
@@ -1837,7 +1841,7 @@  discard block
 block discarded – undo
1837 1841
 /**
1838 1842
  * Replaces non-valid formats for person names with the default (English) format.
1839 1843
  * @param string $format	The input format to be verified.
1840
- * @return bool				Returns the same format if is is valid, otherwise returns a valid English format.
1844
+ * @return string				Returns the same format if is is valid, otherwise returns a valid English format.
1841 1845
  */
1842 1846
 function _api_validate_person_name_format($format) {
1843 1847
     if (empty($format) || stripos($format, '%f') === false || stripos($format, '%l') === false) {
@@ -1964,6 +1968,9 @@  discard block
 block discarded – undo
1964 1968
 
1965 1969
 // This function checks whether the function _api_convert_encoding() (the php-
1966 1970
 // implementation) is able to convert from/to a given encoding.
1971
+/**
1972
+ * @param string $encoding
1973
+ */
1967 1974
 function _api_convert_encoding_supports($encoding) {
1968 1975
     static $supports = array();
1969 1976
     if (!isset($supports[$encoding])) {
@@ -1974,7 +1981,7 @@  discard block
 block discarded – undo
1974 1981
 
1975 1982
 /**
1976 1983
  * Given a date object, return a human or ISO format, with or without h:m:s
1977
- * @param object $date The Date object
1984
+ * @param DateTime $date The Date object
1978 1985
  * @param bool $showTime Whether to show the time and date (true) or only the date (false)
1979 1986
  * @param bool $humanForm Whether to show day-month-year (true) or year-month-day (false)
1980 1987
  * @return string Formatted date
Please login to merge, or discard this patch.
main/inc/lib/thematic.lib.php 1 patch
Doc Comments   +11 added lines, -4 removed lines patch added patch discarded remove patch
@@ -242,6 +242,9 @@  discard block
 block discarded – undo
242 242
     /**
243 243
      * get thematic list
244 244
      * @param	int		Thematic id (optional), get list by id
245
+     * @param integer $thematic_id
246
+     * @param string $course_code
247
+     * @param integer $session_id
245 248
      * @return	array	Thematic data
246 249
      */
247 250
     public static function get_thematic_list(
@@ -799,6 +802,7 @@  discard block
 block discarded – undo
799 802
     /**
800 803
      * delete  thematic advance
801 804
      * @param	int		Thematic advance id
805
+     * @param integer $thematic_advance_id
802 806
      * @return	int		Affected rows
803 807
      */
804 808
     public function thematic_advance_destroy($thematic_advance_id)
@@ -1116,6 +1120,7 @@  discard block
 block discarded – undo
1116 1120
     /**
1117 1121
      * update done thematic advances from thematic details interface
1118 1122
      * @param 	int		Thematic id
1123
+     * @param integer $thematic_advance_id
1119 1124
      * @return	int		Affected rows
1120 1125
      */
1121 1126
     public function update_done_thematic_advances($thematic_advance_id)
@@ -1343,6 +1348,7 @@  discard block
 block discarded – undo
1343 1348
      * Get average of advances by thematic
1344 1349
      * @param	int		Thematic id
1345 1350
      * @param	string	Course code (optional)
1351
+     * @param string $course_code
1346 1352
      * @return 	float	Average of thematic advances
1347 1353
      */
1348 1354
     public function get_average_of_advances_by_thematic($thematic_id, $course_code = null)
@@ -1407,6 +1413,7 @@  discard block
 block discarded – undo
1407 1413
      * @param	string	Content
1408 1414
      * @param	string	Date and time
1409 1415
      * @param	int		Duration in hours
1416
+     * @param integer $id
1410 1417
      * @return void
1411 1418
      */
1412 1419
     public function set_thematic_advance_attributes(
@@ -1437,7 +1444,7 @@  discard block
 block discarded – undo
1437 1444
 
1438 1445
     /**
1439 1446
      * get thematic id
1440
-     * @return void
1447
+     * @return integer
1441 1448
      */
1442 1449
     public function get_thematic_id()
1443 1450
     {
@@ -1446,7 +1453,7 @@  discard block
 block discarded – undo
1446 1453
 
1447 1454
     /**
1448 1455
      * Get thematic plan titles by default
1449
-     * @return array
1456
+     * @return string[]
1450 1457
      */
1451 1458
     public function get_default_thematic_plan_title()
1452 1459
     {
@@ -1463,7 +1470,7 @@  discard block
 block discarded – undo
1463 1470
 
1464 1471
     /**
1465 1472
      * Get thematic plan icons by default
1466
-     * @return array
1473
+     * @return string[]
1467 1474
      */
1468 1475
     public function get_default_thematic_plan_icon()
1469 1476
     {
@@ -1480,7 +1487,7 @@  discard block
 block discarded – undo
1480 1487
 
1481 1488
     /**
1482 1489
      * Get questions by default for help
1483
-     * @return array
1490
+     * @return string[]
1484 1491
      */
1485 1492
     public function get_default_question()
1486 1493
     {
Please login to merge, or discard this patch.
main/inc/lib/webservices/WebService.class.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,8 +20,8 @@
 block discarded – undo
20 20
 
21 21
     /**
22 22
      * Class constructor
23
-     * @param $username
24
-     * @param $apiKey
23
+     * @param string $username
24
+     * @param string $apiKey
25 25
      */
26 26
     protected function __construct($username, $apiKey)
27 27
     {
Please login to merge, or discard this patch.
main/work/work.lib.php 1 patch
Doc Comments   +14 added lines, -12 removed lines patch added patch discarded remove patch
@@ -695,7 +695,7 @@  discard block
 block discarded – undo
695 695
  * @author Bert Vanderkimpen
696 696
  * @author Yannick Warnier <[email protected]> Adaptation for work tool
697 697
  * @param   string $base_work_dir Base work dir (.../work)
698
- * @param   string $desiredDirName complete path of the desired name
698
+ * @param   string $desired_dir_name complete path of the desired name
699 699
  *
700 700
  * @return  string actual directory name if it succeeds, boolean false otherwise
701 701
  */
@@ -717,7 +717,7 @@  discard block
 block discarded – undo
717 717
 /**
718 718
  * Delete a work-tool directory
719 719
  * @param   int  $id work directory id to delete
720
- * @return  integer -1 on error
720
+ * @return  boolean|null -1 on error
721 721
  */
722 722
 function deleteDirWork($id)
723 723
 {
@@ -860,7 +860,7 @@  discard block
 block discarded – undo
860 860
  * Update the url of a dir in the student_publication table
861 861
  * @param  array $work_data work original data
862 862
  * @param  string $newPath Example: "folder1"
863
- * @return bool
863
+ * @return boolean|null
864 864
  */
865 865
 function updateDirName($work_data, $newPath)
866 866
 {
@@ -921,6 +921,7 @@  discard block
 block discarded – undo
921 921
 /**
922 922
  * Transform an all directory structure (only directories) in an array
923 923
  * @param   string path of the directory
924
+ * @param string $directory
924 925
  * @return  array the directory structure into an array
925 926
  * @author  Julio Montoya Dokeos
926 927
  * @version April 2008
@@ -990,7 +991,7 @@  discard block
 block discarded – undo
990 991
  * @param   string the path of the directory
991 992
  * @param   boolean true if we want the total quantity of files
992 993
  * include in others child directories, false only  files in the directory
993
- * @return  array the first element is an integer with the number of files
994
+ * @return  integer[] the first element is an integer with the number of files
994 995
  * in the folder, the second element is the number of directories
995 996
  * @author  Julio Montoya
996 997
  * @version April 2008
@@ -2723,7 +2724,7 @@  discard block
 block discarded – undo
2723 2724
  * @param int $userId
2724 2725
  * @param int $workId
2725 2726
  * @param int $courseId
2726
- * @return bool
2727
+ * @return boolean|null
2727 2728
  */
2728 2729
 function allowOnlySubscribedUser($userId, $workId, $courseId)
2729 2730
 {
@@ -2997,6 +2998,7 @@  discard block
 block discarded – undo
2997 2998
  * @param int $parentId
2998 2999
  * @param array $courseInfo
2999 3000
  * @param int $sessionId
3001
+ * @param integer $userId
3000 3002
  * @return int
3001 3003
  */
3002 3004
 function getLastWorkStudentFromParentByUser(
@@ -3668,7 +3670,7 @@  discard block
 block discarded – undo
3668 3670
  * @param array $formValues
3669 3671
  * @param int $user_id
3670 3672
  * @param array $courseInfo
3671
- * @param int $group_id
3673
+ * @param integer $groupId
3672 3674
  * @param int $session_id
3673 3675
  * @return bool|int
3674 3676
  * @note $params can have the following elements, but should at least have the 2 first ones: (
@@ -4173,7 +4175,7 @@  discard block
 block discarded – undo
4173 4175
 }
4174 4176
 
4175 4177
 /**
4176
- * @return array
4178
+ * @return string[]
4177 4179
  */
4178 4180
 function getUploadDocumentType()
4179 4181
 {
@@ -4546,7 +4548,7 @@  discard block
 block discarded – undo
4546 4548
  * @param int Session ID
4547 4549
  * @param $correction
4548 4550
  *
4549
- * @return array|bool
4551
+ * @return boolean
4550 4552
  */
4551 4553
 function getFileContents($id, $course_info, $sessionId = 0, $correction = false)
4552 4554
 {
@@ -4664,7 +4666,7 @@  discard block
 block discarded – undo
4664 4666
  * @param int $userId
4665 4667
  * @param array $courseInfo
4666 4668
  * @param string $format
4667
- * @return bool
4669
+ * @return false|null
4668 4670
  */
4669 4671
 function exportAllWork($userId, $courseInfo, $format = 'pdf')
4670 4672
 {
@@ -4710,7 +4712,7 @@  discard block
 block discarded – undo
4710 4712
  * @param array $courseInfo
4711 4713
  * @param int $sessionId
4712 4714
  * @param string $format
4713
- * @return bool
4715
+ * @return false|null
4714 4716
  */
4715 4717
 function exportAllStudentWorkFromPublication(
4716 4718
     $workId,
@@ -4848,7 +4850,7 @@  discard block
 block discarded – undo
4848 4850
  * Downloads all user files per user
4849 4851
  * @param int $userId
4850 4852
  * @param array $courseInfo
4851
- * @return bool
4853
+ * @return false|null
4852 4854
  */
4853 4855
 function downloadAllFilesPerUser($userId, $courseInfo)
4854 4856
 {
@@ -4962,7 +4964,7 @@  discard block
 block discarded – undo
4962 4964
 /**
4963 4965
  * @param array $courseInfo
4964 4966
  * @param int $workId
4965
- * @return bool
4967
+ * @return boolean|null
4966 4968
  */
4967 4969
 function protectWork($courseInfo, $workId)
4968 4970
 {
Please login to merge, or discard this patch.
main/inc/lib/webservices/Rest.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -318,7 +318,6 @@
 block discarded – undo
318 318
     }
319 319
 
320 320
     /**
321
-     * @param int $courseId
322 321
      * @return array
323 322
      * @throws Exception
324 323
      */
Please login to merge, or discard this patch.
src/Chamilo/CoreBundle/Composer/ScriptHandler.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     }
46 46
 
47 47
     /**
48
-     * @return array
48
+     * @return string[]
49 49
      */
50 50
     public static function getFoldersToDelete()
51 51
     {
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
     }
96 96
 
97 97
     /**
98
-     * @return array
98
+     * @return string[]
99 99
      */
100 100
     public static function getFilesToDelete()
101 101
     {
Please login to merge, or discard this patch.
plugin/ims_lti/ImsLtiPlugin.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
     /**
26 26
      * Get the class instance
27 27
      * @staticvar MsiLtiPlugin $result
28
-     * @return MsiLtiPlugin
28
+     * @return ImsLtiPlugin
29 29
      */
30 30
     public static function create()
31 31
     {
Please login to merge, or discard this patch.
plugin/ims_lti/ImsLtiTool.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -20,6 +20,9 @@
 block discarded – undo
20 20
         return $this->id;
21 21
     }
22 22
 
23
+    /**
24
+     * @return string
25
+     */
23 26
     public function getName()
24 27
     {
25 28
         return $this->name;
Please login to merge, or discard this patch.
plugin/ims_lti/OAuthSimple.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -334,6 +334,9 @@
 block discarded – undo
334 334
         return preg_replace('/, $/','',$result);
335 335
     }
336 336
 
337
+    /**
338
+     * @param string $paramString
339
+     */
337 340
     private function _parseParameterString ($paramString)
338 341
     {
339 342
         $elements = explode('&',$paramString);
Please login to merge, or discard this patch.