Completed
Push — master ( 9d054b...106a1b )
by Klaus
23:45 queued 04:19
created
api/src/Link/Storage.php 1 patch
Doc Comments   +6 added lines, -1 removed lines patch added patch discarded remove patch
@@ -176,6 +176,11 @@  discard block
 block discarded – undo
176 176
 		return is_array($id) ? $links : ($links[$id] ? $links[$id] : array());
177 177
 	}
178 178
 
179
+	/**
180
+	 * @param boolean $left
181
+	 * @param string $only_app
182
+	 * @param boolean $not_only
183
+	 */
179 184
 	private static function _add2links($row,$left,$only_app,$not_only,array &$links)
180 185
 	{
181 186
 		$linked_app = $left ? $row['link_app2'] : $row['link_app1'];
@@ -206,7 +211,7 @@  discard block
 block discarded – undo
206 211
 	 * @param string $id ='' id in $app, if no integer link_id given in $app_link_id
207 212
 	 * @param string $app2 ='' appname of 2. endpoint of the link, if no integer link_id given in $app_link_id
208 213
 	 * @param string $id2 ='' id in $app2, if no integer link_id given in $app_link_id
209
-	 * @return array with link-data or False
214
+	 * @return string with link-data or False
210 215
 	 */
211 216
 	static function get_link($app_link_id,$id='',$app2='',$id2='')
212 217
 	{
Please login to merge, or discard this patch.
api/src/Mail.php 1 patch
Doc Comments   +17 added lines, -13 removed lines patch added patch discarded remove patch
@@ -429,7 +429,7 @@  discard block
 block discarded – undo
429 429
 	 * forceEAProfileLoad
430 430
 	 * used to force the load of a specific emailadmin profile; we assume administrative use only (as of now)
431 431
 	 * @param int $_profile_id
432
-	 * @return object instance of Mail (by reference)
432
+	 * @return Mail instance of Mail (by reference)
433 433
 	 */
434 434
 	public static function &forceEAProfileLoad($_profile_id)
435 435
 	{
@@ -704,7 +704,7 @@  discard block
 block discarded – undo
704 704
 	/**
705 705
 	 * Get all identities of given mailaccount
706 706
 	 *
707
-	 * @param int|Mail\Account $account account-object or acc_id
707
+	 * @param integer $account account-object or acc_id
708 708
 	 * @return array - array(email=>realname)
709 709
 	 */
710 710
 	function getAccountIdentities($account)
@@ -1289,7 +1289,7 @@  discard block
 block discarded – undo
1289 1289
 	 * @param array $_filter filter to apply to getSortedList
1290 1290
 	 * @param mixed $_thisUIDOnly = null, if given fetch the headers of this uid only (either one, or array of uids)
1291 1291
 	 * @param boolean $_cacheResult = true try touse the cache of getSortedList
1292
-	 * @param mixed $_fetchPreviews = false (boolean/int) fetch part of the body of the messages requested (if integer the number is assumed to be the number of chars to be returned for preview; if set to true 300 chars are returned (when available))
1292
+	 * @param boolean $_fetchPreviews = false (boolean/int) fetch part of the body of the messages requested (if integer the number is assumed to be the number of chars to be returned for preview; if set to true 300 chars are returned (when available))
1293 1293
 	 * @return array result as array(header=>array,total=>int,first=>int,last=>int)
1294 1294
 	 */
1295 1295
 	function getHeaders($_folderName, $_startMessage, $_numberOfMessages, $_sort, $_reverse, $_filter, $_thisUIDOnly=null, $_cacheResult=true, $_fetchPreviews=false)
@@ -1866,6 +1866,7 @@  discard block
 block discarded – undo
1866 1866
 	 *
1867 1867
 	 * @param mixed _sort the integer sort order / or a valid and handeled SORTSTRING (right now: UID/ARRIVAL/INTERNALDATE (->ARRIVAL))
1868 1868
 	 * @param bool _reverse wether to add REVERSE to the Sort String or not
1869
+	 * @param integer $_sort
1869 1870
 	 * @return the sort sequence for horde search
1870 1871
 	 */
1871 1872
 	function _getSortString($_sort, $_reverse=false)
@@ -2375,7 +2376,7 @@  discard block
 block discarded – undo
2375 2376
 	 * @param string _parent the parent foldername
2376 2377
 	 * @param string _folderName the new foldername
2377 2378
 	 *
2378
-	 * @return mixed name of the newly created folder or false on error
2379
+	 * @return string name of the newly created folder or false on error
2379 2380
 	 * @throws Exception
2380 2381
 	 */
2381 2382
 	function renameFolder($_oldFolderName, $_parent, $_folderName)
@@ -3247,7 +3248,7 @@  discard block
 block discarded – undo
3247 3248
 	 * @param string $_mailbox
3248 3249
 	 * @param string $delimiter
3249 3250
 	 * @param string $prefix
3250
-	 * @param string $reclevel 0, counter to keep track of the current recursionlevel
3251
+	 * @param integer $reclevel 0, counter to keep track of the current recursionlevel
3251 3252
 	 * @return array of mailboxes
3252 3253
 	 */
3253 3254
 	function getMailBoxesRecursive($_mailbox, $delimiter, $prefix, $reclevel=0)
@@ -3297,7 +3298,7 @@  discard block
 block discarded – undo
3297 3298
 	 * abstraction layer for getDraftFolder, getTemplateFolder, getTrashFolder and getSentFolder
3298 3299
 	 * @param string $_type the type to fetch (Drafts|Template|Trash|Sent)
3299 3300
 	 * @param boolean $_checkexistance trigger check for existance
3300
-	 * @param boolean& $created =null on return true: if folder was just created, false if not
3301
+	 * @param boolean $created =null on return true: if folder was just created, false if not
3301 3302
 	 * @return mixed string or false
3302 3303
 	 */
3303 3304
 	function _getSpecialUseFolder($_type, $_checkexistance=TRUE, &$created=null)
@@ -3429,7 +3430,7 @@  discard block
 block discarded – undo
3429 3430
 	/**
3430 3431
 	 * getTemplateFolder wrapper for _getSpecialUseFolder Type Template
3431 3432
 	 * @param boolean $_checkexistance trigger check for existance
3432
-	 * @return mixed string or false
3433
+	 * @return string string or false
3433 3434
 	 */
3434 3435
 	function getTemplateFolder($_checkexistance=TRUE)
3435 3436
 	{
@@ -3459,7 +3460,7 @@  discard block
 block discarded – undo
3459 3460
 	/**
3460 3461
 	 * getOutboxFolder wrapper for _getSpecialUseFolder Type Outbox
3461 3462
 	 * @param boolean $_checkexistance trigger check for existance
3462
-	 * @return mixed string or false
3463
+	 * @return string string or false
3463 3464
 	 */
3464 3465
 	function getOutboxFolder($_checkexistance=TRUE)
3465 3466
 	{
@@ -4298,7 +4299,7 @@  discard block
 block discarded – undo
4298 4299
 	/**
4299 4300
 	 * get part of the message, if its stucture is indicating its of multipart alternative style
4300 4301
 	 * a wrapper for multipartmixed
4301
-	 * @param string/int $_uid the messageuid,
4302
+	 * @param integer $_uid the messageuid,
4302 4303
 	 * @param Horde_Mime_Part $_structure structure for parsing
4303 4304
 	 * @param string $_htmlMode how to display a message, html, plain text, ...
4304 4305
 	 * @param boolean $_preserveSeen flag to preserve the seenflag by using body.peek
@@ -4948,6 +4949,9 @@  discard block
 block discarded – undo
4948 4949
 		return $message;
4949 4950
 	}
4950 4951
 
4952
+	/**
4953
+	 * @param integer $cols
4954
+	 */
4951 4955
 	static function wordwrap($str, $cols, $cut, $dontbreaklinesstartingwith=false)
4952 4956
 	{
4953 4957
 		$lines = explode("\n", $str);
@@ -5396,7 +5400,6 @@  discard block
 block discarded – undo
5396 5400
 	 * @param string $_partID = null
5397 5401
 	 * @param string $_folder = null
5398 5402
 	 * @param boolean $_preserveSeen = false flag to preserve the seenflag by using body.peek
5399
-	 * @param Horde_Imap_Client_Fetch_Query $fquery=null default query just structure
5400 5403
 	 * @return Horde_Mime_Part
5401 5404
 	 */
5402 5405
 	function getStructure($_uid, $_partID=null, $_folder=null, $_preserveSeen=false)
@@ -5987,6 +5990,7 @@  discard block
 block discarded – undo
5987 5990
 	 * @param preserveHTML flag to pass through to getdisplayableBody
5988 5991
 	 * @param addHeaderSection flag to be able to supress headersection
5989 5992
 	 * @param includeAttachments flag to be able to supress possible attachments
5993
+	 * @param Mail $mailClass
5990 5994
 	 * @return array/bool with 'mailaddress'=>$mailaddress,
5991 5995
 	 *				'subject'=>$subject,
5992 5996
 	 *				'message'=>$message,
@@ -6440,7 +6444,7 @@  discard block
 block discarded – undo
6440 6444
 	 *
6441 6445
 	 * @param Mailer $_mailObject instance of the Mailer Object to be used
6442 6446
 	 * @param string $_html2parse the html to parse and to be altered, if conditions meet
6443
-	 * @param $mail_bo mail bo object
6447
+	 * @param Mail $mail_bo mail bo object
6444 6448
 	 * @return void
6445 6449
 	 */
6446 6450
 	static function processURL2InlineImages(Mailer $_mailObject, &$_html2parse, $mail_bo)
@@ -6556,7 +6560,7 @@  discard block
 block discarded – undo
6556 6560
 	 * @param Storage\Merge Storage\Merge bo_merge object
6557 6561
 	 * @param string $document the full filename
6558 6562
 	 * @param array $SendAndMergeTocontacts array of contact ids
6559
-	 * @param string& $_folder (passed by reference) will set the folder used. must be set with a folder, but will hold modifications if
6563
+	 * @param string|null $_folder (passed by reference) will set the folder used. must be set with a folder, but will hold modifications if
6560 6564
 	 *					folder is modified
6561 6565
 	 * @param string& $importID ID for the imported message, used by attachments to identify them unambiguously
6562 6566
 	 * @return mixed array of messages with success and failed messages or exception
@@ -6800,7 +6804,7 @@  discard block
 block discarded – undo
6800 6804
 	/**
6801 6805
 	 * Parses a message/rfc mail from file to the mailobject
6802 6806
 	 *
6803
-	 * @param object $mailer instance of the SMTP Mailer Object
6807
+	 * @param Mailer $mailer instance of the SMTP Mailer Object
6804 6808
 	 * @param string $tmpFileName string that points/leads to the file to be imported
6805 6809
 	 * @throws Exception\NotFound if $fle is not found
6806 6810
 	 */
Please login to merge, or discard this patch.
api/src/Mail/Account.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -486,7 +486,7 @@  discard block
 block discarded – undo
486 486
 	 * @param boolean $replace_placeholders =false should placeholders like {{n_fn}} be replaced
487 487
 	 * @param string $field ='name' what to return as value: "ident_(realname|org|email|signature)" or default "name"=result from identity_name
488 488
 	 * @param int $user =null account_id to use if not current user
489
-	 * @return Iterator ident_id => identity_name of identity
489
+	 * @return Api\Db\CallbackIterator ident_id => identity_name of identity
490 490
 	 */
491 491
 	public static function identities($account, $replace_placeholders=true, $field='name', $user=null)
492 492
 	{
@@ -795,7 +795,7 @@  discard block
 block discarded – undo
795 795
 	 *
796 796
 	 * To get $this->params you need to call getUserData before! It is never automatically loaded.
797 797
 	 *
798
-	 * @param type $name
798
+	 * @param string $name
799 799
 	 * @return mixed
800 800
 	 */
801 801
 	public function __get($name)
@@ -819,8 +819,8 @@  discard block
 block discarded – undo
819 819
 	/**
820 820
 	 * Give read access to protected parameters in $this->params
821 821
 	 *
822
-	 * @param type $name
823
-	 * @return mixed
822
+	 * @param string $name
823
+	 * @return boolean
824 824
 	 */
825 825
 	public function __isset($name)
826 826
 	{
@@ -1340,10 +1340,10 @@  discard block
 block discarded – undo
1340 1340
 	 * @param boolean|string $just_name =true true: return self::identity_name, false: return Account objects,
1341 1341
 	 *	string with attribute-name: return that attribute, eg. acc_imap_host or 'params' to return all attributes as array
1342 1342
 	 * @param string $order_by ='acc_name ASC'
1343
-	 * @param int|boolean $offset =false offset or false to return all
1343
+	 * @param boolean $offset =false offset or false to return all
1344 1344
 	 * @param int $num_rows =0 number of rows to return, 0=default from prefs (if $offset !== false)
1345 1345
 	 * @param boolean $replace_placeholders =true should placeholders like {{n_fn}} be replaced
1346
-	 * @return Iterator with acc_id => acc_name or Account objects
1346
+	 * @return Api\Db\CallbackIterator with acc_id => acc_name or Account objects
1347 1347
 	 */
1348 1348
 	public static function search($only_current_user=true, $just_name=true, $order_by=null, $offset=false, $num_rows=0, $replace_placeholders=true)
1349 1349
 	{
Please login to merge, or discard this patch.
api/src/Mail/Hooks.php 1 patch
Doc Comments   -8 removed lines patch added patch discarded remove patch
@@ -36,9 +36,6 @@  discard block
 block discarded – undo
36 36
      * Hook called before an account get deleted
37 37
      *
38 38
      * @param array $data
39
-     * @param int $data['account_id'] numerical id
40
-     * @param string $data['account_lid'] account-name
41
-     * @param int $data['new_owner'] account-id of new owner, or false if data should get deleted
42 39
      */
43 40
 	static function deleteaccount(array $data)
44 41
 	{
@@ -52,8 +49,6 @@  discard block
 block discarded – undo
52 49
      * Hook called before a group get deleted
53 50
      *
54 51
      * @param array $data
55
-     * @param int $data['account_id'] numerical id
56
-     * @param string $data['account_name'] account-name
57 52
      */
58 53
 	static function deletegroup(array $data)
59 54
 	{
@@ -64,9 +59,6 @@  discard block
 block discarded – undo
64 59
      * Hook called when an account get added or edited
65 60
      *
66 61
      * @param array $data
67
-     * @param int $data['account_id'] numerical id
68
-     * @param string $data['account_lid'] account-name
69
-     * @param string $data['account_email'] email
70 62
 	 */
71 63
 	static function addaccount(array $data)
72 64
 	{
Please login to merge, or discard this patch.
api/src/Mail/Html.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -227,7 +227,7 @@
 block discarded – undo
227 227
 	 * @param string $displayCharset : charset to use; should be a valid charset
228 228
 	 * @param bool $stripcrl :  flag to indicate for the removal of all crlf \r\n
229 229
 	 * @param bool $stripalltags : flag to indicate wether or not to strip $_html from all remaining tags
230
-	 * @return text $_html : the modified text.
230
+	 * @return string $_html : the modified text.
231 231
 	 */
232 232
 	static function convertHTMLToText($_html,$displayCharset=false,$stripcrl=false,$stripalltags=true)
233 233
 	{
Please login to merge, or discard this patch.
api/src/Mail/Imap.php 1 patch
Doc Comments   +7 added lines, -6 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
 	 * Construtor
141 141
 	 *
142 142
 	 * @param array
143
-	 * @param bool|int|string $_adminConnection create admin connection if true or account_id or imap username
143
+	 * @param boolean|string $_adminConnection create admin connection if true or account_id or imap username
144 144
 	 * @param int $_timeout =null timeout in secs, if none given fmail pref or default of 20 is used
145 145
 	 * @return void
146 146
 	 */
@@ -564,7 +564,7 @@  discard block
 block discarded – undo
564 564
 	 * Returns an array containing the names of the selected mailboxes
565 565
 	 *
566 566
 	 * @param   string  $reference          base mailbox to start the search (default is current mailbox)
567
-	 * @param   string  $restriction_search false or 0 means return all mailboxes
567
+	 * @param   integer  $restriction_search false or 0 means return all mailboxes
568 568
 	 *                                      true or 1 return only the mailbox that contains that exact name
569 569
 	 *                                      2 return all mailboxes in that hierarchy level
570 570
 	 * @param   string  $returnAttributes   true means return an assoc array containing mailbox names and mailbox attributes
@@ -648,7 +648,7 @@  discard block
 block discarded – undo
648 648
 	 * Returns an array containing the names of the subscribed selected mailboxes
649 649
 	 *
650 650
 	 * @param   string  $reference          base mailbox to start the search
651
-	 * @param   string  $restriction_search false or 0 means return all mailboxes
651
+	 * @param   integer  $restriction_search false or 0 means return all mailboxes
652 652
 	 *                                      true or 1 return only the mailbox that contains that exact name
653 653
 	 *                                      2 return all mailboxes in that hierarchy level
654 654
 	 * @param   string  $returnAttributes   true means return an assoc array containing mailbox names and mailbox attributes
@@ -716,7 +716,7 @@  discard block
 block discarded – undo
716 716
 	 * Returns an array containing the names of the selected unsubscribed mailboxes
717 717
 	 *
718 718
 	 * @param   string  $reference          base mailbox to start the search
719
-	 * @param   string  $restriction_search false or 0 means return all mailboxes
719
+	 * @param   integer  $restriction_search false or 0 means return all mailboxes
720 720
 	 *                                      true or 1 return only the mailbox that contains that exact name
721 721
 	 *                                      2 return all mailboxes in that hierarchy level
722 722
 	 *
@@ -894,6 +894,7 @@  discard block
 block discarded – undo
894 894
 	 *
895 895
 	 * @var array $_nameSpace
896 896
 	 * @var string $_folderName
897
+	 * @param string $_folderName
897 898
 	 * @return string the prefix (may be an empty string)
898 899
 	 */
899 900
 	static function getFolderPrefixFromNamespace($_nameSpace, $_folderName)
@@ -912,7 +913,7 @@  discard block
 block discarded – undo
912 913
 	 * @param string $_mailbox
913 914
 	 * @param string $delimiter
914 915
 	 * @param string $prefix
915
-	 * @param string $reclevel = 0, counter to keep track of the current recursionlevel
916
+	 * @param integer $reclevel = 0, counter to keep track of the current recursionlevel
916 917
 	 * @return array of mailboxes
917 918
 	 */
918 919
 	function getMailBoxesRecursive($_mailbox, $delimiter, $prefix, $reclevel=0)
@@ -1344,7 +1345,7 @@  discard block
 block discarded – undo
1344 1345
 	/**
1345 1346
 	 * Get vacation message for given user
1346 1347
 	 *
1347
-	 * @param int|string $_euser nummeric account_id or imap username
1348
+	 * @param string|null $_euser nummeric account_id or imap username
1348 1349
 	 * @param string $_scriptName =null
1349 1350
 	 * @throws Exception on connection error or authentication failure
1350 1351
 	 * @return array
Please login to merge, or discard this patch.
api/src/Mail/Imap/Iface.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -121,6 +121,7 @@
 block discarded – undo
121 121
 	 * @param bool $_adminConnection create admin connection if true
122 122
 	 * @param int $_timeout =null timeout in secs, if none given fmail pref or default of 20 is used
123 123
 	 * @throws Exception on error
124
+	 * @return void
124 125
 	 */
125 126
 	function openConnection($_adminConnection=false, $_timeout=null);
126 127
 
Please login to merge, or discard this patch.
api/src/Mail/Sieve.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 	/**
83 83
 	 * Constructor
84 84
 	 *
85
-	 * @param array|Imap $params =array()
85
+	 * @param Imap $params =array()
86 86
 	 */
87 87
 	function __construct($params=array())
88 88
 	{
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
 	 *
166 166
 	 * @param array $_emailNotification
167 167
 	 * @param string $_scriptName
168
-	 * @return Script
168
+	 * @return boolean
169 169
 	 */
170 170
 	function setEmailNotification(array $_emailNotification, $_scriptName=null)
171 171
 	{
Please login to merge, or discard this patch.
api/src/Mail/Smtp.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -156,7 +156,7 @@
 block discarded – undo
156 156
 	/**
157 157
 	 * Get the data of a given user
158 158
 	 *
159
-	 * @param int|string $user numerical account-id, account-name or email address
159
+	 * @param integer $user numerical account-id, account-name or email address
160 160
 	 * @param boolean $match_uid_at_domain =true true: uid@domain matches, false only an email or alias address matches
161 161
 	 * @return array with values for keys 'mailLocalAddress', 'mailAlternateAddress' (array), 'mailForwardingAddress' (array),
162 162
 	 * 	'accountStatus' ("active"), 'quotaLimit' and 'deliveryMode' ("forwardOnly")
Please login to merge, or discard this patch.