Completed
Push — develop-3.2.x ( 590e9c...2b2e07 )
by Matt
05:06 queued 01:35
created
event/listener.php 1 patch
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -21,23 +21,23 @@  discard block
 block discarded – undo
21 21
 	protected $similar_topics;
22 22
 
23 23
 	/**
24
-	* Constructor
25
-	*
26
-	* @param \vse\similartopics\core\similar_topics $similar_topics
27
-	* @access public
28
-	*/
24
+	 * Constructor
25
+	 *
26
+	 * @param \vse\similartopics\core\similar_topics $similar_topics
27
+	 * @access public
28
+	 */
29 29
 	public function __construct(\vse\similartopics\core\similar_topics $similar_topics)
30 30
 	{
31 31
 		$this->similar_topics = $similar_topics;
32 32
 	}
33 33
 
34 34
 	/**
35
-	* Assign functions defined in this class to event listeners in the core
36
-	*
37
-	* @return array
38
-	* @static
39
-	* @access public
40
-	*/
35
+	 * Assign functions defined in this class to event listeners in the core
36
+	 *
37
+	 * @return array
38
+	 * @static
39
+	 * @access public
40
+	 */
41 41
 	static public function getSubscribedEvents()
42 42
 	{
43 43
 		return array(
@@ -47,12 +47,12 @@  discard block
 block discarded – undo
47 47
 	}
48 48
 
49 49
 	/**
50
-	* Display similar topics
51
-	*
52
-	* @param \phpbb\event\data $event The event object
53
-	* @return null
54
-	* @access public
55
-	*/
50
+	 * Display similar topics
51
+	 *
52
+	 * @param \phpbb\event\data $event The event object
53
+	 * @return null
54
+	 * @access public
55
+	 */
56 56
 	public function display_similar_topics($event)
57 57
 	{
58 58
 		// Return early if no reason to display similar topics
@@ -65,12 +65,12 @@  discard block
 block discarded – undo
65 65
 	}
66 66
 
67 67
 	/**
68
-	* Add custom permissions language variables
69
-	*
70
-	* @param \phpbb\event\data $event The event object
71
-	* @return null
72
-	* @access public
73
-	*/
68
+	 * Add custom permissions language variables
69
+	 *
70
+	 * @param \phpbb\event\data $event The event object
71
+	 * @return null
72
+	 * @access public
73
+	 */
74 74
 	public function add_permissions($event)
75 75
 	{
76 76
 		$permissions = $event['permissions'];
Please login to merge, or discard this patch.
acp/similar_topics_module.php 1 patch
Indentation   +55 added lines, -55 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,10 +81,10 @@  discard block
 block discarded – undo
81 81
 	}
82 82
 
83 83
 	/**
84
-	* Main ACP module
85
-	*
86
-	* @access public
87
-	*/
84
+	 * Main ACP module
85
+	 *
86
+	 * @access public
87
+	 */
88 88
 	public function main()
89 89
 	{
90 90
 		$this->user->add_lang_ext('vse/similartopics', 'acp_similar_topics');
@@ -247,11 +247,11 @@  discard block
 block discarded – undo
247 247
 	}
248 248
 
249 249
 	/**
250
-	* Check if config field values exceed 255 chars
251
-	*
252
-	* @return null
253
-	* @access protected
254
-	*/
250
+	 * Check if config field values exceed 255 chars
251
+	 *
252
+	 * @return null
253
+	 * @access protected
254
+	 */
255 255
 	protected function validate_config_length()
256 256
 	{
257 257
 		$arg_list = func_get_args();
@@ -265,12 +265,12 @@  discard block
 block discarded – undo
265 265
 	}
266 266
 
267 267
 	/**
268
-	* Check form key, trigger error if invalid
269
-	*
270
-	* @param string $form_key The form key value
271
-	* @return null
272
-	* @access protected
273
-	*/
268
+	 * Check form key, trigger error if invalid
269
+	 *
270
+	 * @param string $form_key The form key value
271
+	 * @return null
272
+	 * @access protected
273
+	 */
274 274
 	protected function check_form_key($form_key)
275 275
 	{
276 276
 		if (!check_form_key($form_key))
@@ -280,11 +280,11 @@  discard block
 block discarded – undo
280 280
 	}
281 281
 
282 282
 	/**
283
-	* Get forums list
284
-	*
285
-	* @return array	forum data rows
286
-	* @access protected
287
-	*/
283
+	 * Get forums list
284
+	 *
285
+	 * @return array	forum data rows
286
+	 * @access protected
287
+	 */
288 288
 	protected function get_forum_list()
289 289
 	{
290 290
 		$sql = 'SELECT forum_id, forum_name, similar_topic_forums
@@ -299,13 +299,13 @@  discard block
 block discarded – undo
299 299
 	}
300 300
 
301 301
 	/**
302
-	* Calculate the time in seconds based on requested time period length
303
-	*
304
-	* @param int $length user entered value
305
-	* @param string $type years, months, weeks, days (y|m|w|d)
306
-	* @return int time in seconds
307
-	* @access protected
308
-	*/
302
+	 * Calculate the time in seconds based on requested time period length
303
+	 *
304
+	 * @param int $length user entered value
305
+	 * @param string $type years, months, weeks, days (y|m|w|d)
306
+	 * @return int time in seconds
307
+	 * @access protected
308
+	 */
309 309
 	protected function set_pst_time($length, $type = 'y')
310 310
 	{
311 311
 		$type = isset($this->times[$type]) ? $type : 'y';
@@ -314,24 +314,24 @@  discard block
 block discarded – undo
314 314
 	}
315 315
 
316 316
 	/**
317
-	* Get the correct time period length value for the form
318
-	*
319
-	* @param int $time as a timestamp
320
-	* @param string $type years, months, weeks, days (y|m|w|d)
321
-	* @return int time converted to the given $type
322
-	* @access protected
323
-	*/
317
+	 * Get the correct time period length value for the form
318
+	 *
319
+	 * @param int $time as a timestamp
320
+	 * @param string $type years, months, weeks, days (y|m|w|d)
321
+	 * @return int time converted to the given $type
322
+	 * @access protected
323
+	 */
324 324
 	protected function get_pst_time($time, $type = '')
325 325
 	{
326 326
 		return isset($this->times[$type]) ? (int) round($time / $this->times[$type]) : 0;
327 327
 	}
328 328
 
329 329
 	/**
330
-	* Check for FULLTEXT index support
331
-	*
332
-	* @return bool True if FULLTEXT is fully supported, false otherwise
333
-	* @access protected
334
-	*/
330
+	 * Check for FULLTEXT index support
331
+	 *
332
+	 * @return bool True if FULLTEXT is fully supported, false otherwise
333
+	 * @access protected
334
+	 */
335 335
 	protected function fulltext_support_enabled()
336 336
 	{
337 337
 		if ($this->fulltext->is_supported())
@@ -343,11 +343,11 @@  discard block
 block discarded – undo
343 343
 	}
344 344
 
345 345
 	/**
346
-	* Enable FULLTEXT support for the topic_title
347
-	*
348
-	* @return null
349
-	* @access protected
350
-	*/
346
+	 * Enable FULLTEXT support for the topic_title
347
+	 *
348
+	 * @return null
349
+	 * @access protected
350
+	 */
351 351
 	protected function enable_fulltext_support()
352 352
 	{
353 353
 		if (!$this->fulltext->is_mysql())
@@ -370,13 +370,13 @@  discard block
 block discarded – undo
370 370
 	}
371 371
 
372 372
 	/**
373
-	* Return a variable if it is set, otherwise default
374
-	*
375
-	* @param mixed $var The variable to test
376
-	* @param mixed $default The default value to use
377
-	* @return mixed The value of the variable if set, otherwise default value
378
-	* @access protected
379
-	*/
373
+	 * Return a variable if it is set, otherwise default
374
+	 *
375
+	 * @param mixed $var The variable to test
376
+	 * @param mixed $default The default value to use
377
+	 * @return mixed The value of the variable if set, otherwise default value
378
+	 * @access protected
379
+	 */
380 380
 	protected function isset_or_default($var, $default)
381 381
 	{
382 382
 		return isset($var) ? $var : $default;
Please login to merge, or discard this patch.
event/ucp_listener.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -57,12 +57,12 @@  discard block
 block discarded – undo
57 57
 	}
58 58
 
59 59
 	/**
60
-	* Assign functions defined in this class to event listeners in the core
61
-	*
62
-	* @return array
63
-	* @static
64
-	* @access public
65
-	*/
60
+	 * Assign functions defined in this class to event listeners in the core
61
+	 *
62
+	 * @return array
63
+	 * @static
64
+	 * @access public
65
+	 */
66 66
 	static public function getSubscribedEvents()
67 67
 	{
68 68
 		return array(
@@ -72,12 +72,12 @@  discard block
 block discarded – undo
72 72
 	}
73 73
 
74 74
 	/**
75
-	* Get user's Similar Topics option and display it in UCP Prefs View page
76
-	*
77
-	* @param \phpbb\event\data $event The event object
78
-	* @return null
79
-	* @access public
80
-	*/
75
+	 * Get user's Similar Topics option and display it in UCP Prefs View page
76
+	 *
77
+	 * @param \phpbb\event\data $event The event object
78
+	 * @return null
79
+	 * @access public
80
+	 */
81 81
 	public function ucp_prefs_get_data($event)
82 82
 	{
83 83
 		// Request the user option vars and add them to the data array
@@ -97,12 +97,12 @@  discard block
 block discarded – undo
97 97
 	}
98 98
 
99 99
 	/**
100
-	* Add user's Similar Topics option state into the sql_array
101
-	*
102
-	* @param \phpbb\event\data $event The event object
103
-	* @return null
104
-	* @access public
105
-	*/
100
+	 * Add user's Similar Topics option state into the sql_array
101
+	 *
102
+	 * @param \phpbb\event\data $event The event object
103
+	 * @return null
104
+	 * @access public
105
+	 */
106 106
 	public function ucp_prefs_set_data($event)
107 107
 	{
108 108
 		$event['sql_ary'] = array_merge($event['sql_ary'], array(
Please login to merge, or discard this patch.