@@ -45,7 +45,7 @@ |
||
45 | 45 | $lang = $this->lang; |
46 | 46 | $data = $this->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']; |
@@ -99,7 +99,7 @@ |
||
99 | 99 | $lang = $this->lang; |
100 | 100 | $data = $this->misc->getDatabaseAccessor(); |
101 | 101 | |
102 | - $tgPre = function (&$rowdata, $actions) use ($data) { |
|
102 | + $tgPre = function(&$rowdata, $actions) use ($data) { |
|
103 | 103 | // toggle enable/disable trigger per trigger |
104 | 104 | if (!$data->phpBool($rowdata->fields['tgenabled'])) { |
105 | 105 | unset($actions['disable']); |
@@ -93,7 +93,7 @@ |
||
93 | 93 | |
94 | 94 | $reqvars = $this->misc->getRequestVars('schema'); |
95 | 95 | |
96 | - $getIcon = function ($f) { |
|
96 | + $getIcon = function($f) { |
|
97 | 97 | switch ($f['contype']) { |
98 | 98 | case 'u': |
99 | 99 | return 'UniqueConstraint'; |
@@ -141,7 +141,7 @@ |
||
141 | 141 | foreach ($alltabs as $tab_id => $tab) { |
142 | 142 | if (!isset($tab['hide']) || $tab['hide'] !== true) { |
143 | 143 | $tabs[$tab_id] = $tab; |
144 | - $tabs[$tab_id]['active'] = $active = ($tab_id == $activetab) ? ' active' : ''; |
|
144 | + $tabs[$tab_id]['active'] = $active = ($tab_id == $activetab) ? ' active' : ''; |
|
145 | 145 | $tabs[$tab_id]['tablink'] = str_replace(['&', '.php'], ['&', ''], htmlentities($this->getActionUrl($tab, $_REQUEST, $from))); |
146 | 146 | if (isset($tab['icon']) && $icon = $this->misc->icon($tab['icon'])) { |
147 | 147 | $tabs[$tab_id]['iconurl'] = $icon; |
@@ -101,11 +101,11 @@ |
||
101 | 101 | $lang = $this->lang; |
102 | 102 | $data = $this->misc->getDatabaseAccessor(); |
103 | 103 | |
104 | - $renderRoleConnLimit = function ($val) use ($lang) { |
|
104 | + $renderRoleConnLimit = function($val) use ($lang) { |
|
105 | 105 | return '-1' == $val ? $lang['strnolimit'] : htmlspecialchars($val); |
106 | 106 | }; |
107 | 107 | |
108 | - $renderRoleExpires = function ($val) use ($lang) { |
|
108 | + $renderRoleExpires = function($val) use ($lang) { |
|
109 | 109 | return 'infinity' == $val ? $lang['strnever'] : htmlspecialchars($val); |
110 | 110 | }; |
111 | 111 |
@@ -60,7 +60,7 @@ |
||
60 | 60 | |
61 | 61 | break; |
62 | 62 | case 'alter': |
63 | - if (isset($_POST['oldname'], $_POST['newname']) && !isset($_POST['cancel'])) { |
|
63 | + if (isset($_POST['oldname'], $_POST['newname']) && !isset($_POST['cancel'])) { |
|
64 | 64 | $this->doAlter(false); |
65 | 65 | } else { |
66 | 66 | $this->doDefault(); |
@@ -132,7 +132,7 @@ |
||
132 | 132 | $lang = $this->lang; |
133 | 133 | $data = $this->misc->getDatabaseAccessor(); |
134 | 134 | |
135 | - $cnPre = function (&$rowdata) use ($data) { |
|
135 | + $cnPre = function(&$rowdata) use ($data) { |
|
136 | 136 | if (is_null($rowdata->fields['consrc'])) { |
137 | 137 | $atts = $data->getAttributeNames($_REQUEST['table'], explode(' ', $rowdata->fields['indkey'])); |
138 | 138 | $rowdata->fields['+definition'] = ('u' == $rowdata->fields['contype'] ? 'UNIQUE (' : 'PRIMARY KEY (') . join(',', $atts) . ')'; |
@@ -661,7 +661,7 @@ |
||
661 | 661 | echo '<p>' . (('on' == $defaults['autovacuum']) ? $lang['strturnedon'] : $lang['strturnedoff']) . '</p>'; |
662 | 662 | echo "<p class=\"message\">{$lang['strnotdefaultinred']}</p>"; |
663 | 663 | |
664 | - $enlight = function ($f, $p) { |
|
664 | + $enlight = function($f, $p) { |
|
665 | 665 | if (isset($f[$p[0]]) and ($f[$p[0]] != $p[1])) { |
666 | 666 | return '<span style="color:#F33;font-weight:bold">' . htmlspecialchars($f[$p[0]]) . '</span>'; |
667 | 667 | } |
@@ -93,7 +93,7 @@ |
||
93 | 93 | $lang = $this->lang; |
94 | 94 | $data = $this->misc->getDatabaseAccessor(); |
95 | 95 | |
96 | - $renderUseExpires = function ($val) use ($lang) { |
|
96 | + $renderUseExpires = function($val) use ($lang) { |
|
97 | 97 | return 'infinity' == $val ? $lang['strnever'] : htmlspecialchars($val); |
98 | 98 | }; |
99 | 99 |