Passed
Pull Request — master (#46)
by Neo
33:01
created
calendar/inc/class.calendar_so.inc.php 1 patch
Doc Comments   +12 added lines, -36 removed lines patch added patch discarded remove patch
@@ -211,23 +211,11 @@  discard block
 block discarded – undo
211 211
 	 * @param int $start startdate of the search/list (servertime)
212 212
 	 * @param int $end enddate of the search/list (servertime)
213 213
 	 * @param int|array $users user-id or array of user-id's, !$users means all entries regardless of users
214
-	 * @param int|array $cat_id =0 mixed category-id or array of cat-id's (incl. all sub-categories), default 0 = all
214
+	 * @param integer $cat_id =0 mixed category-id or array of cat-id's (incl. all sub-categories), default 0 = all
215 215
 	 * @param string $filter ='default' string filter-name: all (not rejected), accepted, unknown, tentative, rejected or everything (incl. rejected, deleted)
216 216
 	 * @param int|boolean $offset =False offset for a limited query or False (default)
217 217
 	 * @param int $num_rows =0 number of rows to return if offset set, default 0 = use default in user prefs
218 218
 	 * @param array $params =array()
219
-	 * @param string|array $params['query'] string: pattern so search for, if unset or empty all matching entries are returned (no search)
220
-	 *		Please Note: a search never returns repeating events more then once AND does not honor start+end date !!!
221
-	 *      array: everything is directly used as $where
222
-	 * @param string $params['order'] ='cal_start' column-names plus optional DESC|ASC separted by comma
223
-	 * @param string $params['sql_filter'] sql to be and'ed into query (fully quoted)
224
-	 * @param string|array $params['cols'] what to select, default "$this->repeats_table.*,$this->cal_table.*,cal_start,cal_end,cal_recur_date",
225
-	 * 						if specified and not false an iterator for the rows is returned
226
-	 * @param string $params['append'] SQL to append to the query before $order, eg. for a GROUP BY clause
227
-	 * @param array $params['cfs'] custom fields to query, null = none, array() = all, or array with cfs names
228
-	 * @param array $params['users'] raw parameter as passed to calendar_bo::search() no memberships resolved!
229
-	 * @param boolean $params['master_only'] =false, true only take into account participants/status from master (for AS)
230
-	 * @param boolean $params['enum_recuring'] =true enumerate recuring events
231 219
 	 * @param int $remove_rejected_by_user =null add join to remove entry, if given user has rejected it
232 220
 	 * @return array of events
233 221
 	 */
@@ -594,7 +582,7 @@  discard block
 block discarded – undo
594 582
 	/**
595 583
 	 * generate SQL to filter after a given category (incl. subcategories)
596 584
 	 *
597
-	 * @param array|int $cat_id cat-id or array of cat-ids, or !$cat_id for none
585
+	 * @param integer $cat_id cat-id or array of cat-ids, or !$cat_id for none
598 586
 	 * @return string SQL to include in the query
599 587
 	 */
600 588
 	function cat_filter($cat_id)
@@ -686,24 +674,11 @@  discard block
 block discarded – undo
686 674
 	 * @param int $start startdate of the search/list (servertime)
687 675
 	 * @param int $end enddate of the search/list (servertime)
688 676
 	 * @param int|array $users user-id or array of user-id's, !$users means all entries regardless of users
689
-	 * @param int|array $cat_id =0 mixed category-id or array of cat-id's (incl. all sub-categories), default 0 = all
677
+	 * @param integer $cat_id =0 mixed category-id or array of cat-id's (incl. all sub-categories), default 0 = all
690 678
 	 * @param string $filter ='all' string filter-name: all (not rejected), accepted, unknown, tentative, rejected or everything (incl. rejected, deleted)
691 679
 	 * @param int|boolean $offset =False offset for a limited query or False (default)
692 680
 	 * @param int $num_rows =0 number of rows to return if offset set, default 0 = use default in user prefs
693 681
 	 * @param array $params =array()
694
-	 * @param string|array $params['query'] string: pattern so search for, if unset or empty all matching entries are returned (no search)
695
-	 *		Please Note: a search never returns repeating events more then once AND does not honor start+end date !!!
696
-	 *      array: everything is directly used as $where
697
-	 * @param string $params['order'] ='cal_start' column-names plus optional DESC|ASC separted by comma
698
-	 * @param string|array $params['sql_filter'] sql to be and'ed into query (fully quoted), or usual filter array
699
-	 * @param string|array $params['cols'] what to select, default "$this->repeats_table.*,$this->cal_table.*,cal_start,cal_end,cal_recur_date",
700
-	 * 						if specified and not false an iterator for the rows is returned
701
-	 * @param string $params['append'] SQL to append to the query before $order, eg. for a GROUP BY clause
702
-	 * @param array $params['cfs'] custom fields to query, null = none, array() = all, or array with cfs names
703
-	 * @param array $params['users'] raw parameter as passed to calendar_bo::search() no memberships resolved!
704
-	 * @param boolean $params['master_only'] =false, true only take into account participants/status from master (for AS)
705
-	 * @param boolean $params['enum_recuring'] =true enumerate recuring events
706
-	 * @param boolean $params['use_so_events'] =false, true return result of new $this->events()
707 682
 	 * @param int $remove_rejected_by_user =null add join to remove entry, if given user has rejected it
708 683
 	 * @return Iterator|array of events
709 684
 	 */
@@ -1168,11 +1143,11 @@  discard block
 block discarded – undo
1168 1143
 	 * Ask other apps if they want to participate in calendar search / display
1169 1144
 	 *
1170 1145
 	 * @param &$selects parts of union query
1171
-	 * @param $start see search()
1172
-	 * @param $end
1146
+	 * @param integer $start see search()
1147
+	 * @param integer $end
1173 1148
 	 * @param $users as used in calendar_so ($users_raw plus all members and memberships added by calendar_bo)
1174
-	 * @param $cat_id
1175
-	 * @param $filter
1149
+	 * @param integer $cat_id
1150
+	 * @param string $filter
1176 1151
 	 * @param $query
1177 1152
 	 * @param $users_raw as passed to calendar_bo::search (no members and memberships added)
1178 1153
 	 */
@@ -1340,6 +1315,7 @@  discard block
 block discarded – undo
1340 1315
 	 * @param int &$set_recurrences_start=0 on return: time from which on the recurrences should be rebuilt, default 0=all
1341 1316
 	 * @param int $change_since =0 time from which on the repetitions should be changed, default 0=all
1342 1317
 	 * @param int &$etag etag=null etag to check or null, on return new etag
1318
+	 * @param boolean $set_recurrences
1343 1319
 	 * @return boolean|int false on error, 0 if etag does not match, cal_id otherwise
1344 1320
 	 */
1345 1321
 	function save(&$event,&$set_recurrences,&$set_recurrences_start=0,$change_since=0,&$etag=null)
@@ -1735,7 +1711,7 @@  discard block
 block discarded – undo
1735 1711
 	 * @param int $cal_id
1736 1712
 	 * @param int $start new starttime
1737 1713
 	 * @param int $end new endtime
1738
-	 * @param int|boolean $change_since =0 false=new entry, > 0 time from which on the repetitions should be changed, default 0=all
1714
+	 * @param integer $change_since =0 false=new entry, > 0 time from which on the repetitions should be changed, default 0=all
1739 1715
 	 * @param int $old_start =0 old starttime or (default) 0, to query it from the db
1740 1716
 	 * @param int $old_end =0 old starttime or (default) 0
1741 1717
 	 * @todo Recalculate recurrences, if timezone changes
@@ -1912,7 +1888,7 @@  discard block
 block discarded – undo
1912 1888
 	 *
1913 1889
 	 * @param int $cal_id
1914 1890
 	 * @param array $participants uid => status pairs
1915
-	 * @param int|boolean $change_since =0, false=new event,
1891
+	 * @param integer $change_since =0, false=new event,
1916 1892
 	 * 		0=all, > 0 time from which on the repetitions should be changed
1917 1893
 	 * @param boolean $add_only =false
1918 1894
 	 *		false = add AND delete participants if needed (full list of participants required in $participants)
@@ -2058,7 +2034,7 @@  discard block
 block discarded – undo
2058 2034
 	 * set the status of one participant for a given recurrence or for all recurrences since now (includes recur_date=0)
2059 2035
 	 *
2060 2036
 	 * @param int $cal_id
2061
-	 * @param char $user_type 'u' regular user, 'r' resource, 'c' contact
2037
+	 * @param string $user_type 'u' regular user, 'r' resource, 'c' contact
2062 2038
 	 * @param int|string $user_id
2063 2039
 	 * @param int|char $status numeric status (defines) or 1-char code: 'R', 'U', 'T' or 'A'
2064 2040
 	 * @param int $recur_date =0 date to change, or 0 = all since now
@@ -2975,7 +2951,7 @@  discard block
 block discarded – undo
2975 2951
 	 * Updates the modification timestamp to force an etag, ctag and sync-token change
2976 2952
 	 *
2977 2953
 	 * @param int $id event id
2978
-	 * @param int|boolean $update_master =false id of series master or true, to update series master too
2954
+	 * @param boolean $update_master =false id of series master or true, to update series master too
2979 2955
 	 * @param int $time =null new timestamp, default current (server-)time
2980 2956
 	 * @param int $modifier =null uid of the modifier, default current user
2981 2957
 	 */
Please login to merge, or discard this patch.
api/src/Mail/Imap.php 1 patch
Doc Comments   +8 added lines, -7 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 	 * Construtor
133 133
 	 *
134 134
 	 * @param array
135
-	 * @param bool|int|string $_adminConnection create admin connection if true or account_id or imap username
135
+	 * @param boolean|string $_adminConnection create admin connection if true or account_id or imap username
136 136
 	 * @param int $_timeout =null timeout in secs, if none given fmail pref or default of 20 is used
137 137
 	 * @return void
138 138
 	 */
@@ -450,7 +450,7 @@  discard block
 block discarded – undo
450 450
 	/**
451 451
 	 * getSpecialUseFolders
452 452
 	 *
453
-	 * @return current mailbox, or if none check on INBOX, and return upon existance
453
+	 * @return string mailbox, or if none check on INBOX, and return upon existance
454 454
 	 */
455 455
 	function getCurrentMailbox()
456 456
 	{
@@ -568,7 +568,7 @@  discard block
 block discarded – undo
568 568
 	 * Returns an array containing the names of the selected mailboxes
569 569
 	 *
570 570
 	 * @param   string  $reference          base mailbox to start the search (default is current mailbox)
571
-	 * @param   string  $restriction_search false or 0 means return all mailboxes
571
+	 * @param   integer  $restriction_search false or 0 means return all mailboxes
572 572
 	 *                                      true or 1 return only the mailbox that contains that exact name
573 573
 	 *                                      2 return all mailboxes in that hierarchy level
574 574
 	 * @param   string  $returnAttributes   true means return an assoc array containing mailbox names and mailbox attributes
@@ -652,7 +652,7 @@  discard block
 block discarded – undo
652 652
 	 * Returns an array containing the names of the subscribed selected mailboxes
653 653
 	 *
654 654
 	 * @param   string  $reference          base mailbox to start the search
655
-	 * @param   string  $restriction_search false or 0 means return all mailboxes
655
+	 * @param   integer  $restriction_search false or 0 means return all mailboxes
656 656
 	 *                                      true or 1 return only the mailbox that contains that exact name
657 657
 	 *                                      2 return all mailboxes in that hierarchy level
658 658
 	 * @param   string  $returnAttributes   true means return an assoc array containing mailbox names and mailbox attributes
@@ -720,7 +720,7 @@  discard block
 block discarded – undo
720 720
 	 * Returns an array containing the names of the selected unsubscribed mailboxes
721 721
 	 *
722 722
 	 * @param   string  $reference          base mailbox to start the search
723
-	 * @param   string  $restriction_search false or 0 means return all mailboxes
723
+	 * @param   integer  $restriction_search false or 0 means return all mailboxes
724 724
 	 *                                      true or 1 return only the mailbox that contains that exact name
725 725
 	 *                                      2 return all mailboxes in that hierarchy level
726 726
 	 *
@@ -898,6 +898,7 @@  discard block
 block discarded – undo
898 898
 	 *
899 899
 	 * @var array $_nameSpace
900 900
 	 * @var string $_folderName
901
+	 * @param string $_folderName
901 902
 	 * @return string the prefix (may be an empty string)
902 903
 	 */
903 904
 	static function getFolderPrefixFromNamespace($_nameSpace, $_folderName)
@@ -916,7 +917,7 @@  discard block
 block discarded – undo
916 917
 	 * @param string $_mailbox
917 918
 	 * @param string $delimiter
918 919
 	 * @param string $prefix
919
-	 * @param string $reclevel = 0, counter to keep track of the current recursionlevel
920
+	 * @param integer $reclevel = 0, counter to keep track of the current recursionlevel
920 921
 	 * @return array of mailboxes
921 922
 	 */
922 923
 	function getMailBoxesRecursive($_mailbox, $delimiter, $prefix, $reclevel=0)
@@ -1355,7 +1356,7 @@  discard block
 block discarded – undo
1355 1356
 	/**
1356 1357
 	 * Get vacation message for given user
1357 1358
 	 *
1358
-	 * @param int|string $_euser nummeric account_id or imap username
1359
+	 * @param string|null $_euser nummeric account_id or imap username
1359 1360
 	 * @param string $_scriptName =null
1360 1361
 	 * @throws Exception on connection error or authentication failure
1361 1362
 	 * @return array
Please login to merge, or discard this patch.
admin/inc/class.admin_export_acl_csv.inc.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 	/**
22 22
 	 * Exports records as defined in $_definition
23 23
 	 *
24
-	 * @param egw_record $_definition
24
+	 * @param importexport_definition $_definition
25 25
 	 */
26 26
 	public function export( $_stream, importexport_definition $_definition)
27 27
 	{
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
 	 * return html for options.
150 150
 	 * this way the plugin has all opportunities for options tab
151 151
 	 *
152
-	 * @return string html
152
+	 * @return boolean html
153 153
 	 */
154 154
 	public function get_options_etpl()
155 155
 	{
Please login to merge, or discard this patch.
api/src/Contacts/Storage.php 1 patch
Doc Comments   +1 added lines, -10 removed lines patch added patch discarded remove patch
@@ -625,7 +625,7 @@  discard block
 block discarded – undo
625 625
 	 * @param array|string $criteria array of key and data cols, OR string to search over all standard search fields
626 626
 	 * @param boolean|string $only_keys =true True returns only keys, False returns all cols. comma seperated list of keys to return
627 627
 	 * @param string $order_by ='' fieldnames + {ASC|DESC} separated by colons ',', can also contain a GROUP BY (if it contains ORDER BY)
628
-	 * @param string|array $extra_cols ='' string or array of strings to be added to the SELECT, eg. "count(*) as num"
628
+	 * @param string $extra_cols ='' string or array of strings to be added to the SELECT, eg. "count(*) as num"
629 629
 	 * @param string $wildcard ='' appended befor and after each criteria
630 630
 	 * @param boolean $empty =false False=empty criteria are ignored in query, True=empty have to be empty in row
631 631
 	 * @param string $op ='AND' defaults to 'AND', can be set to 'OR' too, then criteria's are OR'ed together
@@ -833,13 +833,6 @@  discard block
 block discarded – undo
833 833
 	 * Find contacts that appear to be duplicates
834 834
 	 *
835 835
 	 * @param Array $param
836
-	 * @param string $param[org_view] 'org_name', 'org_name,adr_one_location', 'org_name,org_unit' how to group
837
-	 * @param int $param[owner] addressbook to search
838
-	 * @param string $param[search] search pattern for org_name
839
-	 * @param string $param[searchletter] letter the org_name need to start with
840
-	 * @param int $param[start]
841
-	 * @param int $param[num_rows]
842
-	 * @param string $param[sort] ASC or DESC
843 836
 	 *
844 837
 	 * @return array of arrays
845 838
 	 */
@@ -932,8 +925,6 @@  discard block
 block discarded – undo
932 925
 	 * delete / move all contacts of an addressbook
933 926
 	 *
934 927
 	 * @param array $data
935
-	 * @param int $data['account_id'] owner to change
936
-	 * @param int $data['new_owner']  new owner or 0 for delete
937 928
 	 */
938 929
 	function deleteaccount($data)
939 930
 	{
Please login to merge, or discard this patch.
importexport/inc/class.importexport_definition.inc.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -176,7 +176,6 @@
 block discarded – undo
176 176
 	/**
177 177
 	 * sets options
178 178
 	 *
179
-	 * @param array $options
180 179
 	 */
181 180
 	private function set_options(array $_plugin_options) {
182 181
 		// Check conditions
Please login to merge, or discard this patch.
api/tests/Etemplate/Widget/DateTest.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,6 @@
 block discarded – undo
94 94
 	 * Check some basic validation stuff
95 95
 	 *
96 96
 	 * @param type $content
97
-	 * @param type $validation_errors
98 97
 	 *
99 98
 	 * @dataProvider validationProvider
100 99
 	 */
Please login to merge, or discard this patch.
api/tests/Etemplate/Widget/UrlEmailTest.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,6 @@
 block discarded – undo
80 80
 	 * Check validation with failing strings
81 81
 	 *
82 82
 	 * @param type $content
83
-	 * @param type $validation_errors
84 83
 	 *
85 84
 	 * @dataProvider validationProvider
86 85
 	 */
Please login to merge, or discard this patch.
api/tests/Etemplate/Widget/UrlTest.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,6 @@
 block discarded – undo
64 64
 	 * Check validation with failing strings
65 65
 	 *
66 66
 	 * @param type $content
67
-	 * @param type $validation_errors
68 67
 	 *
69 68
 	 * @dataProvider invalidProvider
70 69
 	 */
Please login to merge, or discard this patch.
collabeditor/src/Bo.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -201,7 +201,7 @@
 block discarded – undo
201 201
 	/**
202 202
 	 * Check if session is valid
203 203
 	 *
204
-	 * @param type $es_id
204
+	 * @param string $es_id
205 205
 	 *
206 206
 	 * @return boolean return true if session is valid otherwise false
207 207
 	 */
Please login to merge, or discard this patch.