Completed
Push — master ( 22a899...88b5f9 )
by Matt
02:41
created
acp/similar_topics_module.php 1 patch
Indentation   +57 added lines, -57 removed lines patch added patch discarded remove patch
@@ -55,10 +55,10 @@  discard block
 block discarded – undo
55 55
 	public $u_action;
56 56
 
57 57
 	/**
58
-	* ACP module constructor
59
-	*
60
-	* @access public
61
-	*/
58
+	 * ACP module constructor
59
+	 *
60
+	 * @access public
61
+	 */
62 62
 	public function __construct()
63 63
 	{
64 64
 		global $phpbb_container;
@@ -81,12 +81,12 @@  discard block
 block discarded – undo
81 81
 	}
82 82
 
83 83
 	/**
84
-	* Main ACP module
85
-	*
86
-	* @param int $id
87
-	* @param string $mode
88
-	* @access public
89
-	*/
84
+	 * Main ACP module
85
+	 *
86
+	 * @param int $id
87
+	 * @param string $mode
88
+	 * @access public
89
+	 */
90 90
 	public function main($id, $mode)
91 91
 	{
92 92
 		$this->user->add_lang('acp/common');
@@ -256,11 +256,11 @@  discard block
 block discarded – undo
256 256
 	}
257 257
 
258 258
 	/**
259
-	* Check if config field values exceed 255 chars
260
-	*
261
-	* @return null
262
-	* @access protected
263
-	*/
259
+	 * Check if config field values exceed 255 chars
260
+	 *
261
+	 * @return null
262
+	 * @access protected
263
+	 */
264 264
 	protected function validate_config_length()
265 265
 	{
266 266
 		$arg_list = func_get_args();
@@ -274,12 +274,12 @@  discard block
 block discarded – undo
274 274
 	}
275 275
 
276 276
 	/**
277
-	* Check form key, trigger error if invalid
278
-	*
279
-	* @param string $form_key The form key value
280
-	* @return null
281
-	* @access protected
282
-	*/
277
+	 * Check form key, trigger error if invalid
278
+	 *
279
+	 * @param string $form_key The form key value
280
+	 * @return null
281
+	 * @access protected
282
+	 */
283 283
 	protected function check_form_key($form_key)
284 284
 	{
285 285
 		if (!check_form_key($form_key))
@@ -289,11 +289,11 @@  discard block
 block discarded – undo
289 289
 	}
290 290
 
291 291
 	/**
292
-	* Get forums list
293
-	*
294
-	* @return array	forum data rows
295
-	* @access protected
296
-	*/
292
+	 * Get forums list
293
+	 *
294
+	 * @return array	forum data rows
295
+	 * @access protected
296
+	 */
297 297
 	protected function get_forum_list()
298 298
 	{
299 299
 		$sql = 'SELECT forum_id, forum_name, similar_topic_forums
@@ -308,13 +308,13 @@  discard block
 block discarded – undo
308 308
 	}
309 309
 
310 310
 	/**
311
-	* Calculate the time in seconds based on requested time period length
312
-	*
313
-	* @param int $length user entered value
314
-	* @param string $type years, months, weeks, days (y|m|w|d)
315
-	* @return int time in seconds
316
-	* @access protected
317
-	*/
311
+	 * Calculate the time in seconds based on requested time period length
312
+	 *
313
+	 * @param int $length user entered value
314
+	 * @param string $type years, months, weeks, days (y|m|w|d)
315
+	 * @return int time in seconds
316
+	 * @access protected
317
+	 */
318 318
 	protected function set_pst_time($length, $type = 'y')
319 319
 	{
320 320
 		$type = isset($this->times[$type]) ? $type : 'y';
@@ -323,24 +323,24 @@  discard block
 block discarded – undo
323 323
 	}
324 324
 
325 325
 	/**
326
-	* Get the correct time period length value for the form
327
-	*
328
-	* @param int $time as a timestamp
329
-	* @param string $type years, months, weeks, days (y|m|w|d)
330
-	* @return int time converted to the given $type
331
-	* @access protected
332
-	*/
326
+	 * Get the correct time period length value for the form
327
+	 *
328
+	 * @param int $time as a timestamp
329
+	 * @param string $type years, months, weeks, days (y|m|w|d)
330
+	 * @return int time converted to the given $type
331
+	 * @access protected
332
+	 */
333 333
 	protected function get_pst_time($time, $type = '')
334 334
 	{
335 335
 		return isset($this->times[$type]) ? (int) round($time / $this->times[$type]) : 0;
336 336
 	}
337 337
 
338 338
 	/**
339
-	* Check for FULLTEXT index support
340
-	*
341
-	* @return bool True if FULLTEXT is fully supported, false otherwise
342
-	* @access protected
343
-	*/
339
+	 * Check for FULLTEXT index support
340
+	 *
341
+	 * @return bool True if FULLTEXT is fully supported, false otherwise
342
+	 * @access protected
343
+	 */
344 344
 	protected function fulltext_support_enabled()
345 345
 	{
346 346
 		if ($this->fulltext->is_supported())
@@ -352,11 +352,11 @@  discard block
 block discarded – undo
352 352
 	}
353 353
 
354 354
 	/**
355
-	* Enable FULLTEXT support for the topic_title
356
-	*
357
-	* @return null
358
-	* @access protected
359
-	*/
355
+	 * Enable FULLTEXT support for the topic_title
356
+	 *
357
+	 * @return null
358
+	 * @access protected
359
+	 */
360 360
 	protected function enable_fulltext_support()
361 361
 	{
362 362
 		if (!$this->fulltext->is_mysql())
@@ -379,13 +379,13 @@  discard block
 block discarded – undo
379 379
 	}
380 380
 
381 381
 	/**
382
-	* Return a variable if it is set, otherwise default
383
-	*
384
-	* @param mixed $var The variable to test
385
-	* @param mixed $default The default value to use
386
-	* @return mixed The value of the variable if set, otherwise default value
387
-	* @access protected
388
-	*/
382
+	 * Return a variable if it is set, otherwise default
383
+	 *
384
+	 * @param mixed $var The variable to test
385
+	 * @param mixed $default The default value to use
386
+	 * @return mixed The value of the variable if set, otherwise default value
387
+	 * @access protected
388
+	 */
389 389
 	protected function isset_or_default($var, $default)
390 390
 	{
391 391
 		return (isset($var)) ? $var : $default;
Please login to merge, or discard this patch.