@@ -542,8 +542,6 @@ discard block |
||
542 | 542 | * persist changes in autovacuum settings. |
543 | 543 | * |
544 | 544 | * @param mixed $type |
545 | - * @param mixed $confirm |
|
546 | - * @param mixed $msg |
|
547 | 545 | */ |
548 | 546 | public function doEditAutovacuum($type) |
549 | 547 | { |
@@ -688,6 +686,10 @@ discard block |
||
688 | 686 | $this->_printAutoVacuumConf($data, $type); |
689 | 687 | } |
690 | 688 | |
689 | + /** |
|
690 | + * @param string $action |
|
691 | + * @param string $type |
|
692 | + */ |
|
691 | 693 | public function adminActions($action, $type) |
692 | 694 | { |
693 | 695 | if ('database' == $type) { |
@@ -764,6 +766,9 @@ discard block |
||
764 | 766 | return true; |
765 | 767 | } |
766 | 768 | |
769 | + /** |
|
770 | + * @param string $table_hidden_inputs |
|
771 | + */ |
|
767 | 772 | private function _getReclusterConf($data, $type, $table_hidden_inputs) |
768 | 773 | { |
769 | 774 | if (!$data->hasRecluster()) { |
@@ -923,11 +928,20 @@ discard block |
||
923 | 928 | |
924 | 929 | abstract public function printTrail($trail = [], $do_print = true); |
925 | 930 | |
931 | + /** |
|
932 | + * @param string $help |
|
933 | + */ |
|
926 | 934 | abstract public function printTitle($title, $help = null, $do_print = true); |
927 | 935 | |
928 | 936 | abstract public function printMsg($msg, $do_print = true); |
929 | 937 | |
938 | + /** |
|
939 | + * @param string $activetab |
|
940 | + */ |
|
930 | 941 | abstract public function printTabs($tabs, $activetab, $do_print = true); |
931 | 942 | |
943 | + /** |
|
944 | + * @param string $place |
|
945 | + */ |
|
932 | 946 | abstract public function printTable(&$tabledata, &$columns, &$actions, $place, $nodata = '', $pre_fn = null); |
933 | 947 | } |
@@ -128,7 +128,7 @@ |
||
128 | 128 | * @param mixed $default The default value to set, it $set is true |
129 | 129 | * @param bool $set True to set the default value if $var2 isn't defined |
130 | 130 | * |
131 | - * @return mixed the value of $var2 is $var2 is set, or $default otherwise |
|
131 | + * @return string the value of $var2 is $var2 is set, or $default otherwise |
|
132 | 132 | */ |
133 | 133 | public function setIfIsset(&$var1, $var2, $default = null, $set = true) |
134 | 134 | { |
@@ -206,6 +206,9 @@ discard block |
||
206 | 206 | return $vars; |
207 | 207 | } |
208 | 208 | |
209 | + /** |
|
210 | + * @param string $str |
|
211 | + */ |
|
209 | 212 | public function maybeClipStr($str, $params) |
210 | 213 | { |
211 | 214 | if (isset($params['map'], $params['map'][$str])) { |
@@ -224,6 +227,9 @@ discard block |
||
224 | 227 | return $str; |
225 | 228 | } |
226 | 229 | |
230 | + /** |
|
231 | + * @param string|null $type |
|
232 | + */ |
|
227 | 233 | public function printBoolean($type, &$str, $params, $lang) |
228 | 234 | { |
229 | 235 | if ($type === 'yesno') { |
@@ -397,6 +403,11 @@ discard block |
||
397 | 403 | return $out; |
398 | 404 | } |
399 | 405 | |
406 | + /** |
|
407 | + * @param string $class |
|
408 | + * @param string|null $align |
|
409 | + * @param string $tag |
|
410 | + */ |
|
400 | 411 | public function adjustClassAlignTag(&$class, &$align, &$tag, &$out, $params) |
401 | 412 | { |
402 | 413 | if (isset($params['class'])) { |
@@ -19,7 +19,7 @@ |
||
19 | 19 | * @param bool $recordset return as RecordSet suitable for HTMLTableController::printTable if true, otherwise just return an array |
20 | 20 | * @param mixed $group a group name to filter the returned servers using $this->conf[srv_groups] |
21 | 21 | * |
22 | - * @return array|\PHPPgAdmin\ArrayRecordSet either an array or a Recordset suitable for HTMLTableController::printTable |
|
22 | + * @return callable|null either an array or a Recordset suitable for HTMLTableController::printTable |
|
23 | 23 | */ |
24 | 24 | public function getServers($recordset = false, $group = false) |
25 | 25 | { |
@@ -48,7 +48,7 @@ |
||
48 | 48 | /** |
49 | 49 | * Ask for select parameters and perform select. |
50 | 50 | * |
51 | - * @param mixed $confirm |
|
51 | + * @param boolean $confirm |
|
52 | 52 | * @param mixed $msg |
53 | 53 | */ |
54 | 54 | public function doSelectRows($confirm, $msg = '') |
@@ -24,6 +24,10 @@ discard block |
||
24 | 24 | public $controller_title = 'html'; |
25 | 25 | |
26 | 26 | // Constructor |
27 | + |
|
28 | + /** |
|
29 | + * @param string $controller_name |
|
30 | + */ |
|
27 | 31 | public function __construct(\Slim\Container $container, $controller_name = null) |
28 | 32 | { |
29 | 33 | $this->container = $container; |
@@ -60,6 +64,7 @@ discard block |
||
60 | 64 | * these are appended to the URL |
61 | 65 | * @param array $fields field data from which 'urlfield' and 'vars' are obtained |
62 | 66 | * @param null|mixed $from |
67 | + * @return string |
|
63 | 68 | */ |
64 | 69 | protected function getActionUrl(&$action, &$fields, $from = null) |
65 | 70 | { |
@@ -131,8 +136,8 @@ discard block |
||
131 | 136 | * ); |
132 | 137 | * the special attribute 'href' might be a string or an array. If href is an array it |
133 | 138 | * will be generated by getActionUrl. See getActionUrl comment for array format. |
134 | - * @param mixed $do_print |
|
135 | - * @param null|mixed $from |
|
139 | + * @param boolean $do_print |
|
140 | + * @param string $from |
|
136 | 141 | */ |
137 | 142 | public function printLink($link, $do_print = true, $from = null) |
138 | 143 | { |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | * [printTopbar description]. |
177 | 177 | * |
178 | 178 | * @param bool $do_print true to print, false to return html |
179 | - * @param null|mixed $from which method is calling this one |
|
179 | + * @param string $from which method is calling this one |
|
180 | 180 | * |
181 | 181 | * @return string |
182 | 182 | */ |
@@ -431,6 +431,9 @@ discard block |
||
431 | 431 | return $trail; |
432 | 432 | } |
433 | 433 | |
434 | + /** |
|
435 | + * @param string $subject |
|
436 | + */ |
|
434 | 437 | private function _getLastTrailPart($subject, $trail) |
435 | 438 | { |
436 | 439 | $lang = $this->lang; |
@@ -24,6 +24,10 @@ |
||
24 | 24 | public $controller_title = 'base'; |
25 | 25 | |
26 | 26 | // Constructor |
27 | + |
|
28 | + /** |
|
29 | + * @param string $controller_name |
|
30 | + */ |
|
27 | 31 | public function __construct(\Slim\Container $container, $controller_name = null) |
28 | 32 | { |
29 | 33 | $this->container = $container; |
@@ -266,7 +266,7 @@ |
||
266 | 266 | /** |
267 | 267 | * Show confirmation of drop and perform actual drop. |
268 | 268 | * |
269 | - * @param mixed $confirm |
|
269 | + * @param boolean $confirm |
|
270 | 270 | */ |
271 | 271 | public function doDrop($confirm) |
272 | 272 | { |