Completed
Push — master ( 26776f...d9604e )
by Michael
11:31
created
class/mailboxPOP3.php 1 patch
Doc Comments   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
     /**
86 86
      * Get Message Body
87 87
      * @param  $msg_id Message number
88
-     * @return mixed Either message body or false on error
88
+     * @return string|false Either message body or false on error
89 89
      */
90 90
     function getBody($i)
91 91
     {
@@ -96,7 +96,8 @@  discard block
 block discarded – undo
96 96
      * Returns the entire message with given message number.
97 97
      *
98 98
      * @param  $msg_id Message number
99
-     * @return mixed Either entire message or false on error
99
+     * @param integer $i
100
+     * @return string|false Either entire message or false on error
100 101
      */
101 102
     function getMsg($i)
102 103
     {
@@ -108,6 +109,7 @@  discard block
 block discarded – undo
108 109
      * disconnect() method is called.
109 110
      *
110 111
      * @param  $msg_id Message to delete
112
+     * @param integer $i
111 113
      * @return bool Success/Failure
112 114
      */
113 115
     function deleteMessage($i)
Please login to merge, or discard this patch.
class/membership.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
      *
216 216
      * @param  mixed $staff  single or array of uids or {@link xhelpStaff} objects
217 217
      * @param  int   $deptid Department ID
218
-     * @return bool  True if successful, False if not
218
+     * @return boolean|null  True if successful, False if not
219 219
      * @access public
220 220
      */
221 221
     function addStaffToDept(&$staff, $deptid)
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
      *
264 264
      * @param  mixed $staff  single or array of uids or {@link xhelpStaff} objects
265 265
      * @param  int   $deptid Department ID
266
-     * @return bool  True if successful, False if not
266
+     * @return boolean|null  True if successful, False if not
267 267
      * @access public
268 268
      */
269 269
     function  removeStaffFromDept(&$staff, $deptid)
@@ -287,7 +287,7 @@  discard block
 block discarded – undo
287 287
      *
288 288
      * @param  mixed $dept single or array of department id's or {@link xhelpDepartment} objects
289 289
      * @param  int   $uid  User ID
290
-     * @return bool  True if successful, False if not
290
+     * @return boolean|null  True if successful, False if not
291 291
      * @access public
292 292
      */
293 293
     function removeDeptFromStaff(&$dept, $uid)
Please login to merge, or discard this patch.
class/msgParser.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -154,6 +154,9 @@  discard block
 block discarded – undo
154 154
         return implode("\r\n",$msg);
155 155
     }
156 156
 
157
+    /**
158
+     * @param string $msg
159
+     */
157 160
     function _stripMd5Key($msg)
158 161
     {
159 162
         $pattern = '/^\*{4}\s'. _XHELP_TICKET_MD5SIGNATURE . '\s(.)*\*{4}/im';
@@ -262,6 +265,9 @@  discard block
 block discarded – undo
262 265
         return $this->_name;
263 266
     }
264 267
 
268
+    /**
269
+     * @param string $header
270
+     */
265 271
     function getHeader($header)
266 272
     {
267 273
         if (isset($this->_headers[$header])) {
Please login to merge, or discard this patch.
class/msgStore.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -17,6 +17,9 @@  discard block
 block discarded – undo
17 17
         $this->_errors     = array();
18 18
     }
19 19
 
20
+    /**
21
+     * @param string $desc
22
+     */
20 23
     function _setError($desc)
21 24
     {
22 25
         if(is_array($desc)){
@@ -178,6 +181,9 @@  discard block
 block discarded – undo
178 181
         }
179 182
     }
180 183
 
184
+    /**
185
+     * @param string $fname
186
+     */
181 187
     function _addAttachmentError($errors, $msg, $fname)
182 188
     {
183 189
         if($errors <> 0){
Please login to merge, or discard this patch.
class/notificationService.php 1 patch
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -239,7 +239,6 @@  discard block
 block discarded – undo
239 239
     /**
240 240
      * Returns emails of staff belonging to an event
241 241
      *
242
-     * @param int $dept        ID of department
243 242
      * @param int $event_id    bit_value of event
244 243
      * @param int $submittedBy ID of user submitting event - should only be used when there is a response
245 244
      *
@@ -649,7 +648,7 @@  discard block
 block discarded – undo
649 648
     /**
650 649
      * Confirm submission to user and notify staff members when new_ticket is triggered
651 650
      * @param  xhelpTicket $ticket Ticket that was added
652
-     * @return bool        True on success, false on error
651
+     * @return boolean|null        True on success, false on error
653 652
      * @access	public
654 653
      */
655 654
     function new_ticket(&$ticket)
@@ -1211,7 +1210,7 @@  discard block
 block discarded – undo
1211 1210
      * Event: edit_response
1212 1211
      * Triggered after a response has been modified
1213 1212
      * Also See: new_response
1214
-     * @param xhelpTicket    $nticket     Ticket after modifications
1213
+     * @param xhelpTicket    $ticket     Ticket after modifications
1215 1214
      * @param xhelpResponses $response    Modified response
1216 1215
      * @param xhelpTicket    $oldticket   Ticket before modifications
1217 1216
      * @param xhelpResponses $oldresponse Response modifications
Please login to merge, or discard this patch.
class/pear/Mail/mime.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -277,6 +277,10 @@  discard block
 block discarded – undo
277 277
      * @return object  The text mimePart object
278 278
      * @access private
279 279
      */
280
+
281
+    /**
282
+     * @param string $text
283
+     */
280 284
     function &_addTextPart(&$obj, $text){
281 285
 
282 286
         $params['content_type'] = 'text/plain';
@@ -335,6 +339,10 @@  discard block
 block discarded – undo
335 339
      * @return object  The multipart/mixed mimePart object
336 340
      * @access private
337 341
      */
342
+
343
+    /**
344
+     * @param null|Mail_mimePart $obj
345
+     */
338 346
     function &_addAlternativePart(&$obj){
339 347
 
340 348
         $params['content_type'] = 'multipart/alternative';
Please login to merge, or discard this patch.
class/pear/Mail/mimeDecode.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -196,6 +196,8 @@  discard block
 block discarded – undo
196 196
      *
197 197
      * @param string Header section
198 198
      * @param string Body section
199
+     * @param string $headers
200
+     * @param string $body
199 201
      * @return object Results of decoding process
200 202
      * @access private
201 203
      */
@@ -477,6 +479,7 @@  discard block
 block discarded – undo
477 479
      * examples (in RFC2047).
478 480
      *
479 481
      * @param string Input header value to decode
482
+     * @param string $input
480 483
      * @return string Decoded header value
481 484
      * @access private
482 485
      */
@@ -762,6 +765,7 @@  discard block
 block discarded – undo
762 765
      * @param  string  Name of header
763 766
      * @param  string  Value of header
764 767
      * @param  integer Number of tabs to indent
768
+     * @param integer $indent
765 769
      * @return string XML version of input
766 770
      * @access private
767 771
      */
Please login to merge, or discard this patch.
class/pear/Mail/mimePart.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
      * Encodes and returns the email. Also stores
209 209
      * it in the encoded member variable
210 210
      *
211
-     * @return An associative array containing two elements,
211
+     * @return string associative array containing two elements,
212 212
      *            body and headers. The headers element is itself
213 213
      *            an indexed array.
214 214
      * @access public
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
      * @param $body   The body of the subpart, if any.
256 256
      * @param $params The parameters for the subpart, same
257 257
      *                as the $params argument for constructor.
258
-     * @return A reference to the part you just added. It is
258
+     * @return Mail_mimePart reference to the part you just added. It is
259 259
      *           crucial if using multipart/* in your subparts that
260 260
      *           you use =& in your script when calling this function,
261 261
      *           otherwise you will not be able to add further subparts.
@@ -273,8 +273,8 @@  discard block
 block discarded – undo
273 273
      *
274 274
      * Returns encoded data based upon encoding passed to it
275 275
      *
276
-     * @param $data     The data to encode.
277
-     * @param $encoding The encoding type to use, 7bit, base64,
276
+     * @param string $data     The data to encode.
277
+     * @param string $encoding The encoding type to use, 7bit, base64,
278 278
      *                  or quoted-printable.
279 279
      * @access private
280 280
      */
Please login to merge, or discard this patch.
class/pear/Net/IMAP.php 1 patch
Doc Comments   +9 added lines, -8 removed lines patch added patch discarded remove patch
@@ -175,6 +175,10 @@  discard block
 block discarded – undo
175 175
      *
176 176
      * @return bool Success/Pear_Error Failure
177 177
      */
178
+
179
+    /**
180
+     * @param string $mailbox
181
+     */
178 182
     function selectMailbox($mailbox)
179 183
     {
180 184
         $ret=$this->cmdSelect($mailbox);
@@ -595,8 +599,6 @@  discard block
 block discarded – undo
595 599
      * Copies mail from one folder to another
596 600
      *
597 601
      * @param string $dest_mailbox   mailbox name to copy sessages to
598
-     * @param mixed  $message_set    the messages that I want to copy (all by default) it also
599
-     *                               can be an array
600 602
      * @param string $source_mailbox mailbox name from where the messages are copied
601 603
      *
602 604
      * @return mixed true on Success/PearError on Failure
@@ -694,9 +696,7 @@  discard block
 block discarded – undo
694 696
     /**
695 697
      * Returns an array containing the names of the selected mailboxes
696 698
      *
697
-     * @param string $mailbox_base       base mailbox to start the search
698
-     *                                   $mailbox_base     if $mailbox_base == ''     then $mailbox_base is the curent selected mailbox
699
-     * @param string $restriction_search false or 0 means return all mailboxes  true or 1 return only the mailbox that contains that exact name
699
+     * @param integer $restriction_search false or 0 means return all mailboxes  true or 1 return only the mailbox that contains that exact name
700 700
      2  return all mailboxes in that hierarchy level
701 701
      * @param string $returnAttributes true means return an assoc array containing mailbox names and mailbox attributes
702 702
      false - the default - means return an array of mailboxes
@@ -825,7 +825,7 @@  discard block
 block discarded – undo
825 825
     /**
826 826
      * Renames the mailbox $mailbox
827 827
      *
828
-     * @param string $mailbox mailbox name to rename
828
+     * @param string $oldmailbox mailbox name to rename
829 829
      *
830 830
      * @return mixed true on Success/PearError on Failure
831 831
      * @since 1.0
@@ -891,8 +891,6 @@  discard block
 block discarded – undo
891 891
     /**
892 892
      * Lists the subscription to mailboxes
893 893
      *
894
-     * @param string $mailbox_base mailbox name start the search (see to getMailboxes() )
895
-     * @param string $mailbox_name mailbox name filter the search (see to getMailboxes() )
896 894
      *
897 895
      * @return mixed true on Success/PearError on Failure
898 896
      * @since 1.0
@@ -1064,6 +1062,9 @@  discard block
 block discarded – undo
1064 1062
         return $this->hasFlag( $message_nro, "\\Deleted" );
1065 1063
     }
1066 1064
 
1065
+    /**
1066
+     * @param string $flag
1067
+     */
1067 1068
     function hasFlag($message_nro,$flag)
1068 1069
     {
1069 1070
         if ( PEAR::isError( $resp = $this->getFlags( $message_nro ) ) ) {
Please login to merge, or discard this patch.