@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | } |
141 | 141 | |
142 | 142 | /** |
143 | - * @return array |
|
143 | + * @return string[] |
|
144 | 144 | */ |
145 | 145 | public static function getValidExtraFieldTypes() |
146 | 146 | { |
@@ -217,7 +217,7 @@ discard block |
||
217 | 217 | |
218 | 218 | /** |
219 | 219 | * @param array $conditions |
220 | - * @param null $order_field_options_by |
|
220 | + * @param string $order_field_options_by |
|
221 | 221 | * |
222 | 222 | * @return array |
223 | 223 | */ |
@@ -375,7 +375,7 @@ discard block |
||
375 | 375 | /** |
376 | 376 | * @param string $handler |
377 | 377 | * |
378 | - * @return array |
|
378 | + * @return string[] |
|
379 | 379 | */ |
380 | 380 | public static function get_extra_fields_by_handler($handler) |
381 | 381 | { |
@@ -574,7 +574,7 @@ discard block |
||
574 | 574 | } |
575 | 575 | |
576 | 576 | /** |
577 | - * @return array |
|
577 | + * @return string[] |
|
578 | 578 | */ |
579 | 579 | public function get_field_types() |
580 | 580 | { |
@@ -584,7 +584,7 @@ discard block |
||
584 | 584 | /** |
585 | 585 | * @param int $id |
586 | 586 | * |
587 | - * @return null |
|
587 | + * @return string|null |
|
588 | 588 | */ |
589 | 589 | public function get_field_type_by_id($id) |
590 | 590 | { |
@@ -1826,7 +1826,7 @@ discard block |
||
1826 | 1826 | } |
1827 | 1827 | |
1828 | 1828 | /** |
1829 | - * @return array |
|
1829 | + * @return string[] |
|
1830 | 1830 | */ |
1831 | 1831 | public function getJqgridColumnNames() |
1832 | 1832 | { |
@@ -2086,7 +2086,7 @@ discard block |
||
2086 | 2086 | } |
2087 | 2087 | |
2088 | 2088 | /** |
2089 | - * @param array $columns |
|
2089 | + * @param string[] $columns |
|
2090 | 2090 | * @param array $column_model |
2091 | 2091 | * @param array $extraFields |
2092 | 2092 | * @return array |
@@ -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 |
@@ -359,7 +359,7 @@ discard block |
||
359 | 359 | |
360 | 360 | /** |
361 | 361 | * Get description titles by default |
362 | - * @return array |
|
362 | + * @return string[] |
|
363 | 363 | */ |
364 | 364 | public function get_default_description_title() |
365 | 365 | { |
@@ -378,7 +378,7 @@ discard block |
||
378 | 378 | |
379 | 379 | /** |
380 | 380 | * Get description titles editable by default |
381 | - * @return array |
|
381 | + * @return boolean[] |
|
382 | 382 | */ |
383 | 383 | public function get_default_description_title_editable() |
384 | 384 | { |
@@ -397,7 +397,7 @@ discard block |
||
397 | 397 | |
398 | 398 | /** |
399 | 399 | * Get description icons by default |
400 | - * @return array |
|
400 | + * @return string[] |
|
401 | 401 | */ |
402 | 402 | public function get_default_description_icon() |
403 | 403 | { |
@@ -417,7 +417,7 @@ discard block |
||
417 | 417 | |
418 | 418 | /** |
419 | 419 | * Get questions by default for help |
420 | - * @return array |
|
420 | + * @return string[] |
|
421 | 421 | */ |
422 | 422 | public function get_default_question() |
423 | 423 | { |
@@ -436,7 +436,7 @@ discard block |
||
436 | 436 | |
437 | 437 | /** |
438 | 438 | * Get informations by default for help |
439 | - * @return array |
|
439 | + * @return string[] |
|
440 | 440 | */ |
441 | 441 | public function get_default_information() |
442 | 442 | { |
@@ -574,7 +574,7 @@ discard block |
||
574 | 574 | /** |
575 | 575 | * get progress of a description |
576 | 576 | * |
577 | - * @return int |
|
577 | + * @return string |
|
578 | 578 | */ |
579 | 579 | public function get_progress() |
580 | 580 | { |
@@ -186,9 +186,9 @@ |
||
186 | 186 | |
187 | 187 | /** |
188 | 188 | * Get images files from remote host (with webservices) |
189 | - * @param array $file current ppt file details |
|
189 | + * @param string $file current ppt file details |
|
190 | 190 | * @param string $size The expected final size of the rendered slides |
191 | - * @return array images files |
|
191 | + * @return string images files |
|
192 | 192 | */ |
193 | 193 | private function _get_remote_ppt2lp_files($file, $size = null) |
194 | 194 | { |
@@ -1869,7 +1869,7 @@ discard block |
||
1869 | 1869 | |
1870 | 1870 | /** |
1871 | 1871 | * Get the extra terms (tags) that identify this item |
1872 | - * @return mixed |
|
1872 | + * @return string |
|
1873 | 1873 | */ |
1874 | 1874 | public function get_terms() |
1875 | 1875 | { |
@@ -2069,7 +2069,7 @@ discard block |
||
2069 | 2069 | |
2070 | 2070 | /** |
2071 | 2071 | * Opens/launches the item. Initialises runtime values. |
2072 | - * @return boolean True on success, false on failure. |
|
2072 | + * @return boolean|null True on success, false on failure. |
|
2073 | 2073 | */ |
2074 | 2074 | public function open($allow_new_attempt = false) |
2075 | 2075 | { |
@@ -3504,7 +3504,7 @@ discard block |
||
3504 | 3504 | |
3505 | 3505 | /** |
3506 | 3506 | * Checks if the current status is part of the list of status given |
3507 | - * @param array $list An array of status to check for. |
|
3507 | + * @param string[] $list An array of status to check for. |
|
3508 | 3508 | * If the current status is one of the strings, return true |
3509 | 3509 | * |
3510 | 3510 | * @return boolean True if the status was one of the given strings, |
@@ -3681,7 +3681,7 @@ discard block |
||
3681 | 3681 | /** |
3682 | 3682 | * Write objectives to DB. This method is separate from write_to_db() because otherwise |
3683 | 3683 | * objectives are lost as a side effect to AJAX and session concurrent access |
3684 | - * @return boolean True or false on error |
|
3684 | + * @return boolean|null True or false on error |
|
3685 | 3685 | */ |
3686 | 3686 | public function write_objectives_to_db() |
3687 | 3687 | { |
@@ -4322,7 +4322,7 @@ discard block |
||
4322 | 4322 | * Removes the relation between the current item and an audio file. The file |
4323 | 4323 | * is only removed from the lp_item table, but remains in the document table |
4324 | 4324 | * and directory |
4325 | - * @return bool |
|
4325 | + * @return false|null |
|
4326 | 4326 | */ |
4327 | 4327 | public function remove_audio() |
4328 | 4328 | { |
@@ -238,7 +238,7 @@ |
||
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. |
@@ -52,6 +52,7 @@ |
||
52 | 52 | /** |
53 | 53 | * Set id |
54 | 54 | * |
55 | + * @param integer $id |
|
55 | 56 | * @return integer |
56 | 57 | */ |
57 | 58 | public function setId($id) |
@@ -92,7 +92,7 @@ discard block |
||
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 |
||
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 |
||
133 | 133 | } |
134 | 134 | |
135 | 135 | /** |
136 | - * @return array |
|
136 | + * @return string[] |
|
137 | 137 | */ |
138 | 138 | public static function getMaskList() |
139 | 139 | { |
@@ -24,7 +24,7 @@ |
||
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, |