@@ -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 | { |
@@ -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 | { |
@@ -125,7 +125,6 @@ |
||
| 125 | 125 | * @param array $classes |
| 126 | 126 | * ul |
| 127 | 127 | * current |
| 128 | - * @param int $navNumber |
|
| 129 | 128 | * |
| 130 | 129 | * @return string |
| 131 | 130 | */ |
@@ -92,8 +92,6 @@ |
||
| 92 | 92 | * @since 0.1 |
| 93 | 93 | * |
| 94 | 94 | * @param string $tag The name of the action to be executed. |
| 95 | - * @param mixed $arg,... Optional additional arguments which are passed on to the functions |
|
| 96 | - * hooked to the action. |
|
| 97 | 95 | */ |
| 98 | 96 | public static function dispatch($tag, $arg = '') |
| 99 | 97 | { |
@@ -103,8 +103,7 @@ discard block |
||
| 103 | 103 | |
| 104 | 104 | if (!isset(self::$actions[$tag])) { |
| 105 | 105 | self::$actions[$tag] = 1; |
| 106 | - } else { |
|
| 107 | - ++self::$actions[$tag]; |
|
| 106 | + } else {++self::$actions[$tag]; |
|
| 108 | 107 | } |
| 109 | 108 | |
| 110 | 109 | // Do 'all' actions first |
@@ -137,9 +136,9 @@ discard block |
||
| 137 | 136 | } |
| 138 | 137 | |
| 139 | 138 | // Sort |
| 140 | - if (!isset(Filter::$mergedFilters[ $tag ])) { |
|
| 139 | + if (!isset(Filter::$mergedFilters[$tag])) { |
|
| 141 | 140 | ksort(Filter::$filters[$tag]); |
| 142 | - Filter::$mergedFilters[ $tag ] = true; |
|
| 141 | + Filter::$mergedFilters[$tag] = true; |
|
| 143 | 142 | } |
| 144 | 143 | |
| 145 | 144 | reset(Filter::$filters[$tag]); |
@@ -171,8 +170,7 @@ discard block |
||
| 171 | 170 | |
| 172 | 171 | if (!isset(self::$actions[$tag])) { |
| 173 | 172 | self::$actions[$tag] = 1; |
| 174 | - } else { |
|
| 175 | - ++self::$actions[$tag]; |
|
| 173 | + } else {++self::$actions[$tag]; |
|
| 176 | 174 | } |
| 177 | 175 | |
| 178 | 176 | // Do 'all' actions first |
@@ -195,12 +193,12 @@ discard block |
||
| 195 | 193 | } |
| 196 | 194 | |
| 197 | 195 | // Sort |
| 198 | - if (!isset($merged_filters[ $tag ])) { |
|
| 196 | + if (!isset($merged_filters[$tag])) { |
|
| 199 | 197 | ksort(Filter::$filters[$tag]); |
| 200 | - $merged_filters[ $tag ] = true; |
|
| 198 | + $merged_filters[$tag] = true; |
|
| 201 | 199 | } |
| 202 | 200 | |
| 203 | - reset(Filter::$filters[ $tag ]); |
|
| 201 | + reset(Filter::$filters[$tag]); |
|
| 204 | 202 | |
| 205 | 203 | do { |
| 206 | 204 | foreach ((array) current(Filter::$filters[$tag]) as $the_) { |
@@ -71,7 +71,6 @@ discard block |
||
| 71 | 71 | * @param string $tag The filter hook to which the function to be removed is hooked. |
| 72 | 72 | * @param callback $functionToRemove The name of the function which should be removed. |
| 73 | 73 | * @param int $priority optional. The priority of the function (default: 10). |
| 74 | - * @param int $accepted_args optional. The number of arguments the function accepts (default: 1). |
|
| 75 | 74 | * |
| 76 | 75 | * @return bool Whether the function existed before it was removed. |
| 77 | 76 | */ |
@@ -160,7 +159,6 @@ discard block |
||
| 160 | 159 | * |
| 161 | 160 | * @param string $tag The name of the filter hook. |
| 162 | 161 | * @param mixed $value The value on which the filters hooked to <tt>$tag</tt> are applied on. |
| 163 | - * @param mixed $var,... Additional variables passed to the functions hooked to <tt>$tag</tt>. |
|
| 164 | 162 | * |
| 165 | 163 | * @return mixed The filtered value after all hooked functions are applied to it. |
| 166 | 164 | */ |