@@ -84,7 +84,7 @@ |
||
| 84 | 84 | $lang = $this->lang; |
| 85 | 85 | $data = $misc->getDatabaseAccessor(); |
| 86 | 86 | |
| 87 | - $renderUseExpires = function ($val) use ($lang) { |
|
| 87 | + $renderUseExpires = function($val) use ($lang) { |
|
| 88 | 88 | return $val == 'infinity' ? $lang['strnever'] : htmlspecialchars($val); |
| 89 | 89 | }; |
| 90 | 90 | |
@@ -220,6 +220,7 @@ discard block |
||
| 220 | 220 | |
| 221 | 221 | /** |
| 222 | 222 | * Show confirmation of change password and actually change password |
| 223 | + * @param boolean $confirm |
|
| 223 | 224 | */ |
| 224 | 225 | public function doChangePassword($confirm, $msg = '') |
| 225 | 226 | { |
@@ -377,6 +378,7 @@ discard block |
||
| 377 | 378 | |
| 378 | 379 | /** |
| 379 | 380 | * Show confirmation of drop and perform actual drop |
| 381 | + * @param boolean $confirm |
|
| 380 | 382 | */ |
| 381 | 383 | public function doDrop($confirm) |
| 382 | 384 | { |
@@ -95,7 +95,7 @@ |
||
| 95 | 95 | |
| 96 | 96 | $reqvars = $misc->getRequestVars('schema'); |
| 97 | 97 | |
| 98 | - $getIcon = function ($f) { |
|
| 98 | + $getIcon = function($f) { |
|
| 99 | 99 | switch ($f['contype']) { |
| 100 | 100 | case 'u': |
| 101 | 101 | return 'UniqueConstraint'; |
@@ -127,7 +127,7 @@ |
||
| 127 | 127 | ], |
| 128 | 128 | ]; |
| 129 | 129 | |
| 130 | - $svPre = function (&$rowdata) use ($actions) { |
|
| 130 | + $svPre = function(&$rowdata) use ($actions) { |
|
| 131 | 131 | $actions['logout']['disable'] = empty($rowdata->fields['username']); |
| 132 | 132 | return $actions; |
| 133 | 133 | }; |
@@ -248,7 +248,7 @@ |
||
| 248 | 248 | $this->printTitle($lang['strproperties'], 'pg.type'); |
| 249 | 249 | $this->printMsg($msg); |
| 250 | 250 | |
| 251 | - $attPre = function (&$rowdata) use ($data) { |
|
| 251 | + $attPre = function(&$rowdata) use ($data) { |
|
| 252 | 252 | $rowdata->fields['+type'] = $data->formatType($rowdata->fields['type'], $rowdata->fields['atttypmod']); |
| 253 | 253 | }; |
| 254 | 254 | |
@@ -324,6 +324,7 @@ |
||
| 324 | 324 | |
| 325 | 325 | /** |
| 326 | 326 | * Show confirmation of drop and perform actual drop |
| 327 | + * @param boolean $confirm |
|
| 327 | 328 | */ |
| 328 | 329 | public function doDrop($confirm) |
| 329 | 330 | { |
@@ -142,7 +142,7 @@ |
||
| 142 | 142 | foreach ($alltabs as $tab_id => $tab) { |
| 143 | 143 | if (!isset($tab['hide']) || $tab['hide'] !== true) { |
| 144 | 144 | $tabs[$tab_id] = $tab; |
| 145 | - $tabs[$tab_id]['active'] = $active = ($tab_id == $activetab) ? ' active' : ''; |
|
| 145 | + $tabs[$tab_id]['active'] = $active = ($tab_id == $activetab) ? ' active' : ''; |
|
| 146 | 146 | $tabs[$tab_id]['tablink'] = str_replace(['&', '.php'], ['&', ''], htmlentities($this->getActionUrl($tab, $_REQUEST, $from))); |
| 147 | 147 | if (isset($tab['icon']) && $icon = $misc->icon($tab['icon'])) { |
| 148 | 148 | $tabs[$tab_id]['iconurl'] = $icon; |
@@ -357,6 +357,9 @@ discard block |
||
| 357 | 357 | } |
| 358 | 358 | } |
| 359 | 359 | |
| 360 | + /** |
|
| 361 | + * @param string $subject |
|
| 362 | + */ |
|
| 360 | 363 | private function getHREFSubject($subject) |
| 361 | 364 | { |
| 362 | 365 | $vars = $this->misc->getSubjectParams($subject); |
@@ -367,6 +370,7 @@ discard block |
||
| 367 | 370 | /** |
| 368 | 371 | * Create a bread crumb trail of the object hierarchy. |
| 369 | 372 | * @param $object The type of object at the end of the trail. |
| 373 | + * @param string $subject |
|
| 370 | 374 | */ |
| 371 | 375 | private function getTrail($subject = null) |
| 372 | 376 | { |
@@ -92,7 +92,7 @@ |
||
| 92 | 92 | $lang = $this->lang; |
| 93 | 93 | $data = $misc->getDatabaseAccessor(); |
| 94 | 94 | |
| 95 | - $attPre = function (&$rowdata) use ($data) { |
|
| 95 | + $attPre = function(&$rowdata) use ($data) { |
|
| 96 | 96 | $rowdata->fields['+type'] = $data->formatType($rowdata->fields['type'], $rowdata->fields['atttypmod']); |
| 97 | 97 | }; |
| 98 | 98 | |
@@ -92,7 +92,7 @@ |
||
| 92 | 92 | $lang = $this->lang; |
| 93 | 93 | $data = $misc->getDatabaseAccessor(); |
| 94 | 94 | |
| 95 | - $attPre = function (&$rowdata) use ($data) { |
|
| 95 | + $attPre = function(&$rowdata) use ($data) { |
|
| 96 | 96 | $rowdata->fields['+type'] = $data->formatType($rowdata->fields['type'], $rowdata->fields['atttypmod']); |
| 97 | 97 | }; |
| 98 | 98 | |
@@ -212,7 +212,7 @@ |
||
| 212 | 212 | $status = -1; // ini |
| 213 | 213 | if ($rs->recordCount() and ($rs->fields['vacrelid'] == $toid)) { |
| 214 | 214 | // table exists in pg_autovacuum, UPDATE |
| 215 | - $sql = sprintf("UPDATE \"pg_catalog\".\"pg_autovacuum\" SET |
|
| 215 | + $sql = sprintf("UPDATE \"pg_catalog\".\"pg_autovacuum\" SET |
|
| 216 | 216 | enabled = '%s', |
| 217 | 217 | vac_base_thresh = %s, |
| 218 | 218 | vac_scale_factor = %s, |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | $lang = $this->lang; |
| 46 | 46 | $data = $misc->getDatabaseAccessor(); |
| 47 | 47 | |
| 48 | - $renderCastContext = function ($val) use ($lang) { |
|
| 48 | + $renderCastContext = function($val) use ($lang) { |
|
| 49 | 49 | switch ($val) { |
| 50 | 50 | case 'e':return $lang['strno']; |
| 51 | 51 | case 'a':return $lang['strinassignment']; |