@@ -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) { |
@@ -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) { |
@@ -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) { |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | /** |
| 37 | 37 | * Set a query attribute. If the value is null, an attribute will be removed |
| 38 | 38 | * |
| 39 | - * @return the current url object |
|
| 39 | + * @return Url current url object |
|
| 40 | 40 | */ |
| 41 | 41 | |
| 42 | 42 | public function setAttribute(string $name, string $value = null) { |
@@ -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) { |