Completed
Push — 16.1 ( 7ccc73...046888 )
by Nathan
64:46 queued 51:15
created
api/src/CalDAV/Principals.php 1 patch
Doc Comments   +8 added lines, -11 removed lines patch added patch discarded remove patch
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
 	 * @param array &$options
257 257
 	 * @param array &$files
258 258
 	 * @param int $user account_id
259
-	 * @return mixed boolean true on success, false on failure or string with http status (eg. '404 Not Found')
259
+	 * @return boolean boolean true on success, false on failure or string with http status (eg. '404 Not Found')
260 260
 	 */
261 261
 	function expand_property_report($path,&$options,&$files,$user)
262 262
 	{
@@ -1191,7 +1191,7 @@  discard block
 block discarded – undo
1191 1191
 	 * Check if resource is a location
1192 1192
 	 *
1193 1193
 	 * @param array|int $resource
1194
-	 * @return boolean
1194
+	 * @return null|boolean
1195 1195
 	 */
1196 1196
 	public static function resource_is_location($resource)
1197 1197
 	{
@@ -1470,7 +1470,6 @@  discard block
 block discarded – undo
1470 1470
 	 * Get proxy-groups for given user $account: users or groups who GRANT proxy rights to $account
1471 1471
 	 *
1472 1472
 	 * @param int $account who is the proxy
1473
-	 * @param string|array $app_proxys =null applications for which proxys should be added
1474 1473
 	 * @return array with href props
1475 1474
 	 */
1476 1475
 	protected function get_resource_proxy_groups($account)
@@ -1608,8 +1607,6 @@  discard block
 block discarded – undo
1608 1607
 	/**
1609 1608
 	 * Do propfind of /principals/
1610 1609
 	 *
1611
-	 * @param string $name name of group or empty
1612
-	 * @param string $rest name of rest of path behind group-name
1613 1610
 	 * @param array $options
1614 1611
 	 * @return array|string array with files or HTTP error code
1615 1612
 	 */
@@ -1640,7 +1637,7 @@  discard block
 block discarded – undo
1640 1637
 	 * @param array &$options
1641 1638
 	 * @param int $id
1642 1639
 	 * @param int $user =null account_id
1643
-	 * @return mixed boolean true on success, false on failure or string with http status (eg. '404 Not Found')
1640
+	 * @return boolean boolean true on success, false on failure or string with http status (eg. '404 Not Found')
1644 1641
 	 */
1645 1642
 	function get(&$options,$id,$user=null)
1646 1643
 	{
@@ -1655,7 +1652,7 @@  discard block
 block discarded – undo
1655 1652
 	 * @param array &$options
1656 1653
 	 * @param int $id
1657 1654
 	 * @param int $user =null account_id of owner, default null
1658
-	 * @return mixed boolean true on success, false on failure or string with http status (eg. '404 Not Found')
1655
+	 * @return boolean boolean true on success, false on failure or string with http status (eg. '404 Not Found')
1659 1656
 	 */
1660 1657
 	function put(&$options,$id,$user=null)
1661 1658
 	{
@@ -1669,7 +1666,7 @@  discard block
 block discarded – undo
1669 1666
 	 *
1670 1667
 	 * @param array &$options
1671 1668
 	 * @param int $id
1672
-	 * @return mixed boolean true on success, false on failure or string with http status (eg. '404 Not Found')
1669
+	 * @return boolean boolean true on success, false on failure or string with http status (eg. '404 Not Found')
1673 1670
 	 */
1674 1671
 	function delete(&$options,$id)
1675 1672
 	{
@@ -1681,7 +1678,7 @@  discard block
 block discarded – undo
1681 1678
 	/**
1682 1679
 	 * Read an entry
1683 1680
 	 *
1684
-	 * @param string|int $id
1681
+	 * @param integer $id
1685 1682
 	 * @return array/boolean array with entry, false if no read rights, null if $id does not exist
1686 1683
 	 */
1687 1684
 	function read($id)
@@ -1696,7 +1693,7 @@  discard block
 block discarded – undo
1696 1693
 	 *
1697 1694
 	 * @param int $acl Api\Acl::READ, Api\Acl::EDIT or Api\Acl::DELETE
1698 1695
 	 * @param array|int $entry entry-array or id
1699
-	 * @return boolean null if entry does not exist, false if no access, true if access permitted
1696
+	 * @return null|boolean null if entry does not exist, false if no access, true if access permitted
1700 1697
 	 */
1701 1698
 	function check_access($acl,$entry)
1702 1699
 	{
@@ -1739,7 +1736,7 @@  discard block
 block discarded – undo
1739 1736
 	 *
1740 1737
 	 * @param string $path path of collection
1741 1738
 	 * @param int $user =null owner of the collection, default current user
1742
-	 * @return array with privileges
1739
+	 * @return string[] with privileges
1743 1740
 	 */
1744 1741
 	public function current_user_privileges($path, $user=null)
1745 1742
 	{
Please login to merge, or discard this patch.
api/src/CalDAV/PropfindIterator.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -94,6 +94,7 @@
 block discarded – undo
94 94
 	 * @param Handler $handler
95 95
 	 * @param array $filter filter for propfind call
96 96
 	 * @param array $files =array() extra files/responses to return too
97
+	 * @param string $path
97 98
 	 */
98 99
 	public function __construct(Handler $handler, $path, array $filter,array &$files=array())
99 100
 	{
Please login to merge, or discard this patch.
api/src/Categories.php 1 patch
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -322,13 +322,13 @@  discard block
 block discarded – undo
322 322
 	 * return a sorted array populated with categories (main sorting criteria is hierachy!)
323 323
 	 *
324 324
 	 * @param int $start =0 see $limit
325
-	 * @param boolean|int $limit if true limited query to maxmatches rows (starting with $start)
325
+	 * @param boolean $limit if true limited query to maxmatches rows (starting with $start)
326 326
 	 * @param string $query ='' query-pattern
327 327
 	 * @param string $sort ='ASC' sort order, either defaults to 'ASC'
328 328
 	 * @param string $order ='cat_name' order by
329 329
 	 * @param boolean|string $globals includes the global egroupware categories or not,
330 330
 	 * 	'all_no_acl' to return global and all non-private user categories independent of ACL
331
-	 * @param array|int $parent_id =0 return only subcats of $parent_id(s)
331
+	 * @param integer $parent_id =0 return only subcats of $parent_id(s)
332 332
 	 * @param boolean $unserialize_data =true return $cat['data'] as array (not serialized array)
333 333
 	 * @return array with cats
334 334
 	 */
@@ -507,7 +507,7 @@  discard block
 block discarded – undo
507 507
 	 * @param mixed $category category as array or the category_id
508 508
 	 * @param boolean $no_acl_check =false if true, grants are NOT checked, gives access to all non-private categories of all users
509 509
 	 * @param boolean $allow_global_read if true, global cats are allowed (independent of app) for reading
510
-	 * @return boolean true permission granted, false for permission denied, null for category does not exist
510
+	 * @return null|boolean true permission granted, false for permission denied, null for category does not exist
511 511
 	 */
512 512
 	public function check_perms($needed, $category, $no_acl_check=false, $allow_global_read=false)
513 513
 	{
@@ -675,7 +675,7 @@  discard block
 block discarded – undo
675 675
 	 * check_consistency4update - for edit
676 676
 	 *
677 677
 	 * @param array $values array with cat-data (it need to be complete, as everything get's written)
678
-	 * @return mixed string/boolean errorstring if consitency check failed / true if the consistency check did not fail
678
+	 * @return string|boolean string/boolean errorstring if consitency check failed / true if the consistency check did not fail
679 679
 	 */
680 680
 	function check_consistency4update($values)
681 681
 	{
@@ -822,7 +822,7 @@  discard block
 block discarded – undo
822 822
 	 *
823 823
 	 * @param int|array $cat
824 824
 	 * @param boolean $application_global =false true check for application global categories only (appname == 'phpgw')
825
-	 * @return boolean
825
+	 * @return null|boolean
826 826
 	 */
827 827
 	static function is_global($cat,$application_global=false)
828 828
 	{
@@ -1030,7 +1030,7 @@  discard block
 block discarded – undo
1030 1030
 	 *
1031 1031
 	 * @param string appname
1032 1032
 	 *
1033
-	 * @return Returns the URL, but you do not need to do anything with it.
1033
+	 * @return string the URL, but you do not need to do anything with it.
1034 1034
 	 */
1035 1035
 	public static function css($appname)
1036 1036
 	{
Please login to merge, or discard this patch.
api/src/Config.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -194,7 +194,7 @@
 block discarded – undo
194 194
 	/**
195 195
 	 * sets a single value in the repositry, you need to call save_repository after
196 196
 	 *
197
-	 * @param $variable_name string name of the config
197
+	 * @param string $variable_name string name of the config
198 198
 	 * @param $variable_data mixed the content
199 199
 	 */
200 200
 	function value($variable_name,$variable_data)
Please login to merge, or discard this patch.
api/src/Contacts/Ads.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -213,7 +213,6 @@
 block discarded – undo
213 213
 	/**
214 214
 	 * Remove attributes we are not allowed to update
215 215
 	 *
216
-	 * @param array $attributes
217 216
 	 */
218 217
 	function sanitize_update(array &$ldapContact)
219 218
 	{
Please login to merge, or discard this patch.
api/src/Contacts/Ldap.php 1 patch
Doc Comments   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -425,7 +425,6 @@  discard block
 block discarded – undo
425 425
 	/**
426 426
 	 * Remove attributes we are not allowed to update
427 427
 	 *
428
-	 * @param array $attributes
429 428
 	 */
430 429
 	function sanitize_update(array &$ldapContact)
431 430
 	{
@@ -703,14 +702,14 @@  discard block
 block discarded – undo
703 702
 	 *
704 703
 	 * '*' and '?' are replaced with sql-wildcards '%' and '_'
705 704
 	 *
706
-	 * @param array|string $criteria array of key and data cols, OR a SQL query (content for WHERE), fully quoted (!)
705
+	 * @param boolean $criteria array of key and data cols, OR a SQL query (content for WHERE), fully quoted (!)
707 706
 	 * @param boolean|string $only_keys =true True returns only keys, False returns all cols. comma seperated list of keys to return
708 707
 	 * @param string $order_by ='' fieldnames + {ASC|DESC} separated by colons ',', can also contain a GROUP BY (if it contains ORDER BY)
709
-	 * @param string|array $extra_cols ='' string or array of strings to be added to the SELECT, eg. "count(*) as num"
708
+	 * @param string $extra_cols ='' string or array of strings to be added to the SELECT, eg. "count(*) as num"
710 709
 	 * @param string $wildcard ='' appended befor and after each criteria
711 710
 	 * @param boolean $empty =false False=empty criteria are ignored in query, True=empty have to be empty in row
712 711
 	 * @param string $op ='AND' defaults to 'AND', can be set to 'OR' too, then criteria's are OR'ed together
713
-	 * @param mixed $start =false if != false, return only maxmatch rows begining with start, or array($start,$num)
712
+	 * @param boolean $start =false if != false, return only maxmatch rows begining with start, or array($start,$num)
714 713
 	 * @param array $filter =null if set (!=null) col-data pairs, to be and-ed (!) into the query without wildcards
715 714
 	 * @param string $join ='' sql to do a join, added as is after the table-name, eg. ", table2 WHERE x=y" or
716 715
 	 *	"LEFT JOIN table2 ON (x=y)", Note: there's no quoting done on $join!
Please login to merge, or discard this patch.
api/src/Contacts/Sql.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
 	 * For a union-query you call search for each query with $start=='UNION' and one more with only $order_by and $start set to run the union-query.
251 251
 	 *
252 252
 	 * @param array|string $criteria array of key and data cols, OR a SQL query (content for WHERE), fully quoted (!)
253
-	 * @param boolean|string|array $only_keys =true True returns only keys, False returns all cols. or
253
+	 * @param boolean|string $only_keys =true True returns only keys, False returns all cols. or
254 254
 	 *	comma seperated list or array of columns to return
255 255
 	 * @param string $order_by ='' fieldnames + {ASC|DESC} separated by colons ',', can also contain a GROUP BY (if it contains ORDER BY)
256 256
 	 * @param string|array $extra_cols ='' string or array of strings to be added to the SELECT, eg. "count(*) as num"
@@ -508,7 +508,7 @@  discard block
 block discarded – undo
508 508
 	 * 	or whole where array: column-name => value(s) pairs
509 509
 	 * @param string $uid_column ='list_owner' column-name or null to use $uids as where array
510 510
 	 * @param string $member_attr =null null: no members, 'contact_uid', 'contact_id', 'caldav_name' return members as that attribute
511
-	 * @param boolean|int|array $limit_in_ab =false if true only return members from the same owners addressbook,
511
+	 * @param boolean $limit_in_ab =false if true only return members from the same owners addressbook,
512 512
 	 * 	if int|array only return members from the given owners addressbook(s)
513 513
 	 * @return array with list_id => array(list_id,list_name,list_owner,...) pairs
514 514
 	 */
Please login to merge, or discard this patch.
api/src/Contacts/Storage.php 1 patch
Doc Comments   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -592,7 +592,7 @@  discard block
 block discarded – undo
592 592
 	 * @param array|string $criteria array of key and data cols, OR string to search over all standard search fields
593 593
 	 * @param boolean|string $only_keys =true True returns only keys, False returns all cols. comma seperated list of keys to return
594 594
 	 * @param string $order_by ='' fieldnames + {ASC|DESC} separated by colons ',', can also contain a GROUP BY (if it contains ORDER BY)
595
-	 * @param string|array $extra_cols ='' string or array of strings to be added to the SELECT, eg. "count(*) as num"
595
+	 * @param string $extra_cols ='' string or array of strings to be added to the SELECT, eg. "count(*) as num"
596 596
 	 * @param string $wildcard ='' appended befor and after each criteria
597 597
 	 * @param boolean $empty =false False=empty criteria are ignored in query, True=empty have to be empty in row
598 598
 	 * @param string $op ='AND' defaults to 'AND', can be set to 'OR' too, then criteria's are OR'ed together
@@ -814,8 +814,6 @@  discard block
 block discarded – undo
814 814
 	 * delete / move all contacts of an addressbook
815 815
 	 *
816 816
 	 * @param array $data
817
-	 * @param int $data['account_id'] owner to change
818
-	 * @param int $data['new_owner']  new owner or 0 for delete
819 817
 	 */
820 818
 	function deleteaccount($data)
821 819
 	{
Please login to merge, or discard this patch.
api/src/DateTime.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,6 +91,7 @@  discard block
 block discarded – undo
91 91
 	 * 	array with values for keys('year','month','day') or 'full' plus 'hour','minute' and optional 'second'
92 92
 	 * @param DateTimeZone $tz =null timezone, default user time (PHP DateTime default to server time!)
93 93
 	 * @param string &$type=null on return type of $time (optional)
94
+	 * @param string $type
94 95
 	 * @throws Exception if $time can NOT be parsed
95 96
 	 */
96 97
 	public function __construct($time='now',DateTimeZone $tz=null,&$type=null)
@@ -573,7 +574,7 @@  discard block
 block discarded – undo
573 574
 	 * - return UTC and oceans at the end
574 575
 	 * - if (user lang is a european language), move Europe to top
575 576
 	 *
576
-	 * @return array continent|ocean => array(tz-name => tz-label incl. current time)
577
+	 * @return string continent|ocean => array(tz-name => tz-label incl. current time)
577 578
 	 */
578 579
 	public static function getTimezones()
579 580
 	{
Please login to merge, or discard this patch.