@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | * When using just Request::post('x') it will return the raw and untouched $_POST['x'], when using it like |
| 15 | 15 | * Request::post('x', true) then it will return a trimmed and stripped $_POST['x'] ! |
| 16 | 16 | * |
| 17 | - * @param string|array $key key |
|
| 17 | + * @param string $key key |
|
| 18 | 18 | * @param bool $clean marker for optional cleaning of the var |
| 19 | 19 | * @return mixed the key's value or nothing |
| 20 | 20 | */ |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | * Returns the state of a checkbox. |
| 42 | 42 | * |
| 43 | 43 | * @param mixed $key key |
| 44 | - * @return mixed state of the checkbox |
|
| 44 | + * @return integer|null state of the checkbox |
|
| 45 | 45 | */ |
| 46 | 46 | public static function postCheckbox($key) |
| 47 | 47 | { |
@@ -50,8 +50,8 @@ discard block |
||
| 50 | 50 | |
| 51 | 51 | /** |
| 52 | 52 | * gets/returns the value of a specific key of the GET super-global |
| 53 | - * @param mixed $key key |
|
| 54 | - * @return mixed the key's value or nothing |
|
| 53 | + * @param string $key key |
|
| 54 | + * @return string the key's value or nothing |
|
| 55 | 55 | */ |
| 56 | 56 | public static function get($key) |
| 57 | 57 | { |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | |
| 63 | 63 | /** |
| 64 | 64 | * gets/returns the value of a specific key of the COOKIE super-global |
| 65 | - * @param mixed $key key |
|
| 65 | + * @param string $key key |
|
| 66 | 66 | * @return mixed the key's value or nothing |
| 67 | 67 | */ |
| 68 | 68 | public static function cookie($key) |