@@ -59,10 +59,10 @@ discard block |
||
59 | 59 | public $u_action; |
60 | 60 | |
61 | 61 | /** |
62 | - * ACP module constructor |
|
63 | - * |
|
64 | - * @access public |
|
65 | - */ |
|
62 | + * ACP module constructor |
|
63 | + * |
|
64 | + * @access public |
|
65 | + */ |
|
66 | 66 | public function __construct() |
67 | 67 | { |
68 | 68 | global $config, $db, $request, $template, $user, $phpbb_log, $phpbb_root_path, $phpEx; |
@@ -85,12 +85,12 @@ discard block |
||
85 | 85 | } |
86 | 86 | |
87 | 87 | /** |
88 | - * Main ACP module |
|
89 | - * |
|
90 | - * @param int $id |
|
91 | - * @param string $mode |
|
92 | - * @access public |
|
93 | - */ |
|
88 | + * Main ACP module |
|
89 | + * |
|
90 | + * @param int $id |
|
91 | + * @param string $mode |
|
92 | + * @access public |
|
93 | + */ |
|
94 | 94 | public function main($id, $mode) |
95 | 95 | { |
96 | 96 | $form_key = 'acp_similar_topics'; |
@@ -254,11 +254,11 @@ discard block |
||
254 | 254 | } |
255 | 255 | |
256 | 256 | /** |
257 | - * Check if config field values exceed 255 chars |
|
258 | - * |
|
259 | - * @return null |
|
260 | - * @access protected |
|
261 | - */ |
|
257 | + * Check if config field values exceed 255 chars |
|
258 | + * |
|
259 | + * @return null |
|
260 | + * @access protected |
|
261 | + */ |
|
262 | 262 | protected function validate_config_length() |
263 | 263 | { |
264 | 264 | $arg_list = func_get_args(); |
@@ -272,12 +272,12 @@ discard block |
||
272 | 272 | } |
273 | 273 | |
274 | 274 | /** |
275 | - * Check form key, trigger error if invalid |
|
276 | - * |
|
277 | - * @param string $form_key The form key value |
|
278 | - * @return null |
|
279 | - * @access protected |
|
280 | - */ |
|
275 | + * Check form key, trigger error if invalid |
|
276 | + * |
|
277 | + * @param string $form_key The form key value |
|
278 | + * @return null |
|
279 | + * @access protected |
|
280 | + */ |
|
281 | 281 | protected function check_form_key($form_key) |
282 | 282 | { |
283 | 283 | if (!check_form_key($form_key)) |
@@ -287,11 +287,11 @@ discard block |
||
287 | 287 | } |
288 | 288 | |
289 | 289 | /** |
290 | - * Get forums list |
|
291 | - * |
|
292 | - * @return array forum data rows |
|
293 | - * @access protected |
|
294 | - */ |
|
290 | + * Get forums list |
|
291 | + * |
|
292 | + * @return array forum data rows |
|
293 | + * @access protected |
|
294 | + */ |
|
295 | 295 | protected function get_forum_list() |
296 | 296 | { |
297 | 297 | $sql = 'SELECT forum_id, forum_name, similar_topic_forums |
@@ -306,13 +306,13 @@ discard block |
||
306 | 306 | } |
307 | 307 | |
308 | 308 | /** |
309 | - * Calculate the $pst_time based on user input |
|
310 | - * |
|
311 | - * @param int $length user entered value |
|
312 | - * @param string $type years, months, weeks, days (y|m|w|d) |
|
313 | - * @return int time in seconds |
|
314 | - * @access protected |
|
315 | - */ |
|
309 | + * Calculate the $pst_time based on user input |
|
310 | + * |
|
311 | + * @param int $length user entered value |
|
312 | + * @param string $type years, months, weeks, days (y|m|w|d) |
|
313 | + * @return int time in seconds |
|
314 | + * @access protected |
|
315 | + */ |
|
316 | 316 | protected function set_pst_time($length, $type = 'y') |
317 | 317 | { |
318 | 318 | $type = array_key_exists($type, self::TIMES) ? $type : 'y'; |
@@ -321,24 +321,24 @@ discard block |
||
321 | 321 | } |
322 | 322 | |
323 | 323 | /** |
324 | - * Get the correct time $length value for the form |
|
325 | - * |
|
326 | - * @param int $time as a timestamp |
|
327 | - * @param string $type years, months, weeks, days (y|m|w|d) |
|
328 | - * @return int time converted to the given $type |
|
329 | - * @access protected |
|
330 | - */ |
|
324 | + * Get the correct time $length value for the form |
|
325 | + * |
|
326 | + * @param int $time as a timestamp |
|
327 | + * @param string $type years, months, weeks, days (y|m|w|d) |
|
328 | + * @return int time converted to the given $type |
|
329 | + * @access protected |
|
330 | + */ |
|
331 | 331 | protected function get_pst_time($time, $type = '') |
332 | 332 | { |
333 | 333 | return array_key_exists($type, self::TIMES) ? (int) round($time / self::TIMES[$type]) : 0; |
334 | 334 | } |
335 | 335 | |
336 | 336 | /** |
337 | - * Check for FULLTEXT index support |
|
338 | - * |
|
339 | - * @return bool True if FULLTEXT is fully supported, false otherwise |
|
340 | - * @access protected |
|
341 | - */ |
|
337 | + * Check for FULLTEXT index support |
|
338 | + * |
|
339 | + * @return bool True if FULLTEXT is fully supported, false otherwise |
|
340 | + * @access protected |
|
341 | + */ |
|
342 | 342 | protected function fulltext_support_enabled() |
343 | 343 | { |
344 | 344 | if ($this->fulltext->is_supported()) |
@@ -350,11 +350,11 @@ discard block |
||
350 | 350 | } |
351 | 351 | |
352 | 352 | /** |
353 | - * Enable FULLTEXT support for the topic_title |
|
354 | - * |
|
355 | - * @return null |
|
356 | - * @access protected |
|
357 | - */ |
|
353 | + * Enable FULLTEXT support for the topic_title |
|
354 | + * |
|
355 | + * @return null |
|
356 | + * @access protected |
|
357 | + */ |
|
358 | 358 | protected function enable_fulltext_support() |
359 | 359 | { |
360 | 360 | if (!$this->fulltext->is_mysql()) |
@@ -377,13 +377,13 @@ discard block |
||
377 | 377 | } |
378 | 378 | |
379 | 379 | /** |
380 | - * Return a variable if it is set, otherwise default |
|
381 | - * |
|
382 | - * @param mixed $var The variable to test |
|
383 | - * @param mixed $default The default value to use |
|
384 | - * @return mixed The value of the variable if set, otherwise default value |
|
385 | - * @access protected |
|
386 | - */ |
|
380 | + * Return a variable if it is set, otherwise default |
|
381 | + * |
|
382 | + * @param mixed $var The variable to test |
|
383 | + * @param mixed $default The default value to use |
|
384 | + * @return mixed The value of the variable if set, otherwise default value |
|
385 | + * @access protected |
|
386 | + */ |
|
387 | 387 | protected function isset_or_default($var, $default) |
388 | 388 | { |
389 | 389 | return (isset($var)) ? $var : $default; |