Completed
Push — 14.2 ( e07840...cec2da )
by Ralf
83:18 queued 52:04
created
emailadmin/inc/class.emailadmin_smtp_ads.inc.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@
 block discarded – undo
146 146
 	/**
147 147
 	 * Constructor
148 148
 	 *
149
-	 * @param string $defaultDomain=null
149
+	 * @param string $defaultDomain
150 150
 	 */
151 151
 	function __construct($defaultDomain=null)
152 152
 	{
Please login to merge, or discard this patch.
emailadmin/inc/class.emailadmin_smtp_ldap.inc.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -628,7 +628,7 @@
 block discarded – undo
628 628
 	 * @param int $_accountID
629 629
 	 * @param string $_forwardingAddress
630 630
 	 * @param string $_keepLocalCopy 'yes'
631
-	 * @return boolean true on success, false on error writing to ldap
631
+	 * @return boolean|null true on success, false on error writing to ldap
632 632
 	 */
633 633
 	function saveSMTPForwarding($_accountID, $_forwardingAddress, $_keepLocalCopy)
634 634
 	{
Please login to merge, or discard this patch.
emailadmin/inc/class.emailadmin_smtp_sql.inc.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 	/**
56 56
 	 * Constructor
57 57
 	 *
58
-	 * @param string $defaultDomain=null
58
+	 * @param string $defaultDomain
59 59
 	 */
60 60
 	function __construct($defaultDomain=null)
61 61
 	{
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
 	 * from all accounts!
102 102
 	 *
103 103
 	 * @param int|string $user numerical account-id, account-name or email address
104
-	 * @param boolean $match_uid_at_domain=true true: uid@domain matches, false only an email or alias address matches
104
+	 * @param boolean $match_uid_at_domain true: uid@domain matches, false only an email or alias address matches
105 105
 	 * @return array with values for keys 'mailLocalAddress', 'mailAlternateAddress' (array), 'mailForwardingAddress' (array),
106 106
 	 * 	'accountStatus' ("active"), 'quotaLimit' and 'deliveryMode' ("forwardOnly")
107 107
 	 */
@@ -227,8 +227,8 @@  discard block
 block discarded – undo
227 227
 	 * @param string $_accountStatus
228 228
 	 * @param string $_mailLocalAddress
229 229
 	 * @param int $_quota in MB
230
-	 * @param boolean $_forwarding_only=false true: store only forwarding info, used internally by saveSMTPForwarding
231
-	 * @param string $_setMailbox=null used only for account migration
230
+	 * @param boolean $_forwarding_only true: store only forwarding info, used internally by saveSMTPForwarding
231
+	 * @param string $_setMailbox used only for account migration
232 232
 	 * @return boolean true on success, false on error writing to ldap
233 233
 	 */
234 234
 	function setUserData($_uidnumber, array $_mailAlternateAddress, array $_mailForwardingAddress, $_deliveryMode,
Please login to merge, or discard this patch.
etemplate/doc/et_media/inc/class.ui_et_media.inc.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -127,8 +127,7 @@
 block discarded – undo
127 127
 	/**
128 128
 	 * Show files shared
129 129
 	 *
130
-	 * @param array $content=null
131
-	 * @param string $msg=''
130
+	 * @param array $content
132 131
 	 */
133 132
 	public function index(array $content=null)
134 133
 	{
Please login to merge, or discard this patch.
etemplate/inc/class.ajax_captcha_widget.inc.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
 	 * @param boolean &$loop can be set to true to request a re-submision of the form/dialog
105 105
 	 * @param object &$tmpl the eTemplate the widget belongs too
106 106
 	 * @param mixed &value_in the posted values (already striped of magic-quotes)
107
-	 * @return boolean true if $value has valid content, on false no content will be returned!
107
+	 * @return false|null true if $value has valid content, on false no content will be returned!
108 108
 	 */
109 109
 	function post_process($name,&$value,&$extension_data,&$loop,&$tmpl,$value_in)
110 110
 	{
@@ -862,7 +862,7 @@  discard block
 block discarded – undo
862 862
    *
863 863
    * @access private
864 864
    * @since 1.0.2
865
-   * @return mixed  false on failure, a word on success
865
+   * @return false|string  false on failure, a word on success
866 866
    */
867 867
   function readCodeFromFile()
868 868
   {
Please login to merge, or discard this patch.
etemplate/inc/class.bo_merge.inc.php 1 patch
Doc Comments   +18 added lines, -16 removed lines patch added patch discarded remove patch
@@ -353,9 +353,9 @@  discard block
 block discarded – undo
353 353
 	 *
354 354
 	 * Calls get_links() repeatedly to get all the combinations for the content.
355 355
 	 *
356
-	 * @param $app String appname
356
+	 * @param string $app String appname
357 357
 	 * @param $id String ID of record
358
-	 * @param $prefix
358
+	 * @param string $prefix
359 359
 	 * @param $content String document content
360 360
 	 */
361 361
 	protected function get_all_links($app, $id, $prefix, &$content)
@@ -428,7 +428,7 @@  discard block
 block discarded – undo
428 428
 	 * Format a datetime
429 429
 	 *
430 430
 	 * @param int|string|DateTime $time unix timestamp or Y-m-d H:i:s string (in user time!)
431
-	 * @param string $format=null format string, default $this->datetime_format
431
+	 * @param string $format format string, default $this->datetime_format
432 432
 	 * @deprecated use egw_time::to($time='now',$format='')
433 433
 	 * @return string
434 434
 	 */
@@ -470,7 +470,6 @@  discard block
 block discarded – undo
470 470
 	/**
471 471
 	 * getExportLimit
472 472
 	 * checks if there is an exportlimit set, and returns
473
-	 * @param mixed $app_limit checks and validates app_limit, if not set returns the global limit
474 473
 	 *
475 474
 	 * @return mixed - no if no export is allowed, false if there is no restriction and int as there is a valid restriction
476 475
 	 *		you may have to cast the returned value to int, if you want to use it as number
@@ -517,7 +516,7 @@  discard block
 block discarded – undo
517 516
 	 * @param mixed $app_limit app_limit, if not set checks the global limit
518 517
 	 * @param string $checkas [AND|ISALLOWED], AND default; if set to ISALLOWED it is checked if Export is allowed
519 518
 	 *
520
-	 * @return bool - true if no export is allowed or a limit is set, false if there is no restriction
519
+	 * @return boolean|null - true if no export is allowed or a limit is set, false if there is no restriction
521 520
 	 */
522 521
 	public static function hasExportLimit($app_limit,$checkas='AND')
523 522
 	{
@@ -534,7 +533,6 @@  discard block
 block discarded – undo
534 533
 	 * @param array $ids array with contact id(s)
535 534
 	 * @param string &$err error-message on error
536 535
 	 * @param string $mimetype mimetype of complete document, eg. text/*, application/vnd.oasis.opendocument.text, application/rtf
537
-	 * @param array $fix=null regular expression => replacement pairs eg. to fix garbled placeholders
538 536
 	 * @return string|boolean merged document or false on error
539 537
 	 */
540 538
 	public function &merge($document,$ids,&$err,$mimetype,array $fix=null)
@@ -566,6 +564,9 @@  discard block
 block discarded – undo
566 564
 		return $content;
567 565
 	}
568 566
 
567
+	/**
568
+	 * @param string $mimetype
569
+	 */
569 570
 	protected function apply_styles (&$content, $mimetype, $mso_application_progid=null)
570 571
 	{
571 572
 		if (!isset($mso_application_progid))
@@ -666,8 +667,7 @@  discard block
 block discarded – undo
666 667
 	 * @param array $ids array with contact id(s)
667 668
 	 * @param string &$err error-message on error
668 669
 	 * @param string $mimetype mimetype of complete document, eg. text/*, application/vnd.oasis.opendocument.text, application/rtf
669
-	 * @param array $fix=null regular expression => replacement pairs eg. to fix garbled placeholders
670
-	 * @param string $charset=null charset to override default set by mimetype or export charset
670
+	 * @param string $charset charset to override default set by mimetype or export charset
671 671
 	 * @return string|boolean merged document or false on error
672 672
 	 */
673 673
 	public function &merge_string($content,$ids,&$err,$mimetype,array $fix=null,$charset=null)
@@ -904,7 +904,7 @@  discard block
 block discarded – undo
904 904
 	 * @param array $replacements name => replacement pairs
905 905
 	 * @param string $mimetype mimetype of content
906 906
 	 * @param string $mso_application_progid='' MS Office 2003: 'Excel.Sheet' or 'Word.Document'
907
-	 * @param string $charset=null charset to override default set by mimetype or export charset
907
+	 * @param string $charset charset to override default set by mimetype or export charset
908 908
 	 * @return string
909 909
 	 */
910 910
 	protected function replace($content,array $replacements,$mimetype,$mso_application_progid='',$charset=null)
@@ -1123,6 +1123,8 @@  discard block
 block discarded – undo
1123 1123
 
1124 1124
 	/**
1125 1125
 	 * Convert numeric values in spreadsheets into actual numeric values
1126
+	 * @param string $content
1127
+	 * @param string $mimetype
1126 1128
 	 */
1127 1129
 	protected function format_spreadsheet_numbers(&$content, $names, $mimetype)
1128 1130
 	{
@@ -1192,6 +1194,7 @@  discard block
 block discarded – undo
1192 1194
 
1193 1195
 	/**
1194 1196
 	 * Convert date / timestamp values in spreadsheets into actual date / timestamp values
1197
+	 * @param string $mimetype
1195 1198
 	 */
1196 1199
 	protected function format_spreadsheet_dates(&$content, $names, &$values, $mimetype)
1197 1200
 	{
@@ -1296,6 +1299,7 @@  discard block
 block discarded – undo
1296 1299
 	/**
1297 1300
 	 * Expand link_to custom fields with the merge replacements from the app
1298 1301
 	 * but only if the template uses them.
1302
+	 * @param string $app
1299 1303
 	 */
1300 1304
 	public function cf_link_to_expand($values, $content, &$replacements, $app = null)
1301 1305
 	{
@@ -1360,7 +1364,7 @@  discard block
 block discarded – undo
1360 1364
 	/**
1361 1365
 	 * Process special flags, such as IF or NELF
1362 1366
 	 *
1363
-	 * @param content Text to be examined and changed
1367
+	 * @param content string to be examined and changed
1364 1368
 	 * @param replacements array of markers => replacement
1365 1369
 	 *
1366 1370
 	 * @return changed content
@@ -1672,8 +1676,7 @@  discard block
 block discarded – undo
1672 1676
 	 * Get a list of document actions / files from the given directory
1673 1677
 	 *
1674 1678
 	 * @param string $dirs Directory(s comma or space separated) to search
1675
-	 * @param string $prefix='document_' prefix for array keys
1676
-	 * @param array|string $mime_filter=null allowed mime type(s), default all, negative filter if $mime_filter[0] === '!'
1679
+	 * @param array|string $mime_filter allowed mime type(s), default all, negative filter if $mime_filter[0] === '!'
1677 1680
 	 * @return array List of documents, suitable for a selectbox.  The key is document_<filename>.
1678 1681
 	 */
1679 1682
 	public static function get_documents($dirs, $prefix='document_', $mime_filter=null, $app='')
@@ -1728,10 +1731,8 @@  discard block
 block discarded – undo
1728 1731
 	 *
1729 1732
 	 * @param string $dirs Directory(s comma or space separated) to search
1730 1733
 	 * @param int $group see nextmatch_widget::egw_actions
1731
-	 * @param string $caption='Insert in document'
1732
-	 * @param string $prefix='document_'
1733 1734
 	 * @param string $default_doc='' full path to default document to show on top with action == 'document'!
1734
-	 * @param int|string $export_limit=null export-limit, default $GLOBALS['egw_info']['server']['export_limit']
1735
+	 * @param int|string $export_limit export-limit, default $GLOBALS['egw_info']['server']['export_limit']
1735 1736
 	 * @return array see nextmatch_widget::egw_actions
1736 1737
 	 */
1737 1738
 	public static function document_action($dirs, $group=0, $caption='Insert in document', $prefix='document_', $default_doc='',
@@ -1934,6 +1935,7 @@  discard block
 block discarded – undo
1934 1935
 	 *
1935 1936
 	 * @param string &$document maybe relative path of document, on return true absolute path to existing document
1936 1937
 	 * @param string $dirs comma or whitespace separated directories
1938
+	 * @param string $document
1937 1939
 	 * @return string|boolean false if document exists, otherwise string with error-message
1938 1940
 	 */
1939 1941
 	public static function check_document(&$document, $dirs)
@@ -1977,7 +1979,7 @@  discard block
 block discarded – undo
1977 1979
 	 * Reimplemented from etemplate to NOT use user prefs for Excel 2003, which gives an xml error
1978 1980
 	 *
1979 1981
 	 * @param int|float|string $number
1980
-	 * @param int $num_decimal_places=2
1982
+	 * @param int $num_decimal_places
1981 1983
 	 * @param string $_mimetype=''
1982 1984
 	 * @return string
1983 1985
 	 */
Please login to merge, or discard this patch.
etemplate/inc/class.bo_tracking.inc.php 1 patch
Doc Comments   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -521,7 +521,7 @@  discard block
 block discarded – undo
521 521
 	 * @param array $data current entry
522 522
 	 * @param array $old = null old/last state of the entry or null for a new entry
523 523
 	 * @param boolean $deleted = null can be set to true to let the tracking know the item got deleted or undelted
524
-	 * @param array $email_notified=null if present will return the emails notified, if given emails in that list will not be notified
524
+	 * @param array $email_notified if present will return the emails notified, if given emails in that list will not be notified
525 525
 	 * @return boolean true on success, false on error (error messages are in $this->errors)
526 526
 	 */
527 527
 	public function do_notifications($data,$old,$deleted=null,&$email_notified=null)
@@ -789,7 +789,7 @@  discard block
 block discarded – undo
789 789
 	 * Return date+time formatted for the currently notified user (prefs in $GLOBALS['egw_info']['user']['preferences'])
790 790
 	 *
791 791
 	 * @param int|string|DateTime $timestamp in server-time
792
-	 * @param boolean $do_time=true true=allways (default), false=never print the time, null=print time if != 00:00
792
+	 * @param boolean $do_time true=allways (default), false=never print the time, null=print time if != 00:00
793 793
 	 *
794 794
 	 * @return string
795 795
 	 */
@@ -816,7 +816,6 @@  discard block
 block discarded – undo
816 816
 	 * The default implementation prefers depending on the prefer_user_as_sender class-var the user over
817 817
 	 * what is returned by get_config('sender').
818 818
 	 *
819
-	 * @param int $user account_lid of user
820 819
 	 * @param array $data
821 820
 	 * @param array $old
822 821
 	 * @param bool $prefer_id returns the userid rather than email
@@ -866,7 +865,7 @@  discard block
 block discarded – undo
866 865
 	 *
867 866
 	 * @param array $data
868 867
 	 * @param array $old
869
-	 * @param boolean $deleted=null can be set to true to let the tracking know the item got deleted or undelted
868
+	 * @param boolean $deleted can be set to true to let the tracking know the item got deleted or undelted
870 869
 	 * @param int|string $receiver nummeric account_id or email address
871 870
 	 * @return string
872 871
 	 */
Please login to merge, or discard this patch.
etemplate/inc/class.boetemplate.inc.php 1 patch
Doc Comments   +14 added lines, -25 removed lines patch added patch discarded remove patch
@@ -103,8 +103,8 @@  discard block
 block discarded – undo
103 103
 	 *
104 104
 	 * @param string $disabled expression to check, eg. "!@var" for !$content['var']
105 105
 	 * @param array $content the content-array in the context of the grid
106
-	 * @param int $row=null to be able to use $row or $row_content in value of checks
107
-	 * @param int $c=null to be able to use $row or $row_content in value of checks
106
+	 * @param integer $row
107
+	 * @param integer $c
108 108
 	 * @return boolean true if the row/col is disabled or false if not
109 109
 	 */
110 110
 	protected function check_disabled($disabled,$content,$row=null,$c=null)
@@ -263,7 +263,6 @@  discard block
 block discarded – undo
263 263
 	 * As you usually have col- and row-headers, data-cells start with '1' or 'A' !!!
264 264
 	 *
265 265
 	 * @param array $cell with data of cell: name, type, size, ...
266
-	 * @param int $c,$r col/row index starting from 0
267 266
 	 * @param string &$idx returns the index in $content and $readonlys (NOT $sel_options !!!)
268 267
 	 * @param string &$idx_cname returns the basename for the form-name: is $idx if only one value
269 268
 	 *		(no ',') is given in size (name (not template-fields) are always only one value)
@@ -346,7 +345,7 @@  discard block
 block discarded – undo
346 345
 	 *  disables all cells with name == $name
347 346
 	 *
348 347
 	 * @param sting $name cell-name
349
-	 * @param boolean $disabled=true disable or enable a cell, default true=disable
348
+	 * @param boolean $disabled disable or enable a cell, default true=disable
350 349
 	 * @return mixed number of changed cells or False, if none changed
351 350
 	 */
352 351
 	function disableElement($name,$disabled=True)
@@ -387,8 +386,8 @@  discard block
 block discarded – undo
387 386
 	/**
388 387
 	 *  disables all cells with name == $name
389 388
 	 *
390
-	 * @param sting $name cell-name
391
-	 * @param boolean $disabled=true disable or enable a cell, default true=disable
389
+	 * @param string $name cell-name
390
+	 * @param boolean $disabled disable or enable a cell, default true=disable
392 391
 	 * @return reference to attribute
393 392
 	 * @deprecated use disableElement($name, $disabled=true)
394 393
 	 */
@@ -401,11 +400,10 @@  discard block
 block discarded – undo
401 400
 	 * set one or more attibutes for row $n
402 401
 	 *
403 402
 	 * @param int $n numerical row-number starting with 1 (!)
404
-	 * @param string $height percent or pixel or '' for no height
405
-	 * @param string $class name of css class (without the leading '.') or '' for no class
406
-	 * @param string $valign alignment (top,middle,bottom) or '' for none
407
-	 * @param boolean $disabled True or expression or False to disable or enable the row (Only the number 0 means dont change the attribute !!!)
408
-	 * @param string $path='/0' default is the first widget in the tree of children
403
+	 * @param integer $height percent or pixel or '' for no height
404
+	 * @param integer $class name of css class (without the leading '.') or '' for no class
405
+	 * @param integer $valign alignment (top,middle,bottom) or '' for none
406
+	 * @param integer $disabled True or expression or False to disable or enable the row (Only the number 0 means dont change the attribute !!!)
409 407
 	 * @return false if $path is no grid or array(height,class,valign,disabled) otherwise
410 408
 	 */
411 409
 	function set_row_attributes($n,$height=0,$class=0,$valign=0,$disabled=0,$path='/0')
@@ -432,8 +430,6 @@  discard block
 block discarded – undo
432 430
 	 * disables row $n
433 431
 	 *
434 432
 	 * @param int $n numerical row-number starting with 1 (!)
435
-	 * @param boolean $enable=false can be used to re-enable a row if set to True
436
-	 * @param string $path='/0' default is the first widget in the tree of children
437 433
 	 */
438 434
 	function disable_row($n,$enable=False,$path='/0')
439 435
 	{
@@ -444,9 +440,8 @@  discard block
 block discarded – undo
444 440
 	 * set one or more attibutes for column $c
445 441
 	 *
446 442
 	 * @param int|string $c numerical column-number starting with 0 (!), or the char-code starting with 'A'
447
-	 * @param string $width percent or pixel or '' for no height
448
-	 * @param mixed $disabled=0 True or expression or False to disable or enable the column (Only the number 0 means dont change the attribute !!!)
449
-	 * @param string $path='/0' default is the first widget in the tree of children
443
+	 * @param integer $width percent or pixel or '' for no height
444
+	 * @param mixed $disabled True or expression or False to disable or enable the column (Only the number 0 means dont change the attribute !!!)
450 445
 	 * @return false if $path specifies no grid or array(width,disabled) otherwise
451 446
 	 */
452 447
 	function set_column_attributes($c,$width=0,$disabled=0,$path='/0')
@@ -473,7 +468,6 @@  discard block
 block discarded – undo
473 468
 	 *
474 469
 	 * @param int|string $c numerical column-number starting with 0 (!), or the char-code starting with 'A'
475 470
 	 * @param boolean $enable can be used to re-enable a column if set to True
476
-	 * @param string $path='/0' default is the first widget in the tree of children
477 471
 	 */
478 472
 	function disable_column($c,$enable=False,$path='/0')
479 473
 	{
@@ -490,8 +484,6 @@  discard block
 block discarded – undo
490 484
 	/**
491 485
 	 * trys to load the Extension / Widget-class from the app or etemplate
492 486
 	 *
493
-	 * @param string $name name of the extension, the classname should be class.${name}_widget.inc.php
494
-	 *	the $name might be "$name.$app" to give a app-name (default is the current app,or template-name)
495 487
 	 * @return string|boolean human readable name or false if not found/loadable
496 488
 	 */
497 489
 	function loadExtension($type)
@@ -527,8 +519,6 @@  discard block
 block discarded – undo
527 519
 	/**
528 520
 	 * checks if extension is loaded (load it if it isnt) and optional checks if it has a given method
529 521
 	 *
530
-	 * @param string $name name of the extension, the classname should be class.${name}_widget.inc.php
531
-	 *	the $name might be "$name.$app" to give a app-name (default is the current app,or template-name)
532 522
 	 * @param string $function 'pre_process', 'post_process' or 'render'
533 523
 	 * @return boolean true if the extension (incl. method) exists, else false
534 524
 	 */
@@ -782,7 +772,7 @@  discard block
 block discarded – undo
782 772
 	 * For the 3. Column in the 2. row of a grid which is the only widget in the children-tree it is eg.: "/0/2C"
783 773
 	 *
784 774
 	 * @param string $path path in the widget tree
785
-	 * @param int $ancestor=0 0: widget itself, 1: parent, 2: grand-parent, ...
775
+	 * @param int $ancestor 0: widget itself, 1: parent, 2: grand-parent, ...
786 776
 	 * @return array referenz to the widget spezified or null, if it's not found
787 777
 	 */
788 778
 	function &get_widget_by_path($path,$ancestor=0)
@@ -838,9 +828,9 @@  discard block
 block discarded – undo
838 828
 	 * - csv_split('"a""b,c",d') === array('a"b,c','d')	// to escape enclosures double them!
839 829
 	 *
840 830
 	 * @param string $str
841
-	 * @param int $num=null in how many parts to split maximal, parts over this number end up (unseparated) in the last part
842 831
 	 * @param string $delimiter=','
843 832
 	 * @param string $enclosure='"'
833
+	 * @param integer $num
844 834
 	 * @return array
845 835
 	 */
846 836
 	static function csv_split($str,$num=null,$delimiter=',',$enclosure='"')
@@ -908,8 +898,7 @@  discard block
 block discarded – undo
908 898
 	/**
909 899
 	 * stores the etemplate in the cache in egw_info
910 900
 	 *
911
-	 * @param boetemplate $tpl=null required parameter for static use!
912
-	 * @param boolean $only_update_older=false true only update cache, if it contains an older template
901
+	 * @param boolean $only_update_older true only update cache, if it contains an older template
913 902
 	 */
914 903
 	public /*static*/ function store_in_cache(boetemplate $tpl=null, $only_update_older=false)
915 904
 	{
Please login to merge, or discard this patch.
etemplate/inc/class.bolangfile.inc.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -218,6 +218,9 @@
 block discarded – undo
218 218
 		return $this->target_langarray;
219 219
 	}
220 220
 
221
+	/**
222
+	 * @param string $which
223
+	 */
221 224
 	function write_file($which,$app_name,$userlang)
222 225
 	{
223 226
 		switch ($which)
Please login to merge, or discard this patch.