Completed
Pull Request — master (#1537)
by José
29:27
created
src/Chamilo/CoreBundle/Component/Editor/CkEditor/Toolbar/Basic.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -71,6 +71,9 @@
 block discarded – undo
71 71
 
72 72
     /**
73 73
      * @inheritdoc
74
+     * @param \Symfony\Component\Routing\RouterInterface $router
75
+     * @param string $toolbar
76
+     * @param string $prefix
74 77
      */
75 78
     public function __construct(
76 79
         $router,
Please login to merge, or discard this patch.
src/Chamilo/CoreBundle/Entity/ToolResourceRights.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
     }
93 93
 
94 94
     /**
95
-     * @return int
95
+     * @return string
96 96
      */
97 97
     public function getMask()
98 98
     {
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
     }
101 101
 
102 102
     /**
103
-     * @param mixed $mask
103
+     * @param integer $mask
104 104
      *
105 105
      * @return $this
106 106
      */
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
     }
134 134
 
135 135
     /**
136
-     * @return array
136
+     * @return string[]
137 137
      */
138 138
     public static function getMaskList()
139 139
     {
Please login to merge, or discard this patch.
src/Chamilo/CoreBundle/Entity/UserFriendRelationType.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -64,6 +64,7 @@
 block discarded – undo
64 64
     /**
65 65
      * Set id
66 66
      *
67
+     * @param integer $id
67 68
      * @return integer
68 69
      */
69 70
     public function setId($id)
Please login to merge, or discard this patch.
src/Chamilo/CoreBundle/EventListener/LogoutSuccessHandler.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
     /**
25 25
      * @param UrlGeneratorInterface $urlGenerator
26 26
      * @param AuthorizationChecker $checker
27
-     * @param Storage $storage
27
+     * @param TokenStorage $storage
28 28
      */
29 29
     public function __construct(
30 30
         UrlGeneratorInterface $urlGenerator,
Please login to merge, or discard this patch.
src/Chamilo/CoreBundle/Entity/SkillRelSkill.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -64,6 +64,7 @@
 block discarded – undo
64 64
     /**
65 65
      * Set id
66 66
      *
67
+     * @param integer $id
67 68
      * @return integer
68 69
      */
69 70
     public function setId($id)
Please login to merge, or discard this patch.
main/inc/lib/system_announcements.lib.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -306,7 +306,7 @@
 block discarded – undo
306 306
      * @param int    Whether the announcement should be visible to anonymous users (1) or not (0)
307 307
      * @param string The language for which the announvement should be shown. Leave null for all langages
308 308
      * @param int    Whether to send an e-mail to all users (1) or not (0)
309
-     * @return mixed  insert_id on success, false on failure
309
+     * @return false|string  insert_id on success, false on failure
310 310
      */
311 311
     public static function add_announcement(
312 312
         $title,
Please login to merge, or discard this patch.
main/inc/lib/system/session.class.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,6 +14,9 @@  discard block
 block discarded – undo
14 14
 class Session implements \ArrayAccess
15 15
 {
16 16
 
17
+    /**
18
+     * @param string $variable
19
+     */
17 20
     static function read($variable, $default = null)
18 21
     {
19 22
         return isset($_SESSION[$variable]) ? $_SESSION[$variable] : $default;
@@ -39,7 +42,7 @@  discard block
 block discarded – undo
39 42
      * Returns true if session has variable set up, false otherwise.
40 43
      *
41 44
      * @param string $variable
42
-     * @return mixed value
45
+     * @return boolean value
43 46
      */
44 47
     static function has($variable)
45 48
     {
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
@@ -949,7 +949,6 @@
 block discarded – undo
949 949
 /**
950 950
  * Processes an IMS/QTI manifest file: store links to new files to be able to transform them into questions text
951 951
  * @param string $filePath The absolute filepath
952
- * @param array $links List of filepaths changes
953 952
  * @return bool
954 953
  */
955 954
 function qtiProcessManifest($filePath)
Please login to merge, or discard this patch.
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.