@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | * If a validator was not given, a default validator will be used to convert a given variable type to a default's type. |
30 | 30 | * In a case the conversion fails an existing value will not be changed |
31 | 31 | * |
32 | - * @return the current dataset object |
|
32 | + * @return null|Dataset current dataset object |
|
33 | 33 | */ |
34 | 34 | |
35 | 35 | public function addParam(string $name, $default, callable $validator = null) { |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | /** |
49 | 49 | * Add multiple params |
50 | 50 | * |
51 | - * @return the current dataset object |
|
51 | + * @return Dataset current dataset object |
|
52 | 52 | */ |
53 | 53 | |
54 | 54 | public function addParams(array $data) { |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | /** |
62 | 62 | * Update a value |
63 | 63 | * |
64 | - * @return true on success, false on error, or null if the param does not exist |
|
64 | + * @return null|boolean on success, false on error, or null if the param does not exist |
|
65 | 65 | */ |
66 | 66 | |
67 | 67 | public function set(string $name, $value) { |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | /** |
15 | 15 | * Validate a date using a given format |
16 | 16 | * |
17 | - * @return the formatted date or false on failure |
|
17 | + * @return string|null formatted date or false on failure |
|
18 | 18 | */ |
19 | 19 | |
20 | 20 | public static function validate(string $date, string $format) { |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | * Get a date from a given timestamp and format it according to a given pattern. |
68 | 68 | * If the timestamp is null, a current time will be used |
69 | 69 | * |
70 | - * @return the formatted date or false if a non-numeric value is used for timestamp |
|
70 | + * @return string formatted date or false if a non-numeric value is used for timestamp |
|
71 | 71 | */ |
72 | 72 | |
73 | 73 | public static function get(string $format = DATE_FORMAT_STANDART, int $time = null) { |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | /** |
79 | 79 | * Get a day from a given timestamp. If the timestamp is null, a current time will be used |
80 | 80 | * |
81 | - * @return the formatted day or false if a non-numeric value is used for timestamp |
|
81 | + * @return string formatted day or false if a non-numeric value is used for timestamp |
|
82 | 82 | */ |
83 | 83 | |
84 | 84 | public static function getDay(int $time = null) { |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | /** |
90 | 90 | * Get a month from a given timestamp. If the timestamp is null, a current time will be used |
91 | 91 | * |
92 | - * @return the formatted month or false if a non-numeric value is used for timestamp |
|
92 | + * @return string formatted month or false if a non-numeric value is used for timestamp |
|
93 | 93 | */ |
94 | 94 | |
95 | 95 | public static function getMonth(int $time = null) { |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | /** |
101 | 101 | * Get a year from a given timestamp. If the timestamp is null, a current time will be used |
102 | 102 | * |
103 | - * @return the formatted year or false if a non-numeric value is used for timestamp |
|
103 | + * @return string formatted year or false if a non-numeric value is used for timestamp |
|
104 | 104 | */ |
105 | 105 | |
106 | 106 | public static function getYear(int $time = null) { |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | /** |
190 | 190 | * Get an extnesion of a file |
191 | 191 | * |
192 | - * @return a string or false if check_exists is true and the file does not actually exists |
|
192 | + * @return string string or false if check_exists is true and the file does not actually exists |
|
193 | 193 | */ |
194 | 194 | |
195 | 195 | public static function getExtension(string $file_name, bool $check_exists = true) { |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | /** |
212 | 212 | * Get file contents |
213 | 213 | * |
214 | - * @return the read data or false on failure |
|
214 | + * @return string read data or false on failure |
|
215 | 215 | */ |
216 | 216 | |
217 | 217 | public static function getContents(string $file_name) { |
@@ -89,7 +89,7 @@ |
||
89 | 89 | /** |
90 | 90 | * Catch a POST value by the field key |
91 | 91 | * |
92 | - * @return true on success or false on failure |
|
92 | + * @return boolean on success or false on failure |
|
93 | 93 | */ |
94 | 94 | |
95 | 95 | public function post() { |
@@ -53,7 +53,7 @@ |
||
53 | 53 | /** |
54 | 54 | * Set a value |
55 | 55 | * |
56 | - * @return true if the result value is not empty, otherwise false |
|
56 | + * @return boolean if the result value is not empty, otherwise false |
|
57 | 57 | */ |
58 | 58 | |
59 | 59 | public function setValue(string $value) { |
@@ -148,7 +148,7 @@ |
||
148 | 148 | /** |
149 | 149 | * Set a value |
150 | 150 | * |
151 | - * @return true if the result value is not empty, otherwise false |
|
151 | + * @return boolean if the result value is not empty, otherwise false |
|
152 | 152 | */ |
153 | 153 | |
154 | 154 | public function setValue(string $value) { |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | /** |
19 | 19 | * Add a field to the form |
20 | 20 | * |
21 | - * @return true if the field was successfully added, otherwise false |
|
21 | + * @return boolean if the field was successfully added, otherwise false |
|
22 | 22 | */ |
23 | 23 | |
24 | 24 | private function addField(Form\Field $field) { |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | /** |
45 | 45 | * Add a text field |
46 | 46 | * |
47 | - * @return true if the field was successfully added, otherwise false |
|
47 | + * @return boolean if the field was successfully added, otherwise false |
|
48 | 48 | */ |
49 | 49 | |
50 | 50 | public function addText(string $key, string $value = '', |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | /** |
58 | 58 | * Add a select field |
59 | 59 | * |
60 | - * @return true if the field was successfully added, otherwise false |
|
60 | + * @return boolean if the field was successfully added, otherwise false |
|
61 | 61 | */ |
62 | 62 | |
63 | 63 | public function addSelect(string $key, string $value = '', |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | /** |
71 | 71 | * Add a checkbox field |
72 | 72 | * |
73 | - * @return true if the field was successfully added, otherwise false |
|
73 | + * @return boolean if the field was successfully added, otherwise false |
|
74 | 74 | */ |
75 | 75 | |
76 | 76 | public function addCheckbox(string $key, string $value = '') { |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | /** |
82 | 82 | * Check if valid POST data has been recieved |
83 | 83 | * |
84 | - * @return the check status |
|
84 | + * @return boolean check status |
|
85 | 85 | */ |
86 | 86 | |
87 | 87 | public function check() { |
@@ -25,7 +25,7 @@ |
||
25 | 25 | /** |
26 | 26 | * Convert a JSON value to a string |
27 | 27 | * |
28 | - * @return the string or false on failure |
|
28 | + * @return string string or false on failure |
|
29 | 29 | */ |
30 | 30 | |
31 | 31 | public static function stringify($value) { |
@@ -56,7 +56,7 @@ |
||
56 | 56 | /** |
57 | 57 | * Get a FILE-param value |
58 | 58 | * |
59 | - * @return the array with file info or false if the param does not exist |
|
59 | + * @return string array with file info or false if the param does not exist |
|
60 | 60 | */ |
61 | 61 | |
62 | 62 | public static function file(string $name) { |