Completed
Push — master ( 29cbfd...26776f )
by Michael
27:28 queued 10s
created
class/pear/Net/IMAPProtocol.php 1 patch
Doc Comments   +71 added lines, -7 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
     /**
169 169
      * get the last cmd ID
170 170
      *
171
-     * @return string Returns the last cmdId
171
+     * @return integer Returns the last cmdId
172 172
      *
173 173
      * @access public
174 174
      * @since  1.0
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
      * A carriage return / linefeed (CRLF) sequence will be appended to each
297 297
      * command string before it is sent to the IMAP server.
298 298
      *
299
-     * @param string $commandid The IMAP commandid retrive from the server.
299
+     * @param string $commandId The IMAP commandid retrive from the server.
300 300
      *
301 301
      * @return string The result response.
302 302
      *
@@ -349,6 +349,8 @@  discard block
 block discarded – undo
349 349
      *
350 350
      * @param string The userid to authenticate as.
351 351
      * @param string The password to authenticate with.
352
+     * @param string $uid
353
+     * @param string $pwd
352 354
      *
353 355
      * @return array Returns an array containing the response
354 356
      *
@@ -367,6 +369,9 @@  discard block
 block discarded – undo
367 369
      * @param string The userid to authenticate as.
368 370
      * @param string The password to authenticate with.
369 371
      * @param string The cmdID.
372
+     * @param string $uid
373
+     * @param string $pwd
374
+     * @param string $userMethod
370 375
      *
371 376
      * @return array Returns an array containing the response
372 377
      *
@@ -419,6 +424,10 @@  discard block
 block discarded – undo
419 424
      * @access private
420 425
      * @since  1.0
421 426
      */
427
+
428
+    /**
429
+     * @param string $cmdid
430
+     */
422 431
     function _authDigest_MD5($uid , $pwd , $cmdid)
423 432
     {
424 433
 
@@ -469,6 +478,10 @@  discard block
 block discarded – undo
469 478
      * @access private
470 479
      * @since  1.0
471 480
      */
481
+
482
+    /**
483
+     * @param string $cmdid
484
+     */
472 485
     function _authCRAM_MD5($uid, $pwd, $cmdid)
473 486
     {
474 487
 
@@ -509,6 +522,10 @@  discard block
 block discarded – undo
509 522
      * @access private
510 523
      * @since  1.0
511 524
      */
525
+
526
+    /**
527
+     * @param string $cmdid
528
+     */
512 529
     function _authLOGIN($uid, $pwd, $cmdid)
513 530
     {
514 531
 
@@ -693,6 +710,7 @@  discard block
 block discarded – undo
693 710
      * Send the  CREATE Mailbox Command
694 711
      *
695 712
      * @param string The mailbox to create.
713
+     * @param string $mailbox
696 714
      * @return array Returns an array containing the response
697 715
      *
698 716
      * @access public
@@ -728,6 +746,7 @@  discard block
 block discarded – undo
728 746
      * Send the  DELETE Mailbox Command
729 747
      *
730 748
      * @param string The mailbox name to delete.
749
+     * @param string $mailbox
731 750
      *
732 751
      * @return array Returns an array containing the response
733 752
      *
@@ -745,6 +764,7 @@  discard block
 block discarded – undo
745 764
      * Send the  SUSCRIBE  Mailbox Command
746 765
      *
747 766
      * @param string The mailbox name to suscribe.
767
+     * @param string $mailbox
748 768
      *
749 769
      * @return array Returns an array containing the response
750 770
      *
@@ -761,6 +781,7 @@  discard block
 block discarded – undo
761 781
     /**
762 782
      * Send the  UNSUSCRIBE  Mailbox Command
763 783
      *
784
+     * @param string $mailbox
764 785
      * @return mixed Returns a PEAR_Error with an error message on any
765 786
      *               kind of failure, or true on success.
766 787
      * @access public
@@ -776,6 +797,7 @@  discard block
 block discarded – undo
776 797
     /**
777 798
      * Send the  FETCH Command
778 799
      *
800
+     * @param string $fetchparam
779 801
      * @return mixed Returns a PEAR_Error with an error message on any
780 802
      *               kind of failure, or true on success.
781 803
      * @access public
@@ -845,6 +867,8 @@  discard block
 block discarded – undo
845 867
     /**
846 868
      * Send the  LIST  Command
847 869
      *
870
+     * @param string $mailbox_base
871
+     * @param string $mailbox
848 872
      * @return mixed Returns a PEAR_Error with an error message on any
849 873
      *               kind of failure, or true on success.
850 874
      * @access public
@@ -861,6 +885,8 @@  discard block
 block discarded – undo
861 885
     /**
862 886
      * Send the  LSUB  Command
863 887
      *
888
+     * @param string $mailbox_base
889
+     * @param string $mailbox
864 890
      * @return mixed Returns a PEAR_Error with an error message on any
865 891
      *               kind of failure, or true on success.
866 892
      * @access public
@@ -877,6 +903,8 @@  discard block
 block discarded – undo
877 903
     /**
878 904
      * Send the  APPEND  Command
879 905
      *
906
+     * @param string $mailbox
907
+     * @param string $msg
880 908
      * @return mixed Returns a PEAR_Error with an error message on any
881 909
      *               kind of failure, or true on success.
882 910
      * @access public
@@ -997,6 +1025,7 @@  discard block
 block discarded – undo
997 1025
      *          -FLAGS.SILENT: Remove the flags whith $value but don't return untagged responses
998 1026
      *
999 1027
      * @param  string $value
1028
+     * @param string $dataitem
1000 1029
      * @return mixed  Returns a PEAR_Error with an error message on any
1001 1030
      *                      kind of failure, or true on success.
1002 1031
      * @access public
@@ -1024,6 +1053,7 @@  discard block
 block discarded – undo
1024 1053
     /**
1025 1054
      * Send the COPY command.
1026 1055
      *
1056
+     * @param string $mailbox
1027 1057
      * @return mixed Returns a PEAR_Error with an error message on any
1028 1058
      *               kind of failure, or true on success.
1029 1059
      * @access public
@@ -1197,6 +1227,10 @@  discard block
 block discarded – undo
1197 1227
      * @since  1.0
1198 1228
      */
1199 1229
     // TODO:  implement the quota by number of emails!!
1230
+
1231
+    /**
1232
+     * @param string $mailbox_name
1233
+     */
1200 1234
     function cmdSetQuota($mailbox_name, $storageQuota = null ,$messagesQuota = null )
1201 1235
     {
1202 1236
         //Check if the IMAP server has QUOTA support
@@ -1276,6 +1310,11 @@  discard block
 block discarded – undo
1276 1310
      ***             RFC2086 IMAP4 ACL extension BEGINS HERE
1277 1311
      ********************************************************************/
1278 1312
 
1313
+    /**
1314
+     * @param string $mailbox_name
1315
+     * @param string $user
1316
+     * @param string $acl
1317
+     */
1279 1318
     function cmdSetACL($mailbox_name, $user, $acl)
1280 1319
     {
1281 1320
 
@@ -1292,6 +1331,10 @@  discard block
 block discarded – undo
1292 1331
         return $this->_genericCommand('SETACL', sprintf("%s %s \"%s\"",$mailbox_name,$user_name,$acl) );
1293 1332
     }
1294 1333
 
1334
+    /**
1335
+     * @param string $mailbox_name
1336
+     * @param string $user
1337
+     */
1295 1338
     function cmdDeleteACL($mailbox_name, $user)
1296 1339
     {
1297 1340
         //Check if the IMAP server has ACL support
@@ -1303,6 +1346,9 @@  discard block
 block discarded – undo
1303 1346
         return $this->_genericCommand('DELETEACL', sprintf("%s \"%s\"",$mailbox_name,$user) );
1304 1347
     }
1305 1348
 
1349
+    /**
1350
+     * @param string $mailbox_name
1351
+     */
1306 1352
     function cmdGetACL($mailbox_name)
1307 1353
     {
1308 1354
         //Check if the IMAP server has ACL support
@@ -1319,6 +1365,9 @@  discard block
 block discarded – undo
1319 1365
         return $ret;
1320 1366
     }
1321 1367
 
1368
+    /**
1369
+     * @param string $mailbox_name
1370
+     */
1322 1371
     function cmdListRights($mailbox_name, $user)
1323 1372
     {
1324 1373
         //Check if the IMAP server has ACL support
@@ -1334,6 +1383,9 @@  discard block
 block discarded – undo
1334 1383
         return $ret;
1335 1384
     }
1336 1385
 
1386
+    /**
1387
+     * @param string $mailbox_name
1388
+     */
1337 1389
     function cmdMyRights($mailbox_name)
1338 1390
     {
1339 1391
         //Check if the IMAP server has ACL support
@@ -1446,7 +1498,7 @@  discard block
 block discarded – undo
1446 1498
     /**
1447 1499
      * tell if the server has capability $capability
1448 1500
      *
1449
-     * @return true or false
1501
+     * @return boolean or false
1450 1502
      *
1451 1503
      * @access public
1452 1504
      * @since  1.0
@@ -1465,7 +1517,8 @@  discard block
 block discarded – undo
1465 1517
     /**
1466 1518
      * tell if the server has capability $capability
1467 1519
      *
1468
-     * @return true or false
1520
+     * @param string $capability
1521
+     * @return boolean or false
1469 1522
      *
1470 1523
      * @access public
1471 1524
      * @since  1.0
@@ -1487,7 +1540,7 @@  discard block
 block discarded – undo
1487 1540
     /**
1488 1541
      * tell if the server has Quota support
1489 1542
      *
1490
-     * @return true or false
1543
+     * @return boolean or false
1491 1544
      *
1492 1545
      * @access public
1493 1546
      * @since  1.0
@@ -1500,7 +1553,7 @@  discard block
 block discarded – undo
1500 1553
     /**
1501 1554
      * tell if the server has Quota support
1502 1555
      *
1503
-     * @return true or false
1556
+     * @return boolean or false
1504 1557
      *
1505 1558
      * @access public
1506 1559
      * @since  1.0
@@ -1513,7 +1566,7 @@  discard block
 block discarded – undo
1513 1566
     /**
1514 1567
      * tell if the server has support for the ANNOTATEMORE extension
1515 1568
      *
1516
-     * @return true or false
1569
+     * @return boolean or false
1517 1570
      *
1518 1571
      * @access public
1519 1572
      * @since  1.0
@@ -1527,6 +1580,8 @@  discard block
 block discarded – undo
1527 1580
      * Parses the responses like RFC822.SIZE and INTERNALDATE
1528 1581
      *
1529 1582
      * @param string the IMAP's server response
1583
+     * @param integer $line
1584
+     * @param string $file
1530 1585
      *
1531 1586
      * @return string containing  the parsed response
1532 1587
      * @access private
@@ -2428,6 +2483,11 @@  discard block
 block discarded – undo
2428 2483
         return $space;
2429 2484
     }
2430 2485
 
2486
+    /**
2487
+     * @param string $char
2488
+     * @param integer $line
2489
+     * @param string $file
2490
+     */
2431 2491
     function _parseString( &$str , $char , $line , $file )
2432 2492
     {
2433 2493
         /*
@@ -2442,6 +2502,10 @@  discard block
 block discarded – undo
2442 2502
         return $char_aux;
2443 2503
     }
2444 2504
 
2505
+    /**
2506
+     * @param string $str
2507
+     * @param string $cmdid
2508
+     */
2445 2509
     function _genericImapResponseParser( &$str , $cmdid = null )
2446 2510
     {
2447 2511
 
Please login to merge, or discard this patch.
class/pear/Net/POP3.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -362,6 +362,10 @@  discard block
 block discarded – undo
362 362
      * @access private
363 363
      * @since  1.0
364 364
      */
365
+
366
+    /**
367
+     * @param boolean $userMethod
368
+     */
365 369
     function _cmdAuthenticate($uid , $pwd , $userMethod = null )
366 370
     {
367 371
 
@@ -958,6 +962,10 @@  discard block
 block discarded – undo
958 962
      * @param  $num_lines Number of lines to retrieve
959 963
      * @return mixed Message data or false on error
960 964
      */
965
+
966
+    /**
967
+     * @param integer $num_lines
968
+     */
961 969
     function _cmdTop($msg_id, $num_lines)
962 970
     {
963 971
         if ($this->_state == NET_POP3_STATE_TRANSACTION) {
@@ -1011,6 +1019,10 @@  discard block
 block discarded – undo
1011 1019
      * @param  $cmd  Command to send (\r\n will be appended)
1012 1020
      * @return mixed First line of response if successful, otherwise false
1013 1021
      */
1022
+
1023
+    /**
1024
+     * @param string $cmd
1025
+     */
1014 1026
     function _sendCmd($cmd)
1015 1027
     {
1016 1028
         $result = $this->_send($cmd);
Please login to merge, or discard this patch.
class/pear/Net/Socket.php 1 patch
Doc Comments   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
      * if there is no data available, whereas it will block until there
157 157
      * is data for blocking sockets.
158 158
      *
159
-     * @param $mode bool true for blocking sockets, false for nonblocking
159
+     * @param boolean $mode bool true for blocking sockets, false for nonblocking
160 160
      * @access public
161 161
      * @return mixed true on success or an error object otherwise
162 162
      */
@@ -222,6 +222,7 @@  discard block
 block discarded – undo
222 222
      * Get a specified line of data
223 223
      *
224 224
      * @access public
225
+     * @param integer $size
225 226
      * @return $size bytes of data from the socket, or a PEAR_Error if
226 227
      *               not connected.
227 228
      */
@@ -241,7 +242,7 @@  discard block
 block discarded – undo
241 242
      * chunk; if you know the size of the data you're getting
242 243
      * beforehand, this is definitely the way to go.
243 244
      *
244
-     * @param $size The number of bytes to read from the socket.
245
+     * @param integer $size The number of bytes to read from the socket.
245 246
      * @access public
246 247
      * @return $size bytes of data from the socket, or a PEAR_Error if
247 248
      *               not connected.
@@ -260,6 +261,7 @@  discard block
 block discarded – undo
260 261
      * Write a specified amount of data.
261 262
      *
262 263
      * @access public
264
+     * @param string $data
263 265
      * @return mixed true on success or an error object otherwise
264 266
      */
265 267
     function write($data) {
Please login to merge, or discard this patch.
class/report.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
     /**
64 64
      * Generate graph to go along with report
65 65
      *
66
-     * @return mixed bool false on no graph / draw graph
66
+     * @return false|null bool false on no graph / draw graph
67 67
      * @access	public
68 68
      */
69 69
     function generateGraph()
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     /**
77 77
      * Set SQL query to be run, and set results for class
78 78
      *
79
-     * @return bool true on success / false on failure
79
+     * @return boolean|null true on success / false on failure
80 80
      * @access	public
81 81
      */
82 82
     function _setResults()
Please login to merge, or discard this patch.
class/reportParameter.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
     /**
33 33
      * Create a new xhelpReportParameter
34 34
      *
35
-     * @return object {@link xhelpReportParameter}
35
+     * @return xhelpReportParameter {@link xhelpReportParameter}
36 36
      * @access	public
37 37
      */
38 38
     function &create()
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
      * @param string $dbfield
55 55
      * @param string $dbaction
56 56
      *
57
-     * @return object {@link xhelpReportParameter}
57
+     * @return xhelpReportParameter {@link xhelpReportParameter}
58 58
      * @access	public
59 59
      */
60 60
     function addParam($controltype, $name, $fieldname, $value, $values, $fieldlength, $dbfield, $dbaction)
Please login to merge, or discard this patch.
class/reportRendererFactory.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -11,6 +11,9 @@
 block discarded – undo
11 11
         // Constructor
12 12
     }
13 13
 
14
+    /**
15
+     * @param string $type
16
+     */
14 17
     function &getRenderer($type, &$report)
15 18
     {
16 19
         $ret = false;
Please login to merge, or discard this patch.
class/staff.php 1 patch
Doc Comments   +4 added lines, -6 removed lines patch added patch discarded remove patch
@@ -51,9 +51,9 @@  discard block
 block discarded – undo
51 51
      * Used to make sure that the user has rights to do an action
52 52
      *
53 53
      * @param int   $task
54
-     * @param mixed $depts integer/array of department id(s)
54
+     * @param integer $depts integer/array of department id(s)
55 55
      *
56
-     * @return TRUE if success, FALSE if failure
56
+     * @return boolean if success, FALSE if failure
57 57
      *
58 58
      * @access public
59 59
      */
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
      * @param int $roleid role id
197 197
      * @param int $deptid department id
198 198
      *
199
-     * @return TRUE if success, FALSE if failure
199
+     * @return boolean if success, FALSE if failure
200 200
      * @access public
201 201
      */
202 202
     function addStaffRole($uid, $roleid, $deptid)
@@ -272,8 +272,6 @@  discard block
 block discarded – undo
272 272
      * Remove user from a role
273 273
      *
274 274
      * @param int $uid    user id
275
-     * @param int $roleid role id
276
-     * @param int $deptid department id
277 275
      *
278 276
      * @return TRUE if success, FALSE if failure
279 277
      * @access public
@@ -292,7 +290,7 @@  discard block
 block discarded – undo
292 290
      * @param int $uid    user id
293 291
      * @param int $roleid role id
294 292
      *
295
-     * @return TRUE on success, FALSE on failure
293
+     * @return boolean on success, FALSE on failure
296 294
      * @access public
297 295
      */
298 296
     function staffInRole($uid, $roleid)
Please login to merge, or discard this patch.
class/staffService.php 1 patch
Doc Comments   +5 added lines, -8 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
      * Update staff response time if first staff response
38 38
      * @param  xhelpTicket    $ticket   Ticket for response
39 39
      * @param  xhelpResponses $response Response
40
-     * @return bool           True on success, false on error
40
+     * @return boolean|null           True on success, false on error
41 41
      * @access public
42 42
      */
43 43
     function new_response($ticket, $response)
@@ -58,11 +58,9 @@  discard block
 block discarded – undo
58 58
 
59 59
     /**
60 60
      * Update staff response time if first staff response
61
-     * @param  xhelpTicket    $ticket    Ticket for response
61
+     * @param  xhelpTicket    $tickets    Ticket for response
62 62
      * @param  xhelpResponses $response  Response
63
-     * @param  int            $timespent Number of minutes spent on ticket
64
-     * @param  bool           $private   Is the response private?
65
-     * @return bool           True on success, false on error
63
+     * @return boolean|null           True on success, false on error
66 64
      * @access public
67 65
      */
68 66
     function batch_response($tickets, $response)
@@ -88,7 +86,7 @@  discard block
 block discarded – undo
88 86
      * Handler for the 'batch_status' event
89 87
      * @param  array $tickets   Array of xhelpTicket objects
90 88
      * @param  int   $newstatus New Status of all tickets
91
-     * @return bool  True on success, false on error
89
+     * @return boolean|null  True on success, false on error
92 90
      * @access public
93 91
      */
94 92
     function batch_status($tickets, $newstatus)
@@ -123,7 +121,6 @@  discard block
 block discarded – undo
123 121
 
124 122
     /**
125 123
      * Callback function for the 'reopen_ticket' event
126
-     * @param  array $args Array of arguments passed to EventService
127 124
      * @return bool  True on success, false on error
128 125
      * @access public
129 126
      */
@@ -158,7 +155,7 @@  discard block
 block discarded – undo
158 155
     /**
159 156
      * Event Handler for 'view_ticket'
160 157
      * @param  xhelpTicket $ticket Ticket being viewd
161
-     * @return bool        True on success, false on error
158
+     * @return boolean|null        True on success, false on error
162 159
      * @access public
163 160
      */
164 161
     function view_ticket($ticket)
Please login to merge, or discard this patch.
class/ticketEmails.php 1 patch
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -107,7 +107,6 @@  discard block
 block discarded – undo
107 107
      * retrieve objects from the database
108 108
      *
109 109
      * @param  object $criteria  {@link CriteriaElement} conditions to be met
110
-     * @param  bool   $id_as_key Should the department ID be used as array key
111 110
      * @return array  array of {@link xhelpDepartment} objects
112 111
      * @access	public
113 112
      */
@@ -141,7 +140,6 @@  discard block
 block discarded – undo
141 140
      * retrieve objects from the database
142 141
      *
143 142
      * @param  object $criteria  {@link CriteriaElement} conditions to be met
144
-     * @param  bool   $id_as_key Should the department ID be used as array key
145 143
      * @return array  array of {@link xhelpDepartment} objects
146 144
      * @access	public
147 145
      */
Please login to merge, or discard this patch.