@@ -132,7 +132,7 @@ |
||
132 | 132 | |
133 | 133 | /** |
134 | 134 | * @param array $input |
135 | - * @param $delimiter |
|
135 | + * @param string $delimiter |
|
136 | 136 | * @return null|string |
137 | 137 | * @since 1.0.4 |
138 | 138 | */ |
@@ -109,6 +109,9 @@ discard block |
||
109 | 109 | return $string; |
110 | 110 | } |
111 | 111 | |
112 | + /** |
|
113 | + * @param string $filename |
|
114 | + */ |
|
112 | 115 | public function writeToFile($filename) |
113 | 116 | { |
114 | 117 | foreach ($this->sheets as $sheet_name => $sheet) { |
@@ -237,6 +240,9 @@ discard block |
||
237 | 240 | $sheet->file_writer->write('<sheetData>'); |
238 | 241 | } |
239 | 242 | |
243 | + /** |
|
244 | + * @param null|string $cell_style_string |
|
245 | + */ |
|
240 | 246 | private function addCellStyle($number_format, $cell_style_string) |
241 | 247 | { |
242 | 248 | $number_format_idx = self::add_to_list_get_index($this->number_formats, $number_format); |
@@ -261,6 +267,9 @@ discard block |
||
261 | 267 | return $column_types; |
262 | 268 | } |
263 | 269 | |
270 | + /** |
|
271 | + * @param string $sheet_name |
|
272 | + */ |
|
264 | 273 | public function writeSheetHeader($sheet_name, array $header_types, $col_options = null) |
265 | 274 | { |
266 | 275 | if (empty($sheet_name) || empty($header_types) || !empty($this->sheets[$sheet_name])) { |
@@ -296,6 +305,9 @@ discard block |
||
296 | 305 | $this->current_sheet = $sheet_name; |
297 | 306 | } |
298 | 307 | |
308 | + /** |
|
309 | + * @param string $sheet_name |
|
310 | + */ |
|
299 | 311 | public function writeSheetRow($sheet_name, array $row, $row_options = null) |
300 | 312 | { |
301 | 313 | if (empty($sheet_name)) { |
@@ -409,6 +421,10 @@ discard block |
||
409 | 421 | $this->finalizeSheet($sheet_name); |
410 | 422 | } |
411 | 423 | |
424 | + /** |
|
425 | + * @param integer $row_number |
|
426 | + * @param integer $column_number |
|
427 | + */ |
|
412 | 428 | protected function writeCell( |
413 | 429 | XLSXWriter_BuffererWriter &$file, |
414 | 430 | $row_number, |
@@ -863,6 +879,10 @@ discard block |
||
863 | 879 | } |
864 | 880 | |
865 | 881 | //------------------------------------------------------------------ |
882 | + |
|
883 | + /** |
|
884 | + * @param string $num_format |
|
885 | + */ |
|
866 | 886 | private static function determineNumberFormatType($num_format) |
867 | 887 | { |
868 | 888 | $num_format = preg_replace("/\[(Black|Blue|Cyan|Green|Magenta|Red|White|Yellow)\]/i", "", $num_format); |
@@ -1053,6 +1073,9 @@ discard block |
||
1053 | 1073 | protected $buffer = ''; |
1054 | 1074 | protected $check_utf8 = false; |
1055 | 1075 | |
1076 | + /** |
|
1077 | + * @param string $filename |
|
1078 | + */ |
|
1056 | 1079 | public function __construct($filename, $fd_fopen_flags = 'w', $check_utf8 = false) |
1057 | 1080 | { |
1058 | 1081 | $this->check_utf8 = $check_utf8; |
@@ -1114,6 +1137,9 @@ discard block |
||
1114 | 1137 | return -1; |
1115 | 1138 | } |
1116 | 1139 | |
1140 | + /** |
|
1141 | + * @param string $string |
|
1142 | + */ |
|
1117 | 1143 | protected static function isValidUTF8($string) |
1118 | 1144 | { |
1119 | 1145 | if (function_exists('mb_check_encoding')) { |