@@ -151,7 +151,7 @@ |
||
| 151 | 151 | /** |
| 152 | 152 | * Read the CSV-file |
| 153 | 153 | * @param string $file Path to the CSV-file |
| 154 | - * @return array All course-information read from the file |
|
| 154 | + * @return Ddeboer\DataImport\Reader\CsvReader All course-information read from the file |
|
| 155 | 155 | */ |
| 156 | 156 | function parse_csv_data($file) |
| 157 | 157 | { |
@@ -1154,7 +1154,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 | { |
@@ -96,6 +96,9 @@ |
||
| 96 | 96 | echo PHP_EOL; |
| 97 | 97 | } |
| 98 | 98 | |
| 99 | +/** |
|
| 100 | + * @param string $message |
|
| 101 | + */ |
|
| 99 | 102 | function echo_style($style, $message) |
| 100 | 103 | { |
| 101 | 104 | // ANSI color codes |
@@ -220,7 +220,7 @@ discard block |
||
| 220 | 220 | * Adds a mandatory requirement in form of a php.ini configuration. |
| 221 | 221 | * |
| 222 | 222 | * @param string $cfgName The configuration name used for ini_get() |
| 223 | - * @param bool|callback $evaluation Either a boolean indicating whether the configuration should evaluate to true or false, |
|
| 223 | + * @param boolean|string $evaluation Either a boolean indicating whether the configuration should evaluate to true or false, |
|
| 224 | 224 | * or a callback function receiving the configuration value as parameter to determine the fulfillment of the requirement |
| 225 | 225 | * @param bool $approveCfgAbsence If true the Requirement will be fulfilled even if the configuration option does not exist, i.e. ini_get() returns false. |
| 226 | 226 | * This is helpful for abandoned configs in later PHP versions or configs of an optional extension, like Suhosin. |
@@ -238,7 +238,7 @@ discard block |
||
| 238 | 238 | * Adds an optional recommendation in form of a php.ini configuration. |
| 239 | 239 | * |
| 240 | 240 | * @param string $cfgName The configuration name used for ini_get() |
| 241 | - * @param bool|callback $evaluation Either a boolean indicating whether the configuration should evaluate to true or false, |
|
| 241 | + * @param string|false $evaluation Either a boolean indicating whether the configuration should evaluate to true or false, |
|
| 242 | 242 | * or a callback function receiving the configuration value as parameter to determine the fulfillment of the requirement |
| 243 | 243 | * @param bool $approveCfgAbsence If true the Requirement will be fulfilled even if the configuration option does not exist, i.e. ini_get() returns false. |
| 244 | 244 | * This is helpful for abandoned configs in later PHP versions or configs of an optional extension, like Suhosin. |