@@ -137,7 +137,7 @@ |
||
| 137 | 137 | * |
| 138 | 138 | * @param string $email |
| 139 | 139 | * |
| 140 | - * @return array |
|
| 140 | + * @return string |
|
| 141 | 141 | */ |
| 142 | 142 | public function getUserDataByEmail($email) |
| 143 | 143 | { |
@@ -24,6 +24,9 @@ discard block |
||
| 24 | 24 | return setcookie($this->name, $this->value, $this->expire, $this->path); |
| 25 | 25 | } |
| 26 | 26 | |
| 27 | + /** |
|
| 28 | + * @return string |
|
| 29 | + */ |
|
| 27 | 30 | public function getValue() |
| 28 | 31 | { |
| 29 | 32 | return (isset($_COOKIE[$this->name])) ? $_COOKIE[$this->name] : false; |
@@ -63,7 +66,7 @@ discard block |
||
| 63 | 66 | } |
| 64 | 67 | |
| 65 | 68 | /** |
| 66 | - * @param $path |
|
| 69 | + * @param string $path |
|
| 67 | 70 | */ |
| 68 | 71 | public function setPath($path) |
| 69 | 72 | { |
@@ -10,6 +10,9 @@ discard block |
||
| 10 | 10 | |
| 11 | 11 | private $cookieName = 'auth'; |
| 12 | 12 | |
| 13 | + /** |
|
| 14 | + * @param string $prefix |
|
| 15 | + */ |
|
| 13 | 16 | public function __construct($pdo, $prefix, $config) |
| 14 | 17 | { |
| 15 | 18 | $this->pdo = $pdo; |
@@ -83,7 +86,6 @@ discard block |
||
| 83 | 86 | /** |
| 84 | 87 | * Destroy session. |
| 85 | 88 | * |
| 86 | - * @param string $hash Cookie hash |
|
| 87 | 89 | * |
| 88 | 90 | * @return bool |
| 89 | 91 | */ |
@@ -38,6 +38,7 @@ |
||
| 38 | 38 | /** |
| 39 | 39 | * Displays an error message in html. |
| 40 | 40 | * |
| 41 | + * @param integer $code |
|
| 41 | 42 | * @return string |
| 42 | 43 | */ |
| 43 | 44 | public function displayDefaultMessage($code, $message, $text) |
@@ -80,7 +80,7 @@ |
||
| 80 | 80 | /** |
| 81 | 81 | * Handle exceptions. |
| 82 | 82 | * |
| 83 | - * @param Exception $e |
|
| 83 | + * @param \ErrorException $e |
|
| 84 | 84 | */ |
| 85 | 85 | public function handleException($e) |
| 86 | 86 | { |
@@ -181,7 +181,7 @@ discard block |
||
| 181 | 181 | * |
| 182 | 182 | * @example en-us |
| 183 | 183 | * |
| 184 | - * @param string $laguage |
|
| 184 | + * @param string $language |
|
| 185 | 185 | */ |
| 186 | 186 | public function setLanguage($language) |
| 187 | 187 | { |
@@ -461,6 +461,9 @@ discard block |
||
| 461 | 461 | $this->skipDays = $skipDays; |
| 462 | 462 | } |
| 463 | 463 | |
| 464 | + /** |
|
| 465 | + * @param string[] $items |
|
| 466 | + */ |
|
| 464 | 467 | public function setItems($items) |
| 465 | 468 | { |
| 466 | 469 | $this->items = $items; |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | /** |
| 144 | 144 | * Get item title. |
| 145 | 145 | * |
| 146 | - * @return bool|string |
|
| 146 | + * @return false|string |
|
| 147 | 147 | */ |
| 148 | 148 | public function getTitle() |
| 149 | 149 | { |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | /** |
| 158 | 158 | * Get item link. |
| 159 | 159 | * |
| 160 | - * @return bool|string |
|
| 160 | + * @return false|string |
|
| 161 | 161 | */ |
| 162 | 162 | public function getLink() |
| 163 | 163 | { |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | /** |
| 172 | 172 | * Get item description. |
| 173 | 173 | * |
| 174 | - * @return bool|string |
|
| 174 | + * @return false|string |
|
| 175 | 175 | */ |
| 176 | 176 | public function getDescription() |
| 177 | 177 | { |
@@ -187,7 +187,7 @@ discard block |
||
| 187 | 187 | /** |
| 188 | 188 | * Get item author. |
| 189 | 189 | * |
| 190 | - * @return bool|string |
|
| 190 | + * @return false|string |
|
| 191 | 191 | */ |
| 192 | 192 | public function getAuthor() |
| 193 | 193 | { |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | /** |
| 202 | 202 | * Get item category. |
| 203 | 203 | * |
| 204 | - * @return bool|string |
|
| 204 | + * @return false|string |
|
| 205 | 205 | */ |
| 206 | 206 | public function getCategory() |
| 207 | 207 | { |
@@ -215,7 +215,7 @@ discard block |
||
| 215 | 215 | /** |
| 216 | 216 | * Get item pub date. |
| 217 | 217 | * |
| 218 | - * @return bool|string |
|
| 218 | + * @return false|string |
|
| 219 | 219 | */ |
| 220 | 220 | public function getPubDate() |
| 221 | 221 | { |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | * @param bool $shuldEmpty |
| 37 | 37 | * @param array $msg Custom messages ['empty', 'not_empty'] |
| 38 | 38 | * |
| 39 | - * @return this |
|
| 39 | + * @return Validator |
|
| 40 | 40 | */ |
| 41 | 41 | public function checkEmpty($field, $value, $shuldEmpty = false, $msg = []) |
| 42 | 42 | { |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | * @param int $max Max characters in string |
| 65 | 65 | * @param array $msg Custom messages ['short', 'long'] |
| 66 | 66 | * |
| 67 | - * @return this |
|
| 67 | + * @return Validator |
|
| 68 | 68 | */ |
| 69 | 69 | public function checkChar($field, $value, $min = 0, $max = 255, $msg = []) |
| 70 | 70 | { |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | * @param int $max Max value |
| 114 | 114 | * @param array $msg Custom messages ['low', 'high'] |
| 115 | 115 | * |
| 116 | - * @return this |
|
| 116 | + * @return Validator |
|
| 117 | 117 | */ |
| 118 | 118 | public function checkInt($field, $value, $min = 0, $max = false, $msg = []) |
| 119 | 119 | { |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | * @param string $format Date format |
| 141 | 141 | * @param array $msg Custom messages ['invalid'] |
| 142 | 142 | * |
| 143 | - * @return this |
|
| 143 | + * @return Validator |
|
| 144 | 144 | */ |
| 145 | 145 | public function checkDatetime($field, $value, $format = 'Y-m-d', $msg = []) |
| 146 | 146 | { |
@@ -122,7 +122,6 @@ |
||
| 122 | 122 | * @param array $classes |
| 123 | 123 | * ul |
| 124 | 124 | * current |
| 125 | - * @param int $navNumber |
|
| 126 | 125 | * |
| 127 | 126 | * @return string |
| 128 | 127 | */ |