@@ -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. |
@@ -71,6 +71,9 @@ |
||
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, |
@@ -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 | { |
@@ -64,6 +64,7 @@ |
||
64 | 64 | /** |
65 | 65 | * Set id |
66 | 66 | * |
67 | + * @param integer $id |
|
67 | 68 | * @return integer |
68 | 69 | */ |
69 | 70 | public function setId($id) |
@@ -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, |
@@ -64,6 +64,7 @@ |
||
64 | 64 | /** |
65 | 65 | * Set id |
66 | 66 | * |
67 | + * @param integer $id |
|
67 | 68 | * @return integer |
68 | 69 | */ |
69 | 70 | public function setId($id) |
@@ -306,7 +306,7 @@ |
||
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, |
@@ -14,6 +14,9 @@ discard block |
||
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 |
||
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 | { |
@@ -949,7 +949,6 @@ |
||
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) |