[geeklog-cvs] geeklog: @param integer -> @param int, since "int" is used more ...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Sat Mar 28 12:01:47 EDT 2009
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/cd2f21ae7173
changeset: 6860:cd2f21ae7173
user: Dirk Haun <dirk at haun-online.de>
date: Sat Mar 28 15:55:37 2009 +0100
description:
@param integer -> @param int, since "int" is used more often in the existing code
diffstat:
7 files changed, 17 insertions(+), 17 deletions(-)
public_html/lib-common.php | 2 +-
system/classes/listfactory.class.php | 6 +++---
system/classes/search.class.php | 4 ++--
system/classes/syndication/feedparserbase.class.php | 2 +-
system/lib-comment.php | 4 ++--
system/lib-plugins.php | 12 ++++++------
system/lib-security.php | 4 ++--
diffs (150 lines):
diff -r f90390360557 -r cd2f21ae7173 public_html/lib-common.php
--- a/public_html/lib-common.php Sat Mar 28 14:15:00 2009 +0100
+++ b/public_html/lib-common.php Sat Mar 28 15:55:37 2009 +0100
@@ -5003,7 +5003,7 @@
* Gets the <option> values for clock minutes
*
* @param string $selected Selected minutes
-* @param integer $step number of minutes between options, e.g. 15
+* @param int $step number of minutes between options, e.g. 15
* @see function COM_getMonthFormOptions
* @see function COM_getDayFormOptions
* @see function COM_getHourFormOptions
diff -r f90390360557 -r cd2f21ae7173 system/classes/listfactory.class.php
--- a/system/classes/listfactory.class.php Sat Mar 28 14:15:00 2009 +0100
+++ b/system/classes/listfactory.class.php Sat Mar 28 15:55:37 2009 +0100
@@ -154,7 +154,7 @@
* @access public
* @param string $url The URL of the page the table appears on
* @param array $limits The avaliable page limits
- * @param integer $per_page The default number or rows per page
+ * @param int $per_page The default number or rows per page
*
*/
function ListFactory( $url, $limits = '10,15,20,25,30,35', $per_page = 20 )
@@ -217,7 +217,7 @@
* @param string $title The text that's displayed to the user
* @param string $name The local name given to the query
* @param string $sql The SQL string without the ORDER BY or LIMIT clauses
- * @param integer $rank The rating that determins how many results will be returned
+ * @param int $rank The rating that determins how many results will be returned
*
*/
function setQuery( $title, $name, $sql, $rank )
@@ -270,7 +270,7 @@
*
* @access private
* @param string $sql The query
- * @return integer Total number of rows
+ * @return int Total number of rows
*
*/
function _numRows( $sql )
diff -r f90390360557 -r cd2f21ae7173 system/classes/search.class.php
--- a/system/classes/search.class.php Sat Mar 28 14:15:00 2009 +0100
+++ b/system/classes/search.class.php Sat Mar 28 15:55:37 2009 +0100
@@ -750,7 +750,7 @@
* @access private
* @param string $keyword The word to centre around
* @param string $text The complete text string
- * @param integer $num_words The number of words to display, best to use an odd number
+ * @param int $num_words The number of words to display, best to use an odd number
* @return string A short version of the text
*
*/
@@ -821,7 +821,7 @@
* @access private
* @param array $headings All the headings
* @param array $find An array of alternative headings to find
- * @return integer The index of the alternative heading
+ * @return int The index of the alternative heading
*
*/
function _findColumn( $headings, $find )
diff -r f90390360557 -r cd2f21ae7173 system/classes/syndication/feedparserbase.class.php
--- a/system/classes/syndication/feedparserbase.class.php Sat Mar 28 14:15:00 2009 +0100
+++ b/system/classes/syndication/feedparserbase.class.php Sat Mar 28 15:55:37 2009 +0100
@@ -133,7 +133,7 @@
* for an article.
*
* @param string $fileName The fully qualified path to the file to create.
- * @param integer $limit (optional) max number of items to write.
+ * @param int $limit (optional) max number of items to write.
*/
function createFeed( $fileName, $limit='' )
{
diff -r f90390360557 -r cd2f21ae7173 system/lib-comment.php
--- a/system/lib-comment.php Sat Mar 28 14:15:00 2009 +0100
+++ b/system/lib-comment.php Sat Mar 28 15:55:37 2009 +0100
@@ -1000,10 +1000,10 @@
*
* @param $title string comment title
* @param $comment string text of the comment
-* @param $uid integer user id
+* @param $uid int user id
* @param $ipaddress string poster's IP address
* @param $type string type of comment ('article', 'poll', ...)
-* @param $cid integer comment id
+* @param $cid int comment id
*
*/
function CMT_sendNotification ($title, $comment, $uid, $ipaddress, $type, $cid)
diff -r f90390360557 -r cd2f21ae7173 system/lib-plugins.php
--- a/system/lib-plugins.php Sat Mar 28 14:15:00 2009 +0100
+++ b/system/lib-plugins.php Sat Mar 28 15:55:37 2009 +0100
@@ -508,10 +508,10 @@
*
* @author Tony Bibbs, tony AT tonybibbs DOT com
* @access public
-* @param integer $uid User ID
+* @param int $uid User ID
* @param string $title Comment title
* @param string $sid Story ID (not always a story, remember!)
-* @param integer $pid Parent comment ID
+* @param int $pid Parent comment ID
* @param string $type Type of comment
* @param string $postmode HTML or text
* @return mixed an error otherwise false if no errors were encountered
@@ -1971,8 +1971,8 @@
* will also send an HTTP status code 403 with the message.
*
* @param string $content Text to be filtered or checked for spam
-* @param integer $action what to do if spam found
-* @return integer > 0: spam detected, == 0: no spam detected
+* @param int $action what to do if spam found
+* @return int > 0: spam detected, == 0: no spam detected
* @link http://wiki.geeklog.net/index.php/Filtering_Spam_with_Spam-X
*
*/
@@ -2016,8 +2016,8 @@
* spam action explicitly.
*
* @param string $content Text to be filtered or checked for spam
-* @param integer $action what to do if spam found
-* @return integer > 0: spam detected, == 0: no spam detected
+* @param int $action what to do if spam found
+* @return int > 0: spam detected, == 0: no spam detected
* @see PLG_checkforSpam
*
*/
diff -r f90390360557 -r cd2f21ae7173 system/lib-security.php
--- a/system/lib-security.php Sat Mar 28 14:15:00 2009 +0100
+++ b/system/lib-security.php Sat Mar 28 15:55:37 2009 +0100
@@ -592,7 +592,7 @@
* to prepare the permissions to be save to the database
*
* @param array $perm_x Array of permission values
-* @return int integer representation of a permission array 2 = read 3 = edit/read
+* @return int int representation of a permission array 2 = read 3 = edit/read
* @see SEC_getPermissionValues
*
*/
@@ -1067,7 +1067,7 @@
* added to forms and urls in the admin section as a non-cookie double-check
* that the admin user really wanted to do that...
*
- * @param $ttl integer Time to live for token in seconds. Default is 20 minutes.
+ * @param $ttl int Time to live for token in seconds. Default is 20 minutes.
*
* @return string Generated token, it'll be an MD5 hash (32chars)
*/
More information about the geeklog-cvs
mailing list