@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | * @param boolean $isFile (optional) |
105 | 105 | * if this is true, the method will attempt to read from a file, `$data` |
106 | 106 | * instead. |
107 | - * @param mixed $xsltProcessor (optional) |
|
107 | + * @param XsltProcess $xsltProcessor (optional) |
|
108 | 108 | * if set, the validation will be done using this XSLT processor rather |
109 | 109 | * than the built in XML parser. the default is null. |
110 | 110 | * @param string $encoding (optional) |
@@ -682,6 +682,10 @@ discard block |
||
682 | 682 | public static function getPostData() |
683 | 683 | { |
684 | 684 | if (!function_exists('merge_file_post_data')) { |
685 | + |
|
686 | + /** |
|
687 | + * @param string $type |
|
688 | + */ |
|
685 | 689 | function merge_file_post_data($type, array $file, &$post) |
686 | 690 | { |
687 | 691 | foreach ($file as $key => $value) { |
@@ -900,7 +904,7 @@ discard block |
||
900 | 904 | * the path of the file to write. |
901 | 905 | * @param mixed $data |
902 | 906 | * the data to write to the file. |
903 | - * @param integer|null $perm (optional) |
|
907 | + * @param integer $perm (optional) |
|
904 | 908 | * the permissions as an octal number to set set on the resulting file. |
905 | 909 | * this defaults to 0644 (if omitted or set to null) |
906 | 910 | * @param string $mode (optional) |
@@ -1100,7 +1104,7 @@ discard block |
||
1100 | 1104 | * @param mixed $strip_root (optional) |
1101 | 1105 | * If null, the full path to the file will be returned, otherwise the value |
1102 | 1106 | * of `strip_root` will be removed from the file path. |
1103 | - * @param array $exclude (optional) |
|
1107 | + * @param string[] $exclude (optional) |
|
1104 | 1108 | * ignore directories listed in this array. this defaults to an empty array. |
1105 | 1109 | * @param boolean $ignore_hidden (optional) |
1106 | 1110 | * ignore hidden directory (i.e.directories that begin with a period). this defaults |
@@ -1152,7 +1156,7 @@ discard block |
||
1152 | 1156 | * @param string $dir (optional) |
1153 | 1157 | * the path of the directory to construct the multi-dimensional array |
1154 | 1158 | * for. this defaults to '.'. |
1155 | - * @param array|string $filters (optional) |
|
1159 | + * @param string $filters (optional) |
|
1156 | 1160 | * either a regular expression to filter the files by or an array of |
1157 | 1161 | * files to include. |
1158 | 1162 | * @param boolean $recurse (optional) |
@@ -1345,6 +1349,7 @@ discard block |
||
1345 | 1349 | * the full path name of the source file to move. |
1346 | 1350 | * @param integer $perm (optional) |
1347 | 1351 | * the permissions to apply to the moved file. this defaults to 0777. |
1352 | + * @param string $dest_name |
|
1348 | 1353 | * @return boolean |
1349 | 1354 | * true if the file was moved and its permissions set as required. false otherwise. |
1350 | 1355 | */ |
@@ -126,12 +126,10 @@ |
||
126 | 126 | * The from string. Should have the following format: [email protected] |
127 | 127 | * @param string $to |
128 | 128 | * The email address to send the email to. |
129 | - * @param string $subject |
|
130 | - * The subject to send the email to. |
|
131 | 129 | * @param string $message |
132 | 130 | * @throws SMTPException |
133 | 131 | * @throws Exception |
134 | - * @return boolean |
|
132 | + * @return boolean|null |
|
135 | 133 | */ |
136 | 134 | public function sendMail($from, $to, $message) |
137 | 135 | { |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | * @param XMLElement $result |
66 | 66 | * @param array $fields |
67 | 67 | * @param array $errors |
68 | - * @param object $post_values |
|
68 | + * @param XMLElement $post_values |
|
69 | 69 | * @throws Exception |
70 | 70 | * @return XMLElement |
71 | 71 | */ |
@@ -192,7 +192,6 @@ discard block |
||
192 | 192 | * Helper method to determine if a field is missing, or if the data |
193 | 193 | * provided was invalid. Used in conjunction with `array_reduce`. |
194 | 194 | * |
195 | - * @param array $a, |
|
196 | 195 | * @param array $b |
197 | 196 | * @return string |
198 | 197 | * 'missing' or 'invalid' |
@@ -303,7 +302,7 @@ discard block |
||
303 | 302 | * If this Event is editing an existing entry, that Entry ID will |
304 | 303 | * be passed to this function. |
305 | 304 | * @throws Exception |
306 | - * @return XMLElement |
|
305 | + * @return boolean |
|
307 | 306 | * The result of the Event |
308 | 307 | */ |
309 | 308 | public function __doit(array $fields = array(), XMLElement &$result, $position = null, $entry_id = null) |