@@ -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')) { |
@@ -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() |