@@ -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 |
@@ -121,7 +121,7 @@ |
||
121 | 121 | * This is a callback function to display the result of each separate query |
122 | 122 | * @param ADORecordSet $rs The recordset returned by the script execetor |
123 | 123 | */ |
124 | - $sqlCallback = function ($query, $rs, $lineno) use ($data, $misc, $lang, $_connection) { |
|
124 | + $sqlCallback = function($query, $rs, $lineno) use ($data, $misc, $lang, $_connection) { |
|
125 | 125 | // Check if $rs is false, if so then there was a fatal error |
126 | 126 | if (false === $rs) { |
127 | 127 | echo htmlspecialchars($_FILES['script']['name']), ':', $lineno, ': ', nl2br(htmlspecialchars($_connection->getLastError())), "<br/>\n"; |