@@ -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) |
@@ -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')) { |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | * @param array|ActiveQueryInterface $input |
40 | 40 | * @param array $keys Defines which keys should be packed into the generated xlsx. The defined keys does not change the sort behavior of the generated xls. |
41 | 41 | * @param bool $header |
42 | - * @return mixed |
|
42 | + * @return string |
|
43 | 43 | * @throws Exception |
44 | 44 | * @since 1.0.4 |
45 | 45 | */ |
@@ -132,7 +132,7 @@ discard block |
||
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 | */ |
@@ -417,7 +417,7 @@ |
||
417 | 417 | * |
418 | 418 | * @see \ArrayAccess::offsetGet() |
419 | 419 | * @param string $offset The key to get from the array. |
420 | - * @return mixed The value for the offset key from the array. |
|
420 | + * @return string|boolean The value for the offset key from the array. |
|
421 | 421 | */ |
422 | 422 | public function offsetGet($offset) |
423 | 423 | { |
@@ -92,7 +92,7 @@ |
||
92 | 92 | * Get a value for a given resolved pattern key. |
93 | 93 | * |
94 | 94 | * @param string $key |
95 | - * @return boolean|mixed |
|
95 | + * @return string |
|
96 | 96 | */ |
97 | 97 | public function getResolvedKeyValue($key) |
98 | 98 | { |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | /** |
36 | 36 | * Create all required directories an check whether they are writeable or not. |
37 | 37 | * |
38 | - * @return string The action output. |
|
38 | + * @return integer The action output. |
|
39 | 39 | */ |
40 | 40 | public function actionIndex() |
41 | 41 | { |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | /** |
87 | 87 | * Test Mail-Component (Use --verbose=1 to enable smtp debug output) |
88 | 88 | * |
89 | - * @return boolean Whether successfull or not. |
|
89 | + * @return integer|null Whether successfull or not. |
|
90 | 90 | * @throws \Exception On smtp failure |
91 | 91 | */ |
92 | 92 | public function actionMailer() |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | * @param string $search Search string to look for. |
112 | 112 | * @param string $replace Replacement value for the first found occurrence. |
113 | 113 | * @param string $subject The string you want to look up to replace the first element. |
114 | - * @return mixed Replaced string |
|
114 | + * @return string Replaced string |
|
115 | 115 | */ |
116 | 116 | public static function replaceFirst($search, $replace, $subject) |
117 | 117 | { |
@@ -164,7 +164,7 @@ discard block |
||
164 | 164 | * @param string $content The content to minify. |
165 | 165 | * @param array $options Optional arguments to provide for minification: |
166 | 166 | * - comments: boolean, where html comments should be removed or not. defaults to false |
167 | - * @return mixed Returns the minified content. |
|
167 | + * @return string Returns the minified content. |
|
168 | 168 | * @since 1.0.7 |
169 | 169 | */ |
170 | 170 | public static function minify($content, array $options = []) |
@@ -53,7 +53,7 @@ |
||
53 | 53 | * ``` |
54 | 54 | * |
55 | 55 | * @param array $data The input data to cover given sensitive key values. `['username' => 'foo', 'password' => 'bar']`. |
56 | - * @param array $key The keys which can contain sensitive data inside the $data array. `['password', 'pwd', 'pass']` if no keys provided the {{luya\helpers\ArrayHelper::$sensitiveDefaultKeys}} is used. |
|
56 | + * @param array $keys The keys which can contain sensitive data inside the $data array. `['password', 'pwd', 'pass']` if no keys provided the {{luya\helpers\ArrayHelper::$sensitiveDefaultKeys}} is used. |
|
57 | 57 | * @since 1.0.6 |
58 | 58 | */ |
59 | 59 | public static function coverSensitiveValues(array $data, array $keys = []) |