@@ -105,7 +105,7 @@ |
||
105 | 105 | * |
106 | 106 | * @throws Exception |
107 | 107 | * |
108 | - * @return array |
|
108 | + * @return integer|null |
|
109 | 109 | */ |
110 | 110 | public static function fetchByRecordId(Configuration $config, $recordId): array |
111 | 111 | { |
@@ -95,7 +95,6 @@ |
||
95 | 95 | * Removes the news $newsId from all categories. |
96 | 96 | * Returns true on success, otherwise false. |
97 | 97 | * |
98 | - * @param int $categoryId |
|
99 | 98 | * @return bool |
100 | 99 | */ |
101 | 100 | public function removeNewsFromAllCategories($newsId) |
@@ -236,7 +236,7 @@ discard block |
||
236 | 236 | } |
237 | 237 | |
238 | 238 | /** |
239 | - * @return string |
|
239 | + * @return integer |
|
240 | 240 | */ |
241 | 241 | public function getUserId() |
242 | 242 | { |
@@ -264,7 +264,6 @@ discard block |
||
264 | 264 | } |
265 | 265 | |
266 | 266 | /** |
267 | - * @param $showHome $active |
|
268 | 267 | * |
269 | 268 | * @return Entity |
270 | 269 | */ |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | * @param string $password Password |
67 | 67 | * @param string $database Database name |
68 | 68 | * |
69 | - * @return bool true, if connected, otherwise false |
|
69 | + * @return null|boolean true, if connected, otherwise false |
|
70 | 70 | */ |
71 | 71 | public function connect($host, $user, $password, $database = '') |
72 | 72 | { |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | /** |
134 | 134 | * Fetch a result row as an object. |
135 | 135 | * |
136 | - * @param mixed $result |
|
136 | + * @param resource $result |
|
137 | 137 | * |
138 | 138 | * @return mixed |
139 | 139 | */ |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | /** |
193 | 193 | * Logs the queries. |
194 | 194 | * |
195 | - * @return int |
|
195 | + * @return string |
|
196 | 196 | */ |
197 | 197 | public function log() |
198 | 198 | { |
@@ -203,6 +203,7 @@ discard block |
||
203 | 203 | * Returns just one row. |
204 | 204 | * |
205 | 205 | * @param string |
206 | + * @param string $query |
|
206 | 207 | * |
207 | 208 | * @return string |
208 | 209 | */ |
@@ -294,7 +295,7 @@ discard block |
||
294 | 295 | * |
295 | 296 | * @param string $prefix Table prefix |
296 | 297 | * |
297 | - * @return array |
|
298 | + * @return string[] |
|
298 | 299 | */ |
299 | 300 | public function getTableNames($prefix = '') |
300 | 301 | { |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | * @param string |
70 | 70 | * @param string |
71 | 71 | * |
72 | - * @return bool |
|
72 | + * @return null|boolean |
|
73 | 73 | */ |
74 | 74 | public function connect($host, $user, $passwd, $db = '') |
75 | 75 | { |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | /** |
215 | 215 | * Logs the queries. |
216 | 216 | * |
217 | - * @return int |
|
217 | + * @return string |
|
218 | 218 | */ |
219 | 219 | public function log() |
220 | 220 | { |
@@ -248,7 +248,7 @@ discard block |
||
248 | 248 | * |
249 | 249 | * @param string $prefix Table prefix |
250 | 250 | * |
251 | - * @return array |
|
251 | + * @return string[] |
|
252 | 252 | */ |
253 | 253 | public function getTableNames($prefix = '') |
254 | 254 | { |
@@ -1279,7 +1279,7 @@ discard block |
||
1279 | 1279 | * @param int $recordId Record id |
1280 | 1280 | * @param string $language Language |
1281 | 1281 | * |
1282 | - * @return int |
|
1282 | + * @return boolean |
|
1283 | 1283 | */ |
1284 | 1284 | public function addCategoryRelations(Array $categories, $recordId, $language) |
1285 | 1285 | { |
@@ -2575,11 +2575,11 @@ discard block |
||
2575 | 2575 | /** |
2576 | 2576 | * Build the SQL query for retrieving faq records according to the constraints provided. |
2577 | 2577 | * |
2578 | - * @param $queryType |
|
2579 | - * @param $categoryId |
|
2580 | - * @param $bDownwards |
|
2581 | - * @param $lang |
|
2582 | - * @param $date |
|
2578 | + * @param string $queryType |
|
2579 | + * @param integer $categoryId |
|
2580 | + * @param boolean $bDownwards |
|
2581 | + * @param string $lang |
|
2582 | + * @param string $date |
|
2583 | 2583 | * @param $faqId |
2584 | 2584 | * |
2585 | 2585 | * @return string |
@@ -2703,7 +2703,7 @@ discard block |
||
2703 | 2703 | * Build a logic sequence, for a WHERE statement, of those category IDs |
2704 | 2704 | * children of the provided category ID, if any. |
2705 | 2705 | * |
2706 | - * @param $nCatid |
|
2706 | + * @param integer $nCatid |
|
2707 | 2707 | * @param $logicOp |
2708 | 2708 | * @param $oCat |
2709 | 2709 | * |
@@ -262,7 +262,7 @@ |
||
262 | 262 | * Adds a configuration item for the database. |
263 | 263 | * |
264 | 264 | * @param string $name |
265 | - * @param mixed $value |
|
265 | + * @param string $value |
|
266 | 266 | * |
267 | 267 | * @return bool |
268 | 268 | */ |
@@ -344,7 +344,7 @@ |
||
344 | 344 | |
345 | 345 | /** |
346 | 346 | * Returns the HTTP GET parameters. |
347 | - * @return array |
|
347 | + * @return string |
|
348 | 348 | */ |
349 | 349 | protected function getHttpGetParameters(): array |
350 | 350 | { |
@@ -115,7 +115,7 @@ |
||
115 | 115 | /** |
116 | 116 | * Constructor. |
117 | 117 | * |
118 | - * @param PMF_Configuration $config |
|
118 | + * @param Configuration $config |
|
119 | 119 | * @param string $user User |
120 | 120 | * |
121 | 121 | * @return LinkVerifier |