@@ -27,7 +27,7 @@ |
||
27 | 27 | public function getAddress(); |
28 | 28 | |
29 | 29 | /** |
30 | - * @param PostalAddress|string $address |
|
30 | + * @param PostalAddress $address |
|
31 | 31 | * @return PlaceTrait |
32 | 32 | */ |
33 | 33 | public function setAddress(PostalAddress $address); |
@@ -51,7 +51,7 @@ |
||
51 | 51 | /** |
52 | 52 | * Physical address of the item. |
53 | 53 | * |
54 | - * @param PostalAddress|string $address |
|
54 | + * @param PostalAddress $address |
|
55 | 55 | * @return PlaceTrait |
56 | 56 | */ |
57 | 57 | public function setAddress(PostalAddress $address) |
@@ -20,7 +20,6 @@ |
||
20 | 20 | /** |
21 | 21 | * Provide date data. |
22 | 22 | * |
23 | - * @param string|integer $date |
|
24 | 23 | */ |
25 | 24 | public function __construct($text) |
26 | 25 | { |
@@ -693,7 +693,7 @@ discard block |
||
693 | 693 | /** |
694 | 694 | * The purpose of a work in the context of education; for example, 'assignment', 'group work'. |
695 | 695 | * |
696 | - * @param string $educationalUse |
|
696 | + * @param CreativeWork $educationalUse |
|
697 | 697 | * @return CreativeWork|CreativeWorkTrait |
698 | 698 | */ |
699 | 699 | public function setEducationalUse(CreativeWork $educationalUse) |
@@ -1229,7 +1229,7 @@ discard block |
||
1229 | 1229 | * While such policies are most typically expressed in natural language, sometimes related information |
1230 | 1230 | * (e.g. indicating a funder) can be expressed using schema.org terminology. |
1231 | 1231 | * |
1232 | - * @param CreativeWork|URL $publishingPrinciples |
|
1232 | + * @param CreativeWork $publishingPrinciples |
|
1233 | 1233 | * @return CreativeWork|CreativeWorkTrait |
1234 | 1234 | */ |
1235 | 1235 | public function setPublishingPrinciples(CreativeWork $publishingPrinciples) |
@@ -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')) { |