Passed
Pull Request — master (#46)
by Neo
33:01
created
api/src/Preferences.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -961,7 +961,7 @@
 block discarded – undo
961 961
 	 *
962 962
 	 * This method uses the language and nationalty set in the users common prefs.
963 963
 	 *
964
-	 * @param $category =LC_MESSAGES category to set, see setlocal function
964
+	 * @param integer $category =LC_MESSAGES category to set, see setlocal function
965 965
 	 * @param $charset =null default system charset
966 966
 	 * @return string the local (or best estimate) set
967 967
 	 */
Please login to merge, or discard this patch.
api/src/Auth/Sql.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -241,7 +241,6 @@
 block discarded – undo
241 241
 	 * changes password in sql datababse
242 242
 	 *
243 243
 	 * @param string $encrypted_passwd
244
-	 * @param string $new_passwd cleartext
245 244
 	 * @param int $account_id account id of user whose passwd should be changed
246 245
 	 * @param boolean $admin =false called by admin, if not update password in the session
247 246
 	 * @param boolean $update_lastpw_change =true
Please login to merge, or discard this patch.
api/src/Accounts/Ads.php 1 patch
Doc Comments   +8 added lines, -8 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
 	 */
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
 	 * Convert binary GUID to string
309 309
 	 *
310 310
 	 * @param string $objectguid
311
-	 * @return int
311
+	 * @return string
312 312
 	 */
313 313
 	public function objectguid2str($objectguid)
314 314
 	{
@@ -319,7 +319,7 @@  discard block
 block discarded – undo
319 319
 	 * Convert a string GUID to hex string used in filter
320 320
 	 *
321 321
 	 * @param string $strGUID
322
-	 * @return int
322
+	 * @return string
323 323
 	 */
324 324
 	public function objectguid2hex($strGUID)
325 325
 	{
@@ -378,7 +378,7 @@  discard block
 block discarded – undo
378 378
 	 * Delete one account, deletes also all acl-entries for that account
379 379
 	 *
380 380
 	 * @param int $account_id numeric account_id
381
-	 * @return boolean true on success, false otherwise
381
+	 * @return string|boolean true on success, false otherwise
382 382
 	 */
383 383
 	function delete($account_id)
384 384
 	{
@@ -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.
api/src/CalDAV.php 1 patch
Doc Comments   +9 added lines, -7 removed lines patch added patch discarded remove patch
@@ -311,6 +311,8 @@  discard block
 block discarded – undo
311 311
 	 * @param string $path
312 312
 	 * @param array &$dav
313 313
 	 * @param array &$allow
314
+	 * @param integer[] $dav
315
+	 * @param boolean $allow
314 316
 	 */
315 317
 	function OPTIONS($path, &$dav, &$allow)
316 318
 	{
@@ -1380,7 +1382,7 @@  discard block
 block discarded – undo
1380 1382
 	 * @param int|string $id
1381 1383
 	 * @param array $attach array of array with values for keys 'name', 'params', 'value'
1382 1384
 	 * @param boolean $delete_via_put
1383
-	 * @return boolean false on error, eg. invalid managed id, for false an xml-error body has been send
1385
+	 * @return null|false false on error, eg. invalid managed id, for false an xml-error body has been send
1384 1386
 	 */
1385 1387
 	public static function handle_attach($app, $id, $attach, $delete_via_put=false)
1386 1388
 	{
@@ -1584,7 +1586,7 @@  discard block
 block discarded – undo
1584 1586
 	 * @param string $managed_id
1585 1587
 	 * @param string $app =null app-name to check against path
1586 1588
 	 * @param string|int $id =null id to check agains path
1587
-	 * @return string|boolean "/apps/$app/$id/something" or false if not found or not belonging to given $app/$id
1589
+	 * @return false|string "/apps/$app/$id/something" or false if not found or not belonging to given $app/$id
1588 1590
 	 */
1589 1591
 	static public function managed_id2path($managed_id, $app=null, $id=null)
1590 1592
 	{
@@ -1783,7 +1785,7 @@  discard block
 block discarded – undo
1783 1785
 	 * MKCOL method handler
1784 1786
 	 *
1785 1787
 	 * @param  array  general parameter passing array
1786
-	 * @return bool   true on success
1788
+	 * @return string   true on success
1787 1789
 	 */
1788 1790
 	function MKCOL($options)
1789 1791
 	{
@@ -1796,7 +1798,7 @@  discard block
 block discarded – undo
1796 1798
 	 * MOVE method handler
1797 1799
 	 *
1798 1800
 	 * @param  array  general parameter passing array
1799
-	 * @return bool   true on success
1801
+	 * @return string   true on success
1800 1802
 	 */
1801 1803
 	function MOVE($options)
1802 1804
 	{
@@ -1809,7 +1811,7 @@  discard block
 block discarded – undo
1809 1811
 	 * COPY method handler
1810 1812
 	 *
1811 1813
 	 * @param  array  general parameter passing array
1812
-	 * @return bool   true on success
1814
+	 * @return string   true on success
1813 1815
 	 */
1814 1816
 	function COPY($options, $del=false)
1815 1817
 	{
@@ -1822,7 +1824,7 @@  discard block
 block discarded – undo
1822 1824
 	 * LOCK method handler
1823 1825
 	 *
1824 1826
 	 * @param  array  general parameter passing array
1825
-	 * @return bool   true on success
1827
+	 * @return string|boolean   true on success
1826 1828
 	 */
1827 1829
 	function LOCK(&$options)
1828 1830
 	{
@@ -1856,7 +1858,7 @@  discard block
 block discarded – undo
1856 1858
 	 * UNLOCK method handler
1857 1859
 	 *
1858 1860
 	 * @param  array  general parameter passing array
1859
-	 * @return bool   true on success
1861
+	 * @return string   true on success
1860 1862
 	 */
1861 1863
 	function UNLOCK(&$options)
1862 1864
 	{
Please login to merge, or discard this patch.
api/src/Contacts.php 1 patch
Doc Comments   +7 added lines, -5 removed lines patch added patch discarded remove patch
@@ -484,7 +484,6 @@  discard block
 block discarded – undo
484 484
 	/**
485 485
 	 * get selectbox options for the customfields
486 486
 	 *
487
-	 * @param array $field =null
488 487
 	 * @return array with options:
489 488
 	 */
490 489
 	public static function cf_options()
@@ -536,7 +535,7 @@  discard block
 block discarded – undo
536 535
 	 * @param string $fileas_type '' or type of $this->fileas_types
537 536
 	 * @param int $all =false update all contacts or only ones with empty values
538 537
 	 * @param int &$errors=null on return number of errors
539
-	 * @return int|boolean number of contacts updated, false for wrong fileas type
538
+	 * @return string|null number of contacts updated, false for wrong fileas type
540 539
 	 */
541 540
 	function set_all_fileas($fileas_type,$all=false,&$errors=null,$ignore_acl=false)
542 541
 	{
@@ -597,7 +596,7 @@  discard block
 block discarded – undo
597 596
 	 * remove unneeded carriage returns or set empty fields to NULL
598 597
 	 *
599 598
 	 * @param int &$errors=null on return number of errors
600
-	 * @return int|boolean number of contacts updated
599
+	 * @return string|null number of contacts updated
601 600
 	 */
602 601
 	function set_all_cleanup(&$errors=null,$ignore_acl=false)
603 602
 	{
@@ -1122,7 +1121,7 @@  discard block
 block discarded – undo
1122 1121
 	 * @param mixed $contact contact as array or the contact-id
1123 1122
 	 * @param boolean $deny_account_delete =false if true never allow to delete accounts
1124 1123
 	 * @param int $user =null for which user to check, default current user
1125
-	 * @return boolean true permission granted, false for permission denied, null for contact does not exist
1124
+	 * @return null|boolean true permission granted, false for permission denied, null for contact does not exist
1126 1125
 	 */
1127 1126
 	function check_perms($needed,$contact,$deny_account_delete=false,$user=null)
1128 1127
 	{
@@ -1179,7 +1178,7 @@  discard block
 block discarded – undo
1179 1178
 	 * @param int $check Acl::READ for read and Acl::EDIT for write or delete access
1180 1179
 	 * @param string $rel_path =null currently not used in InfoLog
1181 1180
 	 * @param int $user =null for which user to check, default current user
1182
-	 * @return boolean true if access is granted or false otherwise
1181
+	 * @return null|boolean true if access is granted or false otherwise
1183 1182
 	 */
1184 1183
 	function file_access($id,$check,$rel_path=null,$user=null)
1185 1184
 	{
@@ -2094,6 +2093,9 @@  discard block
 block discarded – undo
2094 2093
 		return $cat_id_list;
2095 2094
 	}
2096 2095
 
2096
+	/**
2097
+	 * @param string $cat_id_list
2098
+	 */
2097 2099
 	function get_categories($cat_id_list)
2098 2100
 	{
2099 2101
 		if (!is_object($this->categories))
Please login to merge, or discard this patch.
calendar/inc/class.calendar_bo.inc.php 1 patch
Doc Comments   +7 added lines, -12 removed lines patch added patch discarded remove patch
@@ -632,8 +632,8 @@  discard block
 block discarded – undo
632 632
 	 * or an ExecMethod callback with parameters $id,$event
633 633
 	 *
634 634
 	 * @param string $app
635
-	 * @param int|string $id
636
-	 * @return string
635
+	 * @param string $id
636
+	 * @return boolean
637 637
 	 */
638 638
 	static function integration_get_private($app,$id,$event)
639 639
 	{
@@ -762,7 +762,7 @@  discard block
 block discarded – undo
762 762
 	 * This methods operates in usertime, while $this->config['horizont'] is in servertime!
763 763
 	 *
764 764
 	 * @param array $event
765
-	 * @param mixed $start =0 minimum start-time for new recurrences or !$start = since the start of the event
765
+	 * @param integer $start =0 minimum start-time for new recurrences or !$start = since the start of the event
766 766
 	 */
767 767
 	function set_recurrences($event,$start=0)
768 768
 	{
@@ -982,10 +982,9 @@  discard block
 block discarded – undo
982 982
 	 * Recurrences get calculated by rrule iterator implemented in calendar_rrule class.
983 983
 	 *
984 984
 	 * @param array $event repeating event whos repetions should be inserted
985
-	 * @param mixed $start start-date
985
+	 * @param mixed $_start start-date
986 986
 	 * @param mixed $end end-date
987 987
 	 * @param array $events where the repetions get inserted
988
-	 * @param array $recur_exceptions with date (in Ymd) as key (and True as values), seems not to be used anymore
989 988
 	 */
990 989
 	function insert_all_recurrences($event,$_start,$end,&$events)
991 990
 	{
@@ -1139,7 +1138,7 @@  discard block
 block discarded – undo
1139 1138
 	 *	even if you have no general read-grant from that user.
1140 1139
 	 *
1141 1140
 	 * @param int $needed necessary ACL right: Acl::{READ|EDIT|DELETE}
1142
-	 * @param mixed $event event as array or the event-id or 0 for a general check
1141
+	 * @param integer $event event as array or the event-id or 0 for a general check
1143 1142
 	 * @param int $other uid to check (if event==0) or 0 to check against $this->user
1144 1143
 	 * @param string $date_format ='ts' date-format used for reading: 'ts'=timestamp, 'array'=array, 'string'=iso8601 string for xmlrpc
1145 1144
 	 * @param mixed $date_to_read =null date used for reading, internal param for the caching
@@ -1312,8 +1311,6 @@  discard block
 block discarded – undo
1312 1311
 	 * @param string $msg message with parameters/variables like lang(), eg. '%1'
1313 1312
 	 * @param boolean $backtrace =True include a function-backtrace, default True=On
1314 1313
 	 *	should only be set to False=Off, if your code ensures a call with backtrace=On was made before !!!
1315
-	 * @param mixed $param a variable number of parameters, to be inserted in $msg
1316
-	 *	arrays get serialized with print_r() !
1317 1314
 	 */
1318 1315
 	static function debug_message($msg,$backtrace=True)
1319 1316
 	{
@@ -1378,7 +1375,7 @@  discard block
 block discarded – undo
1378 1375
 	 * Formats one or two dates (range) as long date (full monthname), optionaly with a time
1379 1376
 	 *
1380 1377
 	 * @param mixed $_first first date
1381
-	 * @param mixed $last =0 last date if != 0 (default)
1378
+	 * @param integer $last =0 last date if != 0 (default)
1382 1379
 	 * @param boolean $display_time =false should a time be displayed too
1383 1380
 	 * @param boolean $display_day =false should a day-name prefix the date, eg. monday June 20, 2006
1384 1381
 	 * @return string with formated date
@@ -1847,7 +1844,6 @@  discard block
 block discarded – undo
1847 1844
 	 *
1848 1845
 	 * Is called as hook to participate in the linking
1849 1846
 	 *
1850
-	 * @param int|array $entry int cal_id or array with event
1851 1847
 	 * @param string|boolean string with title, null if not found or false if not read perms
1852 1848
 	 */
1853 1849
 	function link_title($event)
@@ -2036,6 +2032,7 @@  discard block
 block discarded – undo
2036 2032
 	 *
2037 2033
 	 * @param array|int|string $entry array with event or cal_id, or cal_id:recur_date for virtual exceptions
2038 2034
 	 * @param string &$schedule_tag=null on return schedule-tag (egw_cal.cal_id:egw_cal.cal_etag, no participant modifications!)
2035
+	 * @param string $schedule_tag
2039 2036
 	 * @return string|boolean string with etag or false
2040 2037
 	 */
2041 2038
 	function get_etag($entry, &$schedule_tag=null)
@@ -2076,7 +2073,6 @@  discard block
 block discarded – undo
2076 2073
 	 * Hook for infolog  to set some extra data and links
2077 2074
 	 *
2078 2075
 	 * @param array $data event-array preset by infolog plus
2079
-	 * @param int $data[id] cal_id
2080 2076
 	 * @return array with key => value pairs to set in new event and link_app/link_id arrays
2081 2077
 	 */
2082 2078
 	function infolog_set($data)
@@ -2128,7 +2124,6 @@  discard block
 block discarded – undo
2128 2124
 	 * Hook for timesheet to set some extra data and links
2129 2125
 	 *
2130 2126
 	 * @param array $data
2131
-	 * @param int $data[id] cal_id:recurrence
2132 2127
 	 * @return array with key => value pairs to set in new timesheet and link_app/link_id arrays
2133 2128
 	 */
2134 2129
 	function timesheet_set($data)
Please login to merge, or discard this patch.
calendar/inc/class.calendar_groupdav.inc.php 1 patch
Doc Comments   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
 	 *
316 316
 	 * @param string $path
317 317
 	 * @param array $filter
318
-	 * @param array|boolean $start =false false=return all or array(start,num)
318
+	 * @param integer[] $start =false false=return all or array(start,num)
319 319
 	 * @return array with "files" array with values for keys path and props
320 320
 	 */
321 321
 	function &propfind_callback($path,array $filter,$start=false)
@@ -620,7 +620,7 @@  discard block
 block discarded – undo
620 620
 	 * @param array &$options
621 621
 	 * @param int $id
622 622
 	 * @param int $user =null account_id
623
-	 * @return mixed boolean true on success, false on failure or string with http status (eg. '404 Not Found')
623
+	 * @return string|boolean boolean true on success, false on failure or string with http status (eg. '404 Not Found')
624 624
 	 */
625 625
 	function get(&$options,$id,$user=null)
626 626
 	{
@@ -793,7 +793,7 @@  discard block
 block discarded – undo
793 793
 	 * Check if $user is a participant of given $event incl. group-invitations
794 794
 	 *
795 795
 	 * @param array $event
796
-	 * @param int|string $user
796
+	 * @param integer $user
797 797
 	 * @return boolean
798 798
 	 */
799 799
 	public static function isParticipant(array $event, $user)
@@ -810,7 +810,7 @@  discard block
 block discarded – undo
810 810
 	 * @param int $id
811 811
 	 * @param int $user =null account_id of owner, default null
812 812
 	 * @param string $prefix =null user prefix from path (eg. /ralf from /ralf/addressbook)
813
-	 * @return mixed boolean true on success, false on failure or string with http status (eg. '404 Not Found')
813
+	 * @return string|boolean boolean true on success, false on failure or string with http status (eg. '404 Not Found')
814 814
 	 */
815 815
 	function put(&$options,$id,$user=null,$prefix=null)
816 816
 	{
@@ -1038,7 +1038,7 @@  discard block
 block discarded – undo
1038 1038
 	 * @param array &$options
1039 1039
 	 * @param int $id
1040 1040
 	 * @param int $user =null account_id of owner, default null
1041
-	 * @return mixed boolean true on success, false on failure or string with http status (eg. '404 Not Found')
1041
+	 * @return string|boolean boolean true on success, false on failure or string with http status (eg. '404 Not Found')
1042 1042
 	 */
1043 1043
 	function post(&$options,$id,$user=null)
1044 1044
 	{
@@ -1112,7 +1112,7 @@  discard block
 block discarded – undo
1112 1112
 	 * @param string $charset of ical
1113 1113
 	 * @param int $user account_id of owner
1114 1114
 	 * @param array &$options
1115
-	 * @return mixed boolean true on success, false on failure or string with http status (eg. '404 Not Found')
1115
+	 * @return string|boolean boolean true on success, false on failure or string with http status (eg. '404 Not Found')
1116 1116
 	 */
1117 1117
 	protected function outbox_freebusy_request($ical, $charset, $user, array &$options)
1118 1118
 	{
@@ -1187,7 +1187,7 @@  discard block
 block discarded – undo
1187 1187
 	 * @param string $path
1188 1188
 	 * @param array $options
1189 1189
 	 * @param int $user account_id
1190
-	 * @return mixed boolean true on success, false on failure or string with http status (eg. '404 Not Found')
1190
+	 * @return string|null boolean true on success, false on failure or string with http status (eg. '404 Not Found')
1191 1191
 	 */
1192 1192
 	function free_busy_report($path,$options,$user)
1193 1193
 	{
@@ -1416,7 +1416,7 @@  discard block
 block discarded – undo
1416 1416
 	/**
1417 1417
 	 * Query ctag for calendar
1418 1418
 	 *
1419
-	 * @return string
1419
+	 * @return integer
1420 1420
 	 */
1421 1421
 	public function getctag($path,$user)
1422 1422
 	{
@@ -1449,7 +1449,7 @@  discard block
 block discarded – undo
1449 1449
 	 *
1450 1450
 	 * @param int|array $entry id or array of new created entry
1451 1451
 	 * @param string $path
1452
-	 * @param int|string $retval
1452
+	 * @param string|boolean $retval
1453 1453
 	 * @param boolean $path_attr_is_name =true true: path_attr is ca(l|rd)dav_name, false: id (GroupDAV needs Location header)
1454 1454
 	 */
1455 1455
 	function put_response_headers($entry, $path, $retval, $path_attr_is_name=true)
Please login to merge, or discard this patch.
calendar/inc/class.calendar_zpush.inc.php 1 patch
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
 	 * @param int $truncsize
283 283
 	 * @param int $bodypreference
284 284
 	 * @param $optionbodypreference
285
-	 * @param bool $mimesupport
285
+	 * @param integer $mimesupport
286 286
 	 * @return SyncMail
287 287
 	 */
288 288
 	function GetMeetingRequest($id, $truncsize, $bodypreference=false, $optionbodypreference=false, $mimesupport = 0)
@@ -900,7 +900,7 @@  discard block
 block discarded – undo
900 900
 	 * @param string $id of the folder to delete
901 901
 	 *
902 902
 	 * @return
903
-	 * @TODO check what is to be returned
903
+	 boolean @TODO check what is to be returned
904 904
 	 */
905 905
 	public function DeleteFolder($parentid, $id)
906 906
 	{
@@ -1596,6 +1596,7 @@  discard block
 block discarded – undo
1596 1596
 	 * Unpack timezone info from Sync
1597 1597
 	 *
1598 1598
 	 * copied from backend/ics.php
1599
+	 * @param string $data
1599 1600
 	 */
1600 1601
 	static public function _getTZFromSyncBlob($data)
1601 1602
 	{
Please login to merge, or discard this patch.
api/src/Mail/Credentials.php 1 patch
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -363,7 +363,7 @@  discard block
 block discarded – undo
363 363
 	 *
364 364
 	 * @param string $password cleartext password
365 365
 	 * @param int $account_id user-account password is for
366
-	 * @param int& $pw_enc on return encryption used
366
+	 * @param integer $pw_enc on return encryption used
367 367
 	 * @return string encrypted password
368 368
 	 */
369 369
 	protected static function encrypt($password, $account_id, &$pw_enc)
@@ -436,7 +436,7 @@  discard block
 block discarded – undo
436 436
 	 * With a 12 byte binary (16 byte base64) salt we can store 39 byte password in our varchar(80) column.
437 437
 	 *
438 438
 	 * @param string $password
439
-	 * @param string& $salt binary salt to use or null to generate one, on return used salt
439
+	 * @param string|null $salt binary salt to use or null to generate one, on return used salt
440 440
 	 * @param int $iterations =2048 iterations of passsword
441 441
 	 * @param int $length =16 length of binary aes key
442 442
 	 * @param string $hash ='sha256'
@@ -614,7 +614,6 @@  discard block
 block discarded – undo
614 614
 	 *
615 615
 	 * @param array $row database row
616 616
 	 * @param string $key =null password to use
617
-	 * @param string $salt_len =16 len of base64 encoded salt (binary is 3/4)
618 617
 	 * @return string cleartext password
619 618
 	 * @throws Api\Exception\WrongParameter
620 619
 	 * @throws Api\Exception\AssertionFailed if OpenSSL extension not available
Please login to merge, or discard this patch.