From b9cf7cb0c1bb56fbda1ce4ecf81ef8b04720eeec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Bl=C3=A4ul?= Date: Fri, 3 Nov 2017 20:25:56 +0100 Subject: [PATCH] Improved PHPDoc blocks Added missing parameters, wrapped at 80 characters, added types. --- parsecsv.lib.php | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/parsecsv.lib.php b/parsecsv.lib.php index 7da821e..64a74b3 100644 --- a/parsecsv.lib.php +++ b/parsecsv.lib.php @@ -806,12 +806,13 @@ class parseCSV { * Create CSV data from array * * @access public - * @param data 2D array with data - * @param fields field names - * @param append if true, field names will not be output - * @param is_php if a php die() call should be put on the first - * line of the file, this is later ignored when read. - * @param delimiter field delimiter to use + * @param array[] $data 2D array with data + * @param array $fields field names + * @param bool $append if true, field names will not be output + * @param bool $is_php if a php die() call should be put on the + * first line of the file, this is later + * ignored when read. + * @param string|null $delimiter field delimiter to use * * @return CSV data (text string) */ @@ -1035,7 +1036,8 @@ class parseCSV { * - only used by unparse() * * @access protected - * @param value string to process + * @param string $value Cell value to process + * @param string|null $delimiter * * @return Processed value */