Passed
Push — master ( 76796c...626ce4 )
by Stanislav
03:45
created
acp/acp_pmsearch_module.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -277,10 +277,10 @@
 block discarded – undo
277 277
 		return $max_post_id;
278 278
 	}
279 279
 	/**
280
-	* Initialises a search backend object
281
-	*
282
-	* @return false if no error occurred else an error message
283
-	*/
280
+	 * Initialises a search backend object
281
+	 *
282
+	 * @return false if no error occurred else an error message
283
+	 */
284 284
 	function init_search($type, &$search, &$error)
285 285
 	{
286 286
 		global $phpbb_root_path, $phpEx, $user, $auth, $config, $db, $table_prefix;
Please login to merge, or discard this patch.
search/pm_search_fulltext_native.php 1 patch
Indentation   +52 added lines, -52 removed lines patch added patch discarded remove patch
@@ -20,10 +20,10 @@  discard block
 block discarded – undo
20 20
 	protected $target;
21 21
 
22 22
 	/**
23
-	* Returns the name of this search backend to be displayed to administrators
24
-	*
25
-	* @return string Name
26
-	*/
23
+	 * Returns the name of this search backend to be displayed to administrators
24
+	 *
25
+	 * @return string Name
26
+	 */
27 27
 	public function get_name($type = 'normal')
28 28
 	{
29 29
 		switch ($type)
@@ -50,20 +50,20 @@  discard block
 block discarded – undo
50 50
 	}
51 51
 
52 52
 	/**
53
-	* This function fills $this->search_query with the cleaned user search query
54
-	*
55
-	* If $terms is 'any' then the words will be extracted from the search query
56
-	* and combined with | inside brackets. They will afterwards be treated like
57
-	* an standard search query.
58
-	*
59
-	* Then it analyses the query and fills the internal arrays $must_not_contain_ids,
60
-	* $must_contain_ids and $must_exclude_one_ids which are later used by keyword_search()
61
-	*
62
-	* @param	string	$keywords	contains the search query string as entered by the user
63
-	* @param	string	$terms		is either 'all' (use search query as entered, default words to 'must be contained in post')
64
-	* 	or 'any' (find all posts containing at least one of the given words)
65
-	* @return	boolean				false if no valid keywords were found and otherwise true
66
-	*/
53
+	 * This function fills $this->search_query with the cleaned user search query
54
+	 *
55
+	 * If $terms is 'any' then the words will be extracted from the search query
56
+	 * and combined with | inside brackets. They will afterwards be treated like
57
+	 * an standard search query.
58
+	 *
59
+	 * Then it analyses the query and fills the internal arrays $must_not_contain_ids,
60
+	 * $must_contain_ids and $must_exclude_one_ids which are later used by keyword_search()
61
+	 *
62
+	 * @param	string	$keywords	contains the search query string as entered by the user
63
+	 * @param	string	$terms		is either 'all' (use search query as entered, default words to 'must be contained in post')
64
+	 * 	or 'any' (find all posts containing at least one of the given words)
65
+	 * @return	boolean				false if no valid keywords were found and otherwise true
66
+	 */
67 67
 	public function split_keywords($keywords, $terms)
68 68
 	{
69 69
 		$swl_table = PRIVMSGS_TABLE . '_swl';
@@ -367,22 +367,22 @@  discard block
 block discarded – undo
367 367
 	}
368 368
 
369 369
 	/**
370
-	* Performs a search on keywords depending on display specific params. You have to run split_keywords() first
371
-	*
372
-	* @param	string		$type				wchich type of table to be searched defaults to norma
373
-	* @param	string		$fields				contains either titleonly (topic titles should be searched), msgonly (only message bodies should be searched), firstpost (only subject and body of the first post should be searched) or all (all post bodies and subjects should be searched)
374
-	* @param	string		$terms				is either 'all' (use query as entered, words without prefix should default to "have to be in field") or 'any' (ignore search query parts and just return all posts that contain any of the specified words)
375
-	* @param	array		$sort_by_sql		contains SQL code for the ORDER BY part of a query
376
-	* @param	string		$sort_key			is the key of $sort_by_sql for the selected sorting
377
-	* @param	string		$sort_dir			is either a or d representing ASC and DESC
378
-	* @param	string		$sort_days			specifies the maximum amount of days a post may be old
379
-	* @param	array		$author_ary			an array of author ids if the author should be ignored during the search the array is empty
380
-	* @param	string		$author_name		specifies the author match, when ANONYMOUS is also a search-match
381
-	* @param	array		&$id_ary			passed by reference, to be filled with ids for the page specified by $start and $per_page, should be ordered
382
-	* @param	int			$start				indicates the first index of the page
383
-	* @param	int			$per_page			number of ids each page is supposed to contain
384
-	* @return	boolean|int						total number of results
385
-	*/
370
+	 * Performs a search on keywords depending on display specific params. You have to run split_keywords() first
371
+	 *
372
+	 * @param	string		$type				wchich type of table to be searched defaults to norma
373
+	 * @param	string		$fields				contains either titleonly (topic titles should be searched), msgonly (only message bodies should be searched), firstpost (only subject and body of the first post should be searched) or all (all post bodies and subjects should be searched)
374
+	 * @param	string		$terms				is either 'all' (use query as entered, words without prefix should default to "have to be in field") or 'any' (ignore search query parts and just return all posts that contain any of the specified words)
375
+	 * @param	array		$sort_by_sql		contains SQL code for the ORDER BY part of a query
376
+	 * @param	string		$sort_key			is the key of $sort_by_sql for the selected sorting
377
+	 * @param	string		$sort_dir			is either a or d representing ASC and DESC
378
+	 * @param	string		$sort_days			specifies the maximum amount of days a post may be old
379
+	 * @param	array		$author_ary			an array of author ids if the author should be ignored during the search the array is empty
380
+	 * @param	string		$author_name		specifies the author match, when ANONYMOUS is also a search-match
381
+	 * @param	array		&$id_ary			passed by reference, to be filled with ids for the page specified by $start and $per_page, should be ordered
382
+	 * @param	int			$start				indicates the first index of the page
383
+	 * @param	int			$per_page			number of ids each page is supposed to contain
384
+	 * @return	boolean|int						total number of results
385
+	 */
386 386
 	public function keyword_search($type, $fields, $terms, $sort_by_sql, $sort_key, $sort_dir, $sort_days, $ex_fid_ary, $post_visibility, $topic_id, $author_ary, $author_name, &$id_ary, &$start, $per_page)
387 387
 	{
388 388
 		// No keywords? No posts.
@@ -718,15 +718,15 @@  discard block
 block discarded – undo
718 718
 	}
719 719
 
720 720
 	/**
721
-	* Updates wordlist and wordmatch tables when a message is posted or changed
722
-	*
723
-	* @param	string	$mode		Contains the post mode: edit, post, reply, quote
724
-	* @param	int		$post_id	The id of the post which is modified/created
725
-	* @param	string	&$message	New or updated post content
726
-	* @param	string	&$subject	New or updated post subject
727
-	* @param	int		$poster_id	Post author's user id
728
-	* @param	int		$forum_id	The id of the forum in which the post is located
729
-	*/
721
+	 * Updates wordlist and wordmatch tables when a message is posted or changed
722
+	 *
723
+	 * @param	string	$mode		Contains the post mode: edit, post, reply, quote
724
+	 * @param	int		$post_id	The id of the post which is modified/created
725
+	 * @param	string	&$message	New or updated post content
726
+	 * @param	string	&$subject	New or updated post subject
727
+	 * @param	int		$poster_id	Post author's user id
728
+	 * @param	int		$forum_id	The id of the forum in which the post is located
729
+	 */
730 730
 	public function index($mode, $post_id, &$message, &$subject, $poster_id, $forum_id = '')
731 731
 	{
732 732
 		$wordlist = PRIVMSGS_TABLE . '_swl';
@@ -941,9 +941,9 @@  discard block
 block discarded – undo
941 941
 	}
942 942
 
943 943
 	/**
944
-	* Tidy up indexes: Tag 'common words' and remove
945
-	* words no longer referenced in the match table
946
-	*/
944
+	 * Tidy up indexes: Tag 'common words' and remove
945
+	 * words no longer referenced in the match table
946
+	 */
947 947
 	public function tidy()
948 948
 	{
949 949
 		$swl_table = PRIVMSGS_TABLE . '_swl';
@@ -1008,8 +1008,8 @@  discard block
 block discarded – undo
1008 1008
 	}
1009 1009
 
1010 1010
 	/**
1011
-	* Deletes all words from the index
1012
-	*/
1011
+	 * Deletes all words from the index
1012
+	 */
1013 1013
 	public function delete_index($acp_module, $u_action, $type = 'normal')
1014 1014
 	{
1015 1015
 		$swl_table = PRIVMSGS_TABLE . '_swl';
@@ -1033,8 +1033,8 @@  discard block
 block discarded – undo
1033 1033
 	}
1034 1034
 
1035 1035
 	/**
1036
-	* Returns true if both FULLTEXT indexes exist
1037
-	*/
1036
+	 * Returns true if both FULLTEXT indexes exist
1037
+	 */
1038 1038
 	public function index_created($type = 'normal')
1039 1039
 	{
1040 1040
 		if (!sizeof($this->stats))
@@ -1050,8 +1050,8 @@  discard block
 block discarded – undo
1050 1050
 	}
1051 1051
 
1052 1052
 	/**
1053
-	* Returns an associative array containing information about the indexes
1054
-	*/
1053
+	 * Returns an associative array containing information about the indexes
1054
+	 */
1055 1055
 	public function index_stats($type = 'normal')
1056 1056
 	{
1057 1057
 		if (!sizeof($this->stats))
Please login to merge, or discard this patch.