@@ -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() { |
@@ -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) { |
@@ -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) { |
@@ -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 Dataset current dataset object |
|
33 | 33 | */ |
34 | 34 | |
35 | 35 | public function addParam(string $name, $default, callable $validator = null) : Dataset { |
@@ -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) : Dataset { |
@@ -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) { |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | /** |
65 | 65 | * Create a directory |
66 | 66 | * |
67 | - * @return true on success or false on failure |
|
67 | + * @return boolean on success or false on failure |
|
68 | 68 | */ |
69 | 69 | |
70 | 70 | public static function createDir(string $dir_name, int $mode = 0755) : bool { |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | /** |
76 | 76 | * Create a file |
77 | 77 | * |
78 | - * @return true on success or false on failure |
|
78 | + * @return boolean on success or false on failure |
|
79 | 79 | */ |
80 | 80 | |
81 | 81 | public static function createFile(string $file_name) : bool { |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | /** |
87 | 87 | * Remove a directory |
88 | 88 | * |
89 | - * @return true on success or false on failure |
|
89 | + * @return boolean on success or false on failure |
|
90 | 90 | */ |
91 | 91 | |
92 | 92 | public static function removeDir(string $dir_name, bool $recursive = false) : bool { |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | /** |
112 | 112 | * Remove a file |
113 | 113 | * |
114 | - * @return true on success or false on failure |
|
114 | + * @return boolean on success or false on failure |
|
115 | 115 | */ |
116 | 116 | |
117 | 117 | public static function removeFile(string $file_name) : bool { |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | /** |
192 | 192 | * Get an extnesion of a file |
193 | 193 | * |
194 | - * @return the string or false if check_exists is true and the file does not actually exists |
|
194 | + * @return string string or false if check_exists is true and the file does not actually exists |
|
195 | 195 | */ |
196 | 196 | |
197 | 197 | public static function getExtension(string $file_name, bool $check_exists = true) { |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | /** |
214 | 214 | * Get file contents |
215 | 215 | * |
216 | - * @return the read data or false on failure |
|
216 | + * @return string read data or false on failure |
|
217 | 217 | */ |
218 | 218 | |
219 | 219 | public static function getContents(string $file_name) { |
@@ -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) : bool { |
@@ -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 = '') : bool { |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | /** |
82 | 82 | * Check if valid POST data has been recieved |
83 | 83 | * |
84 | - * @return true if the data has been recieved, otherwise false |
|
84 | + * @return boolean if the data has been recieved, otherwise false |
|
85 | 85 | */ |
86 | 86 | |
87 | 87 | public function check() : bool { |