@@ -17,6 +17,7 @@ |
||
| 17 | 17 | /** |
| 18 | 18 | * Humanize the class name |
| 19 | 19 | * |
| 20 | + * @param string $name |
|
| 20 | 21 | * @return string The humanized name. |
| 21 | 22 | */ |
| 22 | 23 | public function humanizeName($name) |
@@ -187,7 +187,7 @@ |
||
| 187 | 187 | * Remove the base url from a route |
| 188 | 188 | * |
| 189 | 189 | * @param string $route The route where the baseUrl should be removed from. |
| 190 | - * @return mixed |
|
| 190 | + * @return string |
|
| 191 | 191 | */ |
| 192 | 192 | public function removeBaseUrl($route) |
| 193 | 193 | { |
@@ -203,7 +203,7 @@ |
||
| 203 | 203 | * @param string $repo |
| 204 | 204 | * @param string $isFork |
| 205 | 205 | * @param string $exists |
| 206 | - * @return array |
|
| 206 | + * @return string[] |
|
| 207 | 207 | */ |
| 208 | 208 | private function summaryItem($repo, $isFork, $exists) |
| 209 | 209 | { |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | /** |
| 27 | 27 | * Display config data and location. |
| 28 | 28 | * |
| 29 | - * @return boolean|void |
|
| 29 | + * @return integer|null |
|
| 30 | 30 | */ |
| 31 | 31 | public function actionConfigInfo() |
| 32 | 32 | { |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | * Save a value in the config for a given key. |
| 78 | 78 | * |
| 79 | 79 | * @param string $key |
| 80 | - * @param mixed $value |
|
| 80 | + * @param string|boolean $value |
|
| 81 | 81 | * @return mixed |
| 82 | 82 | */ |
| 83 | 83 | protected function saveConfig($key, $value) |
@@ -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 | { |
@@ -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 | { |