aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorn-aleha <nick_aleha@myway.com>2014-08-07 11:39:04 +0300
committern-aleha <nick_aleha@myway.com>2014-08-07 11:39:04 +0300
commit9d285bdcf51f6e7b7a53e68eb377d4c70c184844 (patch)
tree4f7d4c04ad1bd0660b3be207825a44fb57fa942e
parente6d69777502a10c57600c2230e8a8eba05d4cc25 (diff)
downloadforums-9d285bdcf51f6e7b7a53e68eb377d4c70c184844.tar
forums-9d285bdcf51f6e7b7a53e68eb377d4c70c184844.tar.gz
forums-9d285bdcf51f6e7b7a53e68eb377d4c70c184844.tar.bz2
forums-9d285bdcf51f6e7b7a53e68eb377d4c70c184844.tar.xz
forums-9d285bdcf51f6e7b7a53e68eb377d4c70c184844.zip
[ticket/12557] Fix pass by reference doc blocks
PHPBB3-12557
-rw-r--r--phpBB/includes/diff/diff.php10
-rw-r--r--phpBB/phpbb/search/base.php8
2 files changed, 9 insertions, 9 deletions
diff --git a/phpBB/includes/diff/diff.php b/phpBB/includes/diff/diff.php
index e16a549ef7..d307880c4b 100644
--- a/phpBB/includes/diff/diff.php
+++ b/phpBB/includes/diff/diff.php
@@ -46,8 +46,8 @@ class diff
/**
* Computes diffs between sequences of strings.
*
- * @param array $from_content An array of strings. Typically these are lines from a file.
- * @param array $to_content An array of strings.
+ * @param array &$from_content An array of strings. Typically these are lines from a file.
+ * @param array &$to_content An array of strings.
* @param bool $preserve_cr If true, \r is replaced by a new line in the diff output
*/
function diff(&$from_content, &$to_content, $preserve_cr = true)
@@ -492,9 +492,9 @@ class diff3 extends diff
/**
* Computes diff between 3 sequences of strings.
*
- * @param array $orig The original lines to use.
- * @param array $final1 The first version to compare to.
- * @param array $final2 The second version to compare to.
+ * @param array &$orig The original lines to use.
+ * @param array &$final1 The first version to compare to.
+ * @param array &$final2 The second version to compare to.
* @param bool $preserve_cr If true, \r\n and bare \r are replaced by a new line
* in the diff output
*/
diff --git a/phpBB/phpbb/search/base.php b/phpBB/phpbb/search/base.php
index 26e3218b14..30781975d8 100644
--- a/phpBB/phpbb/search/base.php
+++ b/phpBB/phpbb/search/base.php
@@ -86,9 +86,9 @@ class base
* Retrieves cached search results
*
* @param string $search_key an md5 string generated from all the passed search options to identify the results
- * @param int $result_count will contain the number of all results for the search (not only for the current page)
- * @param array $id_ary is filled with the ids belonging to the requested page that are stored in the cache
- * @param int $start indicates the first index of the page
+ * @param int &$result_count will contain the number of all results for the search (not only for the current page)
+ * @param array &$id_ary is filled with the ids belonging to the requested page that are stored in the cache
+ * @param int &$start indicates the first index of the page
* @param int $per_page number of ids each page is supposed to contain
* @param string $sort_dir is either a or d representing ASC and DESC
*
@@ -168,7 +168,7 @@ class base
* @param string $keywords contains the keywords as entered by the user
* @param array $author_ary an array of author ids, if the author should be ignored during the search the array is empty
* @param int $result_count contains the number of all results for the search (not only for the current page)
- * @param array $id_ary contains a list of post or topic ids that shall be cached, the first element
+ * @param array &$id_ary contains a list of post or topic ids that shall be cached, the first element
* must have the absolute index $start in the result set.
* @param int $start indicates the first index of the page
* @param string $sort_dir is either a or d representing ASC and DESC