@@ -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 |
@@ -63,7 +63,7 @@ |
||
63 | 63 | $lang = $this->lang; |
64 | 64 | $data = $this->misc->getDatabaseAccessor(); |
65 | 65 | |
66 | - $attPre = function (&$rowdata) use ($data) { |
|
66 | + $attPre = function(&$rowdata) use ($data) { |
|
67 | 67 | $rowdata->fields['+type'] = $data->formatType($rowdata->fields['type'], $rowdata->fields['atttypmod']); |
68 | 68 | }; |
69 | 69 |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | * @param $parser |
41 | 41 | * @param $cdata |
42 | 42 | */ |
43 | - $_charHandler = function ($parser, $cdata) use (&$state, &$curr_col_val) { |
|
43 | + $_charHandler = function($parser, $cdata) use (&$state, &$curr_col_val) { |
|
44 | 44 | if ('COLUMN' == $state) { |
45 | 45 | $curr_col_val .= $cdata; |
46 | 46 | } |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | * @param $name |
54 | 54 | * @param $attrs |
55 | 55 | */ |
56 | - $_startElement = function ($parser, $name, $attrs) use ($data, $misc, &$state, &$curr_col_name, &$curr_col_null) { |
|
56 | + $_startElement = function($parser, $name, $attrs) use ($data, $misc, &$state, &$curr_col_name, &$curr_col_null) { |
|
57 | 57 | switch ($name) { |
58 | 58 | case 'DATA': |
59 | 59 | if ('XML' != $state) { |
@@ -121,7 +121,7 @@ discard block |
||
121 | 121 | * @param $parser |
122 | 122 | * @param $name |
123 | 123 | */ |
124 | - $_endElement = function ($parser, $name) use ($data, $misc, &$state, &$curr_col_name, &$curr_col_null, &$curr_col_val) { |
|
124 | + $_endElement = function($parser, $name) use ($data, $misc, &$state, &$curr_col_name, &$curr_col_null, &$curr_col_val) { |
|
125 | 125 | switch ($name) { |
126 | 126 | case 'DATA': |
127 | 127 | $state = 'READ_DATA'; |
@@ -131,7 +131,7 @@ |
||
131 | 131 | ], |
132 | 132 | ]; |
133 | 133 | |
134 | - $svPre = function (&$rowdata) use ($actions) { |
|
134 | + $svPre = function(&$rowdata) use ($actions) { |
|
135 | 135 | $actions['logout']['disable'] = empty($rowdata->fields['username']); |
136 | 136 | |
137 | 137 | return $actions; |
@@ -500,7 +500,7 @@ |
||
500 | 500 | } |
501 | 501 | |
502 | 502 | // Create view and download |
503 | - if (isset($_REQUEST['query'], $rs) && is_object($rs) && $rs->recordCount() > 0) { |
|
503 | + if (isset($_REQUEST['query'], $rs) && is_object($rs) && $rs->recordCount() > 0) { |
|
504 | 504 | // Report views don't set a schema, so we need to disable create view in that case |
505 | 505 | if (isset($_REQUEST['schema'])) { |
506 | 506 | $navlinks['createview'] = [ |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | $lang = $this->lang; |
92 | 92 | $data = $this->misc->getDatabaseAccessor(); |
93 | 93 | |
94 | - $indPre = function (&$rowdata, $actions) use ($data, $lang) { |
|
94 | + $indPre = function(&$rowdata, $actions) use ($data, $lang) { |
|
95 | 95 | if ($data->phpBool($rowdata->fields['indisprimary'])) { |
96 | 96 | $rowdata->fields['+constraints'] = $lang['strprimarykey']; |
97 | 97 | $actions['drop']['disable'] = true; |
@@ -227,7 +227,7 @@ discard block |
||
227 | 227 | |
228 | 228 | $reqvars = $this->misc->getRequestVars($subject); |
229 | 229 | |
230 | - $getIcon = function ($f) { |
|
230 | + $getIcon = function($f) { |
|
231 | 231 | if ('t' == $f['indisprimary']) { |
232 | 232 | return 'PrimaryKey'; |
233 | 233 | } |
@@ -63,7 +63,7 @@ |
||
63 | 63 | $lang = $this->lang; |
64 | 64 | $data = $this->misc->getDatabaseAccessor(); |
65 | 65 | |
66 | - $attPre = function (&$rowdata) use ($data) { |
|
66 | + $attPre = function(&$rowdata) use ($data) { |
|
67 | 67 | $rowdata->fields['+type'] = $data->formatType($rowdata->fields['type'], $rowdata->fields['atttypmod']); |
68 | 68 | }; |
69 | 69 |