Completed
Push — 14.2 ( e07840...cec2da )
by Ralf
83:18 queued 52:04
created
phpgwapi/inc/adodb/toexport.inc.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -60,6 +60,10 @@
 block discarded – undo
60 60
 	if ($fp) fclose($fp);
61 61
 }
62 62
 
63
+/**
64
+ * @param string $sep
65
+ * @param string $sepreplace
66
+ */
63 67
 function _adodb_export(&$rs,$sep,$sepreplace,$fp=false,$addtitles=true,$quote = '"',$escquote = '"',$replaceNewLine = ' ')
64 68
 {
65 69
 	if (!$rs) return '';
Please login to merge, or discard this patch.
phpgwapi/inc/class.accounts.inc.php 1 patch
Doc Comments   +4 added lines, -5 removed lines patch added patch discarded remove patch
@@ -360,7 +360,7 @@  discard block
 block discarded – undo
360 360
 	 * All key of the returned array use the 'account_' prefix.
361 361
 	 * For backward compatibility some values are additionaly availible without the prefix, using them is depricated!
362 362
 	 *
363
-	 * @param int|string $id numeric account_id or string with account_lid (use of default value of 0 is depricated!!!)
363
+	 * @param integer $id numeric account_id or string with account_lid (use of default value of 0 is depricated!!!)
364 364
 	 * @param boolean $set_depricated_names =false set _additionaly_ the depricated keys without 'account_' prefix
365 365
 	 * @return array/boolean array with account data (keys: account_id, account_lid, ...) or false if account not found
366 366
 	 */
@@ -400,7 +400,7 @@  discard block
 block discarded – undo
400 400
 	 * - 'account_firstname','account_lastname','account_email','account_fullname','account_phone'
401 401
 	 *
402 402
 	 * @param int|string $id
403
-	 * @return string|boolean json or false if not found
403
+	 * @return string json or false if not found
404 404
 	 */
405 405
 	function json($id)
406 406
 	{
@@ -791,7 +791,7 @@  discard block
 block discarded – undo
791 791
 	 * Not all existing accounts are visible because off account_selection preference: 'none' or 'groupmembers'
792 792
 	 *
793 793
 	 * @param int|string $account_id nummeric account_id or account_lid
794
-	 * @return boolean true = account is visible, false = account not visible, null = account does not exist
794
+	 * @return null|boolean true = account is visible, false = account not visible, null = account does not exist
795 795
 	 */
796 796
 	function visible($account_id)
797 797
 	{
@@ -986,7 +986,6 @@  discard block
 block discarded – undo
986 986
 	 *
987 987
 	 * @param string $account_lid
988 988
 	 * @param string $passwd
989
-	 * @param array $GLOBALS['auto_create_acct'] values for 'firstname', 'lastname', 'email' and 'primary_group'
990 989
 	 * @return int|boolean account_id or false on error
991 990
 	 */
992 991
 	function auto_add($account_lid, $passwd)
@@ -1106,7 +1105,7 @@  discard block
 block discarded – undo
1106 1105
 	 *
1107 1106
 	 * We use now an instance-wide read-cache storing account-data and members(hips).
1108 1107
 	 *
1109
-	 * @param int|array $account_ids user- or group-id(s) for which cache should be invalidated, default 0 = only search/name2id cache
1108
+	 * @param integer $account_ids user- or group-id(s) for which cache should be invalidated, default 0 = only search/name2id cache
1110 1109
 	 */
1111 1110
 	static function cache_invalidate($account_ids=0)
1112 1111
 	{
Please login to merge, or discard this patch.
phpgwapi/inc/class.accounts_ads.inc.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
 	/**
130 130
 	 * Factory method and singelton to get adLDAP object for given configuration or default server config
131 131
 	 *
132
-	 * @param array $config=null values for keys 'ads_domain', 'ads_host' (required) and optional 'ads_admin_user', 'ads_admin_passwd', 'ads_connection'
132
+	 * @param array $config values for keys 'ads_domain', 'ads_host' (required) and optional 'ads_admin_user', 'ads_admin_passwd', 'ads_connection'
133 133
 	 * @return adLDAP
134 134
 	 * @throws adLDAPException
135 135
 	 */
@@ -1138,7 +1138,7 @@  discard block
 block discarded – undo
1138 1138
 	 *
1139 1139
 	 * @param int $_account_id
1140 1140
 	 * @param string $ip
1141
-	 * @return int lastlogin time
1141
+	 * @return boolean lastlogin time
1142 1142
 	 */
1143 1143
 	function update_lastlogin($_account_id, $ip)
1144 1144
 	{
@@ -1335,7 +1335,7 @@  discard block
 block discarded – undo
1335 1335
 	 * - activate user
1336 1336
 	 *
1337 1337
 	 * @param array $attributes The attributes to set to the user account
1338
-	 * @return bool
1338
+	 * @return string|boolean
1339 1339
 	 */
1340 1340
 	public function create($attributes)
1341 1341
 	{
@@ -1525,7 +1525,7 @@  discard block
 block discarded – undo
1525 1525
     * @param string $username The username to query
1526 1526
     * @param array $attributes The attributes to modify.  Note if you set the enabled attribute you must not specify any other attributes
1527 1527
     * @param bool $isGUID Is the username passed a GUID or a samAccountName
1528
-    * @return bool
1528
+    * @return string|boolean
1529 1529
     */
1530 1530
     public function modify($username, $attributes, $isGUID = false)
1531 1531
     {
@@ -1590,7 +1590,7 @@  discard block
 block discarded – undo
1590 1590
 	 * Extended to allow to specify $attribute["container"] as string, because array hardcodes "OU=", while Samba4 and win2008r2 uses "CN=Users"
1591 1591
 	 *
1592 1592
 	 * @param array $attributes Default attributes of the group
1593
-	 * @return bool
1593
+	 * @return string|boolean
1594 1594
 	 */
1595 1595
 	public function create($attributes)
1596 1596
 	{
Please login to merge, or discard this patch.
phpgwapi/inc/class.accounts_ldap.inc.php 1 patch
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
 	 * If no account_id is set in data the account is added and the new id is set in $data.
191 191
 	 *
192 192
 	 * @param array $data array with account-data
193
-	 * @return int|boolean the account_id or false on error
193
+	 * @return false|string the account_id or false on error
194 194
 	 */
195 195
 	function save(&$data)
196 196
 	{
@@ -995,7 +995,7 @@  discard block
 block discarded – undo
995 995
 	 *
996 996
 	 * @param int $_account_id
997 997
 	 * @param string $ip
998
-	 * @return int lastlogin time
998
+	 * @return boolean lastlogin time
999 999
 	 */
1000 1000
 	function update_lastlogin($_account_id, $ip)
1001 1001
 	{
@@ -1097,7 +1097,6 @@  discard block
 block discarded – undo
1097 1097
 	 * @param int $gid gidnumber of group to set
1098 1098
 	 * @param array $objectclass =null should we set the member and uniqueMember attributes (groupOf(Unique)Names|univentionGroup) (default detect it)
1099 1099
 	 * @param string $use_cn =null if set $cn is used instead $gid and the attributes are returned, not written to ldap
1100
-	 * @param boolean $uniqueMember =null should we set the uniqueMember attribute (default detect it)
1101 1100
 	 * @return boolean/array false on failure, array or true otherwise
1102 1101
 	 */
1103 1102
 	function set_members($members, $gid, array $objectclass=null, $use_cn=null)
Please login to merge, or discard this patch.
phpgwapi/inc/class.accounts_sql.inc.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -639,7 +639,7 @@
 block discarded – undo
639 639
 	 *
640 640
 	 * @param int $account_id
641 641
 	 * @param string $ip
642
-	 * @return int lastlogin time
642
+	 * @return string|boolean lastlogin time
643 643
 	 */
644 644
 	function update_lastlogin($account_id, $ip)
645 645
 	{
Please login to merge, or discard this patch.
phpgwapi/inc/class.accounts_univention.inc.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
 	 * If no account_id is set in data the account is added and the new id is set in $data.
48 48
 	 *
49 49
 	 * @param array $data array with account-data
50
-	 * @return int|boolean the account_id or false on error
50
+	 * @return false|string the account_id or false on error
51 51
 	 */
52 52
 	function save(&$data)
53 53
 	{
Please login to merge, or discard this patch.
phpgwapi/inc/class.asyncservice.inc.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -324,7 +324,7 @@  discard block
 block discarded – undo
324 324
 	 * cancels a timer
325 325
 	 *
326 326
 	 * @param string $id has to be the one used to set it.
327
-	 * @return boolean True if the timer exists and is not expired.
327
+	 * @return integer True if the timer exists and is not expired.
328 328
 	 */
329 329
 	function cancel_timer($id)
330 330
 	{
@@ -470,7 +470,7 @@  discard block
 block discarded – undo
470 470
 	/**
471 471
 	 * reads all matching db-rows / jobs
472 472
 	 *
473
-	 * @param string $id =0 reads all expired rows / jobs ready to run\
473
+	 * @param integer $id =0 reads all expired rows / jobs ready to run\
474 474
 	 * 	!= 0 reads all rows/jobs matching $id (sql-wildcards '%' and '_' can be used)
475 475
 	 * @param array|string $cols ='*' string or array of column-names / select-expressions
476 476
 	 * @param int|bool $offset =False offset for a limited query or False (default)
@@ -558,7 +558,7 @@  discard block
 block discarded – undo
558 558
 	/**
559 559
 	 * delete db-row / job with $id
560 560
 	 *
561
-	 * @return boolean False if $id not found else True
561
+	 * @return integer False if $id not found else True
562 562
 	 */
563 563
 	function delete($id)
564 564
 	{
Please login to merge, or discard this patch.
phpgwapi/inc/class.auth.inc.php 1 patch
Doc Comments   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -59,8 +59,8 @@  discard block
 block discarded – undo
59 59
 	 * check if users are supposed to change their password every x sdays, then check if password is of old age
60 60
 	 * or the devil-admin reset the users password and forced the user to change his password on next login.
61 61
 	 *
62
-	 * @param string& $message =null on return false: message why password needs to be changed
63
-	 * @return boolean true: all good, false: password change required, null: password expires in N days
62
+	 * @param string $message =null on return false: message why password needs to be changed
63
+	 * @return boolean|null true: all good, false: password change required, null: password expires in N days
64 64
 	 */
65 65
 	static function check_password_change(&$message=null)
66 66
 	{
@@ -386,6 +386,7 @@  discard block
 block discarded – undo
386 386
 	 * @param string $form_val user input value for comparison
387 387
 	 * @param string $db_val   stored value / hash (from database)
388 388
 	 * @param string &$type    detected crypt type on return
389
+	 * @param string $type
389 390
 	 * @return boolean	 True on successful comparison
390 391
 	*/
391 392
 	static function crypt_compare($form_val, $db_val, &$type)
@@ -598,7 +599,7 @@  discard block
 block discarded – undo
598 599
 	 * @param string $forbid_name =null if "yes" username or full-name split by delimiters AND longer then 3 chars are
599 600
 	 *  forbidden to be included in password, default to whatever set in config for "passwd_forbid_name"
600 601
 	 * @param array|int $account =null array with account_lid and account_fullname or account_id for $forbid_name check
601
-	 * @return mixed false if password is considered "safe" (or no requirements) or a string $message if "unsafe"
602
+	 * @return string|false false if password is considered "safe" (or no requirements) or a string $message if "unsafe"
602 603
 	 */
603 604
 	static function crackcheck($passwd, $reqstrength=null, $minlength=null, $forbid_name=null, $account=null)
604 605
 	{
Please login to merge, or discard this patch.
phpgwapi/inc/class.auth_pam.inc.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
 	 *
61 61
 	 * @param string $old_passwd must be cleartext or empty to not to be checked
62 62
 	 * @param string $new_passwd must be cleartext
63
-	 * @param int $account_id=0 account id of user whose passwd should be changed
63
+	 * @param int $account_id account id of user whose passwd should be changed
64 64
 	 * @return boolean true if password successful changed, false otherwise
65 65
 	 */
66 66
 	function change_password($old_passwd, $new_passwd, $account_id=0)
Please login to merge, or discard this patch.