Passed
Pull Request — master (#70)
by Felipe
03:51
created
src/controllers/TablesController.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
             'table'      => [
147 147
                 'title' => $lang['strtable'],
148 148
                 'field' => Decorator::field('relname'),
149
-                'url'   => SUBFOLDER."/redirect/table?{$misc->href}&",
149
+                'url'   => SUBFOLDER . "/redirect/table?{$misc->href}&",
150 150
                 'vars'  => ['table' => 'relname'],
151 151
             ],
152 152
             'owner'      => [
@@ -444,7 +444,7 @@  discard block
 block discarded – undo
444 444
                 $this->printTitle($lang['strcreatetable'], 'pg.table.create');
445 445
                 $this->printMsg($msg);
446 446
 
447
-                echo '<form action="'.SUBFOLDER.'/src/views/'.$this->script.'" method="post">';
447
+                echo '<form action="' . SUBFOLDER . '/src/views/' . $this->script . '" method="post">';
448 448
                 echo "\n";
449 449
                 echo "<table>\n";
450 450
                 echo "\t<tr>\n\t\t<th class=\"data left required\">{$lang['strname']}</th>\n";
@@ -508,8 +508,8 @@  discard block
 block discarded – undo
508 508
                 $this->printTitle($lang['strcreatetable'], 'pg.table.create');
509 509
                 $this->printMsg($msg);
510 510
 
511
-                echo '<script src="'.SUBFOLDER.'/js/tables.js" type="text/javascript"></script>';
512
-                echo '<form action="'.SUBFOLDER."/src/views/tables.php\" method=\"post\">\n";
511
+                echo '<script src="' . SUBFOLDER . '/js/tables.js" type="text/javascript"></script>';
512
+                echo '<form action="' . SUBFOLDER . "/src/views/tables.php\" method=\"post\">\n";
513 513
 
514 514
                 // Output table header
515 515
                 echo "<table>\n";
@@ -563,7 +563,7 @@  discard block
 block discarded – undo
563 563
                         foreach ($predefined_size_types as $value) {
564 564
                             $escaped_predef_types[] = "'{$value}'";
565 565
                         }
566
-                        echo '<script type="text/javascript">predefined_lengths = new Array('.implode(',', $escaped_predef_types).");</script>\n\t</td>";
566
+                        echo '<script type="text/javascript">predefined_lengths = new Array(' . implode(',', $escaped_predef_types) . ");</script>\n\t</td>";
567 567
                     }
568 568
 
569 569
                     // Output array type selector
@@ -576,7 +576,7 @@  discard block
 block discarded – undo
576 576
                     htmlspecialchars($_REQUEST['length'][$i]), "\" /></td>\n";
577 577
                     echo "\t\t<td><input type=\"checkbox\" name=\"notnull[{$i}]\"", (isset($_REQUEST['notnull'][$i])) ? ' checked="checked"' : '', " /></td>\n";
578 578
                     echo "\t\t<td style=\"text-align: center\"><input type=\"checkbox\" name=\"uniquekey[{$i}]\""
579
-                        .(isset($_REQUEST['uniquekey'][$i]) ? ' checked="checked"' : '')." /></td>\n";
579
+                        .(isset($_REQUEST['uniquekey'][$i]) ? ' checked="checked"' : '') . " /></td>\n";
580 580
                     echo "\t\t<td style=\"text-align: center\"><input type=\"checkbox\" name=\"primarykey[{$i}]\" "
581 581
                         .(isset($_REQUEST['primarykey'][$i]) ? ' checked="checked"' : '')
582 582
                         ." /></td>\n";
@@ -713,7 +713,7 @@  discard block
 block discarded – undo
713 713
 
714 714
             unset($tbltmp);
715 715
 
716
-            echo '<form action="'.SUBFOLDER."/src/views/tables.php\" method=\"post\">\n";
716
+            echo '<form action="' . SUBFOLDER . "/src/views/tables.php\" method=\"post\">\n";
717 717
             echo "<table>\n\t<tr>\n\t\t<th class=\"data left required\">{$lang['strname']}</th>\n";
718 718
             echo "\t\t<td class=\"data\"><input name=\"name\" size=\"32\" maxlength=\"{$data->_maxNameLen}\" value=\"", htmlspecialchars($_REQUEST['name']), "\" /></td>\n\t</tr>\n";
719 719
             echo "\t<tr>\n\t\t<th class=\"data left required\">{$lang['strcreatetablelikeparent']}</th>\n";
@@ -805,7 +805,7 @@  discard block
 block discarded – undo
805 805
 
806 806
             $attrs = $data->getTableAttributes($_REQUEST['table']);
807 807
 
808
-            echo '<form action="'.SUBFOLDER."/src/views/tables.php\" method=\"post\" id=\"selectform\">\n";
808
+            echo '<form action="' . SUBFOLDER . "/src/views/tables.php\" method=\"post\" id=\"selectform\">\n";
809 809
             if ($attrs->recordCount() > 0) {
810 810
                 // JavaScript for select all feature
811 811
                 echo "<script type=\"text/javascript\">\n";
@@ -942,7 +942,7 @@  discard block
 block discarded – undo
942 942
                 $fksprops = false;
943 943
             }
944 944
 
945
-            echo '<form action="'.SUBFOLDER."/src/views/tables.php\" method=\"post\" id=\"ac_form\">\n";
945
+            echo '<form action="' . SUBFOLDER . "/src/views/tables.php\" method=\"post\" id=\"ac_form\">\n";
946 946
             if ($attrs->recordCount() > 0) {
947 947
                 echo "<table>\n";
948 948
 
@@ -1012,7 +1012,7 @@  discard block
 block discarded – undo
1012 1012
 
1013 1013
                 echo "<input type=\"hidden\" name=\"action\" value=\"insertrow\" />\n";
1014 1014
                 echo '<input type="hidden" name="fields" value="', htmlentities(serialize($fields), ENT_QUOTES, 'UTF-8'), "\" />\n";
1015
-                echo '<input type="hidden" name="protection_counter" value="'.$_SESSION['counter']."\" />\n";
1015
+                echo '<input type="hidden" name="protection_counter" value="' . $_SESSION['counter'] . "\" />\n";
1016 1016
                 echo '<input type="hidden" name="table" value="', htmlspecialchars($_REQUEST['table']), "\" />\n";
1017 1017
                 echo "<p><input type=\"submit\" name=\"insert\" value=\"{$lang['strinsert']}\" />\n";
1018 1018
                 echo "<input type=\"submit\" name=\"insertandrepeat\" accesskey=\"r\" value=\"{$lang['strinsertandrepeat']}\" />\n";
@@ -1082,7 +1082,7 @@  discard block
 block discarded – undo
1082 1082
                 $this->printTrail('schema');
1083 1083
                 $this->printTitle($lang['strempty'], 'pg.table.empty');
1084 1084
 
1085
-                echo '<form action="'.SUBFOLDER."/src/views/tables.php\" method=\"post\">\n";
1085
+                echo '<form action="' . SUBFOLDER . "/src/views/tables.php\" method=\"post\">\n";
1086 1086
                 foreach ($_REQUEST['ma'] as $v) {
1087 1087
                     $a = unserialize(htmlspecialchars_decode($v, ENT_QUOTES));
1088 1088
                     echo '<p>', sprintf($lang['strconfemptytable'], $misc->printVal($a['table'])), "</p>\n";
@@ -1095,7 +1095,7 @@  discard block
 block discarded – undo
1095 1095
 
1096 1096
                 echo '<p>', sprintf($lang['strconfemptytable'], $misc->printVal($_REQUEST['table'])), "</p>\n";
1097 1097
 
1098
-                echo '<form action="'.SUBFOLDER."/src/views/tables.php\" method=\"post\">\n";
1098
+                echo '<form action="' . SUBFOLDER . "/src/views/tables.php\" method=\"post\">\n";
1099 1099
                 echo '<input type="hidden" name="table" value="', htmlspecialchars($_REQUEST['table']), "\" />\n";
1100 1100
             } // END not mutli empty
1101 1101
 
@@ -1152,7 +1152,7 @@  discard block
 block discarded – undo
1152 1152
                 $this->printTrail('schema');
1153 1153
                 $this->printTitle($lang['strdrop'], 'pg.table.drop');
1154 1154
 
1155
-                echo '<form action="'.SUBFOLDER."/src/views/tables.php\" method=\"post\">\n";
1155
+                echo '<form action="' . SUBFOLDER . "/src/views/tables.php\" method=\"post\">\n";
1156 1156
                 foreach ($_REQUEST['ma'] as $v) {
1157 1157
                     $a = unserialize(htmlspecialchars_decode($v, ENT_QUOTES));
1158 1158
                     echo '<p>', sprintf($lang['strconfdroptable'], $misc->printVal($a['table'])), "</p>\n";
@@ -1164,7 +1164,7 @@  discard block
 block discarded – undo
1164 1164
 
1165 1165
                 echo '<p>', sprintf($lang['strconfdroptable'], $misc->printVal($_REQUEST['table'])), "</p>\n";
1166 1166
 
1167
-                echo '<form action="'.SUBFOLDER."/src/views/tables.php\" method=\"post\">\n";
1167
+                echo '<form action="' . SUBFOLDER . "/src/views/tables.php\" method=\"post\">\n";
1168 1168
                 echo '<input type="hidden" name="table" value="', htmlspecialchars($_REQUEST['table']), "\" />\n";
1169 1169
             } // END if multi drop
1170 1170
 
Please login to merge, or discard this patch.
src/controllers/BaseController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -330,7 +330,7 @@
 block discarded – undo
330 330
         $html = '';
331 331
         $msg = htmlspecialchars(\PHPPgAdmin\HelperTrait::br2ln($msg));
332 332
         if ($msg != '') {
333
-            $html .= '<p class="message">'.nl2br($msg).'</p>'."\n";
333
+            $html .= '<p class="message">' . nl2br($msg) . '</p>' . "\n";
334 334
         }
335 335
         if ($do_print) {
336 336
             echo $html;
Please login to merge, or discard this patch.
src/controllers/SqlController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
          *
121 121
          * @param ADORecordSet $rs The recordset returned by the script execetor
122 122
          */
123
-        $sqlCallback = function ($query, $rs, $lineno) use ($data, $misc, $lang, $_connection) {
123
+        $sqlCallback = function($query, $rs, $lineno) use ($data, $misc, $lang, $_connection) {
124 124
 
125 125
             // Check if $rs is false, if so then there was a fatal error
126 126
             if ($rs === false) {
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
 
187 187
         $rs = $data->conn->Execute($this->query);
188 188
 
189
-        echo '<form method="post" id="sqlform" action="'.$_SERVER['REQUEST_URI'].'">';
189
+        echo '<form method="post" id="sqlform" action="' . $_SERVER['REQUEST_URI'] . '">';
190 190
         echo '<textarea width="90%" name="query"  id="query" rows="5" cols="100" resizable="true">';
191 191
 
192 192
         echo htmlspecialchars($this->query);
Please login to merge, or discard this patch.
src/controllers/SchemasController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
             'schema'  => [
98 98
                 'title' => $lang['strschema'],
99 99
                 'field' => Decorator::field('nspname'),
100
-                'url'   => SUBFOLDER."/redirect/schema?{$misc->href}&amp;",
100
+                'url'   => SUBFOLDER . "/redirect/schema?{$misc->href}&amp;",
101 101
                 'vars'  => ['schema' => 'nspname'],
102 102
             ],
103 103
             'owner'   => [
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
         $this->printTitle($lang['strcreateschema'], 'pg.schema.create');
284 284
         $this->printMsg($msg);
285 285
 
286
-        echo '<form action="'.SUBFOLDER.'/src/views/schemas.php" method="post">'."\n";
286
+        echo '<form action="' . SUBFOLDER . '/src/views/schemas.php" method="post">' . "\n";
287 287
         echo "<table style=\"width: 100%\">\n";
288 288
         echo "\t<tr>\n\t\t<th class=\"data left required\">{$lang['strname']}</th>\n";
289 289
         echo "\t\t<td class=\"data1\"><input name=\"formName\" size=\"32\" maxlength=\"{$data->_maxNameLen}\" value=\"",
@@ -368,7 +368,7 @@  discard block
 block discarded – undo
368 368
                 $_POST['owner'] = $schema->fields['ownername'];
369 369
             }
370 370
 
371
-            echo '<form action="'.SUBFOLDER.'/src/views/schemas.php" method="post">'."\n";
371
+            echo '<form action="' . SUBFOLDER . '/src/views/schemas.php" method="post">' . "\n";
372 372
             echo "<table>\n";
373 373
 
374 374
             echo "\t<tr>\n";
@@ -446,7 +446,7 @@  discard block
 block discarded – undo
446 446
             $this->printTrail('schema');
447 447
             $this->printTitle($lang['strdrop'], 'pg.schema.drop');
448 448
 
449
-            echo '<form action="'.SUBFOLDER.'/src/views/schemas.php" method="post">'."\n";
449
+            echo '<form action="' . SUBFOLDER . '/src/views/schemas.php" method="post">' . "\n";
450 450
             //If multi drop
451 451
             if (isset($_REQUEST['ma'])) {
452 452
                 foreach ($_REQUEST['ma'] as $v) {
@@ -515,7 +515,7 @@  discard block
 block discarded – undo
515 515
         $this->printTabs('schema', 'export');
516 516
         $this->printMsg($msg);
517 517
 
518
-        echo '<form action="'.SUBFOLDER.'/src/views/dbexport.php" method="post">'."\n";
518
+        echo '<form action="' . SUBFOLDER . '/src/views/dbexport.php" method="post">' . "\n";
519 519
 
520 520
         echo "<table>\n";
521 521
         echo "<tr><th class=\"data\">{$lang['strformat']}</th><th class=\"data\" colspan=\"2\">{$lang['stroptions']}</th></tr>\n";
Please login to merge, or discard this patch.
src/controllers/AlldbController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
             'database'   => [
92 92
                 'title' => $lang['strdatabase'],
93 93
                 'field' => Decorator::field('datname'),
94
-                'url'   => SUBFOLDER."/redirect/database?{$misc->href}&amp;",
94
+                'url'   => SUBFOLDER . "/redirect/database?{$misc->href}&amp;",
95 95
                 'vars'  => ['database' => 'datname'],
96 96
             ],
97 97
             'owner'      => [
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
             $this->printTrail('database');
252 252
             $this->printTitle($lang['stralter'], 'pg.database.alter');
253 253
 
254
-            echo '<form action="'.SUBFOLDER."/src/views/alldb.php\" method=\"post\">\n";
254
+            echo '<form action="' . SUBFOLDER . "/src/views/alldb.php\" method=\"post\">\n";
255 255
             echo "<table>\n";
256 256
             echo "<tr><th class=\"data left required\">{$lang['strname']}</th>\n";
257 257
             echo '<td class="data1">';
@@ -328,7 +328,7 @@  discard block
 block discarded – undo
328 328
             $this->printTrail('database');
329 329
             $this->printTitle($lang['strdrop'], 'pg.database.drop');
330 330
 
331
-            echo '<form action="'.SUBFOLDER."/src/views/alldb.php\" method=\"post\">\n";
331
+            echo '<form action="' . SUBFOLDER . "/src/views/alldb.php\" method=\"post\">\n";
332 332
             //If multi drop
333 333
             if (isset($_REQUEST['ma'])) {
334 334
                 foreach ($_REQUEST['ma'] as $v) {
@@ -419,7 +419,7 @@  discard block
 block discarded – undo
419 419
             $tablespaces = $data->getTablespaces();
420 420
         }
421 421
 
422
-        echo '<form action="'.SUBFOLDER."/src/views/alldb.php\" method=\"post\">\n";
422
+        echo '<form action="' . SUBFOLDER . "/src/views/alldb.php\" method=\"post\">\n";
423 423
         echo "<table>\n";
424 424
         echo "\t<tr>\n\t\t<th class=\"data left required\">{$lang['strname']}</th>\n";
425 425
         echo "\t\t<td class=\"data1\"><input name=\"formName\" size=\"32\" maxlength=\"{$data->_maxNameLen}\" value=\"",
@@ -571,7 +571,7 @@  discard block
 block discarded – undo
571 571
         $this->printTabs('server', 'export');
572 572
         $this->printMsg($msg);
573 573
 
574
-        echo '<form action="'.SUBFOLDER."/src/views/dbexport.php\" method=\"post\">\n";
574
+        echo '<form action="' . SUBFOLDER . "/src/views/dbexport.php\" method=\"post\">\n";
575 575
         echo "<table>\n";
576 576
         echo "<tr><th class=\"data\">{$lang['strformat']}</th><th class=\"data\">{$lang['stroptions']}</th></tr>\n";
577 577
         // Data only
Please login to merge, or discard this patch.
src/controllers/PrivilegesController.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -73,8 +73,8 @@  discard block
 block discarded – undo
73 73
         $this->printMsg($msg);
74 74
 
75 75
         // Determine whether object should be ref'd by name or oid.
76
-        if (isset($_REQUEST[$_REQUEST['subject'].'_oid'])) {
77
-            $object = $_REQUEST[$_REQUEST['subject'].'_oid'];
76
+        if (isset($_REQUEST[$_REQUEST['subject'] . '_oid'])) {
77
+            $object = $_REQUEST[$_REQUEST['subject'] . '_oid'];
78 78
         } else {
79 79
             $object = $_REQUEST[$_REQUEST['subject']];
80 80
         }
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
         $object = $_REQUEST[$_REQUEST['subject']];
177 177
 
178 178
         if ($_REQUEST['subject'] == 'function') {
179
-            $objectoid = $_REQUEST[$_REQUEST['subject'].'_oid'];
179
+            $objectoid = $_REQUEST[$_REQUEST['subject'] . '_oid'];
180 180
             $urlvars = [
181 181
                 'action'         => 'alter',
182 182
                 'server'         => $_REQUEST['server'],
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
             }
302 302
             $this->printMsg($msg);
303 303
 
304
-            echo '<form action="'.SUBFOLDER."/src/views/privileges.php\" method=\"post\">\n";
304
+            echo '<form action="' . SUBFOLDER . "/src/views/privileges.php\" method=\"post\">\n";
305 305
             echo "<table>\n";
306 306
             echo "<tr><th class=\"data left\">{$lang['strusers']}</th>\n";
307 307
             echo '<td class="data1"><select name="username[]" multiple="multiple" size="', min(6, $users->recordCount()), "\">\n";
@@ -355,9 +355,9 @@  discard block
 block discarded – undo
355 355
             echo "<p><input type=\"hidden\" name=\"action\" value=\"save\" />\n";
356 356
             echo '<input type="hidden" name="mode" value="', htmlspecialchars($mode), "\" />\n";
357 357
             echo '<input type="hidden" name="subject" value="', htmlspecialchars($_REQUEST['subject']), "\" />\n";
358
-            if (isset($_REQUEST[$_REQUEST['subject'].'_oid'])) {
359
-                echo '<input type="hidden" name="', htmlspecialchars($_REQUEST['subject'].'_oid'),
360
-                '" value="', htmlspecialchars($_REQUEST[$_REQUEST['subject'].'_oid']), "\" />\n";
358
+            if (isset($_REQUEST[$_REQUEST['subject'] . '_oid'])) {
359
+                echo '<input type="hidden" name="', htmlspecialchars($_REQUEST['subject'] . '_oid'),
360
+                '" value="', htmlspecialchars($_REQUEST[$_REQUEST['subject'] . '_oid']), "\" />\n";
361 361
             }
362 362
 
363 363
             echo '<input type="hidden" name="', htmlspecialchars($_REQUEST['subject']),
@@ -378,8 +378,8 @@  discard block
 block discarded – undo
378 378
             echo "</form>\n";
379 379
         } else {
380 380
             // Determine whether object should be ref'd by name or oid.
381
-            if (isset($_REQUEST[$_REQUEST['subject'].'_oid'])) {
382
-                $object = $_REQUEST[$_REQUEST['subject'].'_oid'];
381
+            if (isset($_REQUEST[$_REQUEST['subject'] . '_oid'])) {
382
+                $object = $_REQUEST[$_REQUEST['subject'] . '_oid'];
383 383
             } else {
384 384
                 $object = $_REQUEST[$_REQUEST['subject']];
385 385
             }
Please login to merge, or discard this patch.
src/controllers/HistoryController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -63,14 +63,14 @@  discard block
 block discarded – undo
63 63
         $lang = $this->lang;
64 64
         $data = $misc->getDatabaseAccessor();
65 65
 
66
-        $onchange = "onchange=\"location.href='".SUBFOLDER."/src/views/history.php?server=' + encodeURI(server.options[server.selectedIndex].value) + '&amp;database=' + encodeURI(database.options[database.selectedIndex].value) + '&amp;'\"";
66
+        $onchange = "onchange=\"location.href='" . SUBFOLDER . "/src/views/history.php?server=' + encodeURI(server.options[server.selectedIndex].value) + '&amp;database=' + encodeURI(database.options[database.selectedIndex].value) + '&amp;'\"";
67 67
 
68 68
         $this->printHeader($lang['strhistory'], $this->scripts, true, 'header.twig');
69 69
 
70 70
         // Bring to the front always
71 71
         echo "<body onload=\"window.focus();\">\n";
72 72
 
73
-        echo '<form action="'.SUBFOLDER."/src/views/history.php\" method=\"post\">\n";
73
+        echo '<form action="' . SUBFOLDER . "/src/views/history.php\" method=\"post\">\n";
74 74
         $misc->printConnection($onchange);
75 75
         echo '</form><br />';
76 76
 
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
             echo "<p>{$lang['strconfdelhistory']}</p>\n";
201 201
 
202 202
             echo '<pre>', htmlentities($_SESSION['history'][$_REQUEST['server']][$_REQUEST['database']][$qid]['query'], ENT_QUOTES, 'UTF-8'), '</pre>';
203
-            echo '<form action="'.SUBFOLDER."/src/views/history.php\" method=\"post\">\n";
203
+            echo '<form action="' . SUBFOLDER . "/src/views/history.php\" method=\"post\">\n";
204 204
             echo "<input type=\"hidden\" name=\"action\" value=\"delhistory\" />\n";
205 205
             echo "<input type=\"hidden\" name=\"queryid\" value=\"$qid\" />\n";
206 206
             echo $misc->form;
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
             echo "<h3>{$lang['strclearhistory']}</h3>\n";
229 229
             echo "<p>{$lang['strconfclearhistory']}</p>\n";
230 230
 
231
-            echo '<form action="'.SUBFOLDER."/src/views/history.php\" method=\"post\">\n";
231
+            echo '<form action="' . SUBFOLDER . "/src/views/history.php\" method=\"post\">\n";
232 232
             echo "<input type=\"hidden\" name=\"action\" value=\"clearhistory\" />\n";
233 233
             echo $misc->form;
234 234
             echo "<input type=\"submit\" name=\"yes\" value=\"{$lang['stryes']}\" />\n";
Please login to merge, or discard this patch.
src/controllers/AdminTrait.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
                 $this->printTrail('schema');
30 30
                 $this->printTitle($lang['strclusterindex'], 'pg.index.cluster');
31 31
 
32
-                echo '<form action="'.SUBFOLDER."/src/views/{$script}\" method=\"post\">\n";
32
+                echo '<form action="' . SUBFOLDER . "/src/views/{$script}\" method=\"post\">\n";
33 33
                 foreach ($_REQUEST['ma'] as $v) {
34 34
                     $a = unserialize(htmlspecialchars_decode($v, ENT_QUOTES));
35 35
                     echo '<p>', sprintf($lang['strconfclustertable'], $misc->printVal($a['table'])), "</p>\n";
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
                 $this->printTrail($type);
41 41
                 $this->printTitle($lang['strclusterindex'], 'pg.index.cluster');
42 42
 
43
-                echo '<form action="'.SUBFOLDER."/src/views/{$script}\" method=\"post\">\n";
43
+                echo '<form action="' . SUBFOLDER . "/src/views/{$script}\" method=\"post\">\n";
44 44
 
45 45
                 if ($type == 'table') {
46 46
                     echo '<p>', sprintf($lang['strconfclustertable'], $misc->printVal($_REQUEST['object'])), "</p>\n";
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
                 $this->printTrail('schema');
119 119
                 $this->printTitle($lang['strreindex'], 'pg.reindex');
120 120
 
121
-                echo '<form action="'.SUBFOLDER."/src/views/{$script}\" method=\"post\">\n";
121
+                echo '<form action="' . SUBFOLDER . "/src/views/{$script}\" method=\"post\">\n";
122 122
                 foreach ($_REQUEST['ma'] as $v) {
123 123
                     $a = unserialize(htmlspecialchars_decode($v, ENT_QUOTES));
124 124
                     echo '<p>', sprintf($lang['strconfreindextable'], $misc->printVal($a['table'])), "</p>\n";
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
                 $this->printTrail($type);
130 130
                 $this->printTitle($lang['strreindex'], 'pg.reindex');
131 131
 
132
-                echo '<form action="'.SUBFOLDER."/src/views/{$script}\" method=\"post\">\n";
132
+                echo '<form action="' . SUBFOLDER . "/src/views/{$script}\" method=\"post\">\n";
133 133
 
134 134
                 if ($type == 'table') {
135 135
                     echo '<p>', sprintf($lang['strconfreindextable'], $misc->printVal($_REQUEST['object'])), "</p>\n";
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
                 $this->printTrail('schema');
204 204
                 $this->printTitle($lang['stranalyze'], 'pg.analyze');
205 205
 
206
-                echo '<form action="'.SUBFOLDER."/src/views/{$script}\" method=\"post\">\n";
206
+                echo '<form action="' . SUBFOLDER . "/src/views/{$script}\" method=\"post\">\n";
207 207
                 foreach ($_REQUEST['ma'] as $v) {
208 208
                     $a = unserialize(htmlspecialchars_decode($v, ENT_QUOTES));
209 209
                     \Kint::dump($a);
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
                 $this->printTrail($type);
216 216
                 $this->printTitle($lang['stranalyze'], 'pg.analyze');
217 217
 
218
-                echo '<form action="'.SUBFOLDER."/src/views/{$script}\" method=\"post\">\n";
218
+                echo '<form action="' . SUBFOLDER . "/src/views/{$script}\" method=\"post\">\n";
219 219
 
220 220
                 if ($type == 'table') {
221 221
                     echo '<p>', sprintf($lang['strconfanalyzetable'], $misc->printVal($_REQUEST['object'])), "</p>\n";
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
                 $this->printTrail('schema');
285 285
                 $this->printTitle($lang['strvacuum'], 'pg.vacuum');
286 286
 
287
-                echo '<form action="'.SUBFOLDER."/src/views/{$script}\" method=\"post\">\n";
287
+                echo '<form action="' . SUBFOLDER . "/src/views/{$script}\" method=\"post\">\n";
288 288
                 foreach ($_REQUEST['ma'] as $v) {
289 289
                     $a = unserialize(htmlspecialchars_decode($v, ENT_QUOTES));
290 290
                     echo '<p>', sprintf($lang['strconfvacuumtable'], $misc->printVal($a['table'])), "</p>\n";
@@ -295,7 +295,7 @@  discard block
 block discarded – undo
295 295
                 $this->printTrail($type);
296 296
                 $this->printTitle($lang['strvacuum'], 'pg.vacuum');
297 297
 
298
-                echo '<form action="'.SUBFOLDER."/src/views/{$script}\" method=\"post\">\n";
298
+                echo '<form action="' . SUBFOLDER . "/src/views/{$script}\" method=\"post\">\n";
299 299
 
300 300
                 if ($type == 'table') {
301 301
                     echo '<p>', sprintf($lang['strconfvacuumtable'], $misc->printVal($_REQUEST['object'])), "</p>\n";
@@ -411,7 +411,7 @@  discard block
 block discarded – undo
411 411
                 $old_val['autovacuum_vacuum_cost_limit'] = '';
412 412
             }
413 413
 
414
-            echo '<form action="'.SUBFOLDER."/src/views/{$script}\" method=\"post\">\n";
414
+            echo '<form action="' . SUBFOLDER . "/src/views/{$script}\" method=\"post\">\n";
415 415
             echo $misc->form;
416 416
             echo "<input type=\"hidden\" name=\"action\" value=\"editautovac\" />\n";
417 417
             echo '<input type="hidden" name="table" value="', htmlspecialchars($_REQUEST['table']), "\" />\n";
@@ -497,7 +497,7 @@  discard block
 block discarded – undo
497 497
             echo "<input type=\"submit\" name=\"yes\" value=\"{$lang['stryes']}\" />\n";
498 498
             echo "</form>\n";
499 499
 
500
-            echo '<form action="'.SUBFOLDER."/src/views/{$script}\" method=\"post\">\n";
500
+            echo '<form action="' . SUBFOLDER . "/src/views/{$script}\" method=\"post\">\n";
501 501
             echo "<input type=\"hidden\" name=\"action\" value=\"admin\" />\n";
502 502
             echo '<input type="hidden" name="table" value="', htmlspecialchars($_REQUEST['table']), "\" />\n";
503 503
             echo $misc->form;
@@ -543,7 +543,7 @@  discard block
 block discarded – undo
543 543
         echo "<table style=\"width: 50%\">\n";
544 544
         echo "<tr>\n";
545 545
         echo '<th class="data">';
546
-        $this->misc->printHelp($lang['strvacuum'], 'pg.admin.vacuum')."</th>\n";
546
+        $this->misc->printHelp($lang['strvacuum'], 'pg.admin.vacuum') . "</th>\n";
547 547
         echo '</th>';
548 548
         echo '<th class="data">';
549 549
         $this->misc->printHelp($lang['stranalyze'], 'pg.admin.analyze');
@@ -561,7 +561,7 @@  discard block
 block discarded – undo
561 561
         // Vacuum
562 562
         echo "<tr class=\"row1\">\n";
563 563
         echo "<td style=\"text-align: center; vertical-align: bottom\">\n";
564
-        echo '<form action="'.SUBFOLDER."/src/views/{$script}\" method=\"post\">\n";
564
+        echo '<form action="' . SUBFOLDER . "/src/views/{$script}\" method=\"post\">\n";
565 565
 
566 566
         echo "<p><input type=\"hidden\" name=\"action\" value=\"confirm_vacuum\" />\n";
567 567
         echo $misc->form;
@@ -575,7 +575,7 @@  discard block
 block discarded – undo
575 575
 
576 576
         // Analyze
577 577
         echo "<td style=\"text-align: center; vertical-align: bottom\">\n";
578
-        echo '<form action="'.SUBFOLDER."/src/views/{$script}\" method=\"post\">\n";
578
+        echo '<form action="' . SUBFOLDER . "/src/views/{$script}\" method=\"post\">\n";
579 579
         echo "<p><input type=\"hidden\" name=\"action\" value=\"confirm_analyze\" />\n";
580 580
         echo $misc->form;
581 581
         if ($type == 'table') {
@@ -590,7 +590,7 @@  discard block
 block discarded – undo
590 590
         if ($data->hasRecluster()) {
591 591
             $disabled = '';
592 592
             echo "<td style=\"text-align: center; vertical-align: bottom\">\n";
593
-            echo '<form action="'.SUBFOLDER."/src/views/{$script}\" method=\"post\">\n";
593
+            echo '<form action="' . SUBFOLDER . "/src/views/{$script}\" method=\"post\">\n";
594 594
             echo $misc->form;
595 595
             if ($type == 'table') {
596 596
                 echo '<input type="hidden" name="table" value="', htmlspecialchars($_REQUEST['object']), "\" />\n";
@@ -608,7 +608,7 @@  discard block
 block discarded – undo
608 608
 
609 609
         // Reindex
610 610
         echo "<td style=\"text-align: center; vertical-align: bottom\">\n";
611
-        echo '<form action="'.SUBFOLDER."/src/views/{$script}\" method=\"post\">\n";
611
+        echo '<form action="' . SUBFOLDER . "/src/views/{$script}\" method=\"post\">\n";
612 612
         echo "<p><input type=\"hidden\" name=\"action\" value=\"confirm_reindex\" />\n";
613 613
         echo $misc->form;
614 614
         if ($type == 'table') {
@@ -633,12 +633,12 @@  discard block
 block discarded – undo
633 633
             }
634 634
 
635 635
             echo "<br /><br /><h2>{$lang['strvacuumpertable']}</h2>";
636
-            echo '<p>'.(($defaults['autovacuum'] == 'on') ? $lang['strturnedon'] : $lang['strturnedoff']).'</p>';
636
+            echo '<p>' . (($defaults['autovacuum'] == 'on') ? $lang['strturnedon'] : $lang['strturnedoff']) . '</p>';
637 637
             echo "<p class=\"message\">{$lang['strnotdefaultinred']}</p>";
638 638
 
639
-            $enlight = function ($f, $p) {
639
+            $enlight = function($f, $p) {
640 640
                 if (isset($f[$p[0]]) and ($f[$p[0]] != $p[1])) {
641
-                    return '<span style="color:#F33;font-weight:bold">'.htmlspecialchars($f[$p[0]]).'</span>';
641
+                    return '<span style="color:#F33;font-weight:bold">' . htmlspecialchars($f[$p[0]]) . '</span>';
642 642
                 }
643 643
 
644 644
                 return htmlspecialchars($p[1]);
@@ -648,13 +648,13 @@  discard block
 block discarded – undo
648 648
                 'namespace'                       => [
649 649
                     'title' => $lang['strschema'],
650 650
                     'field' => Decorator::field('nspname'),
651
-                    'url'   => SUBFOLDER."/redirect/schema?{$misc->href}&amp;",
651
+                    'url'   => SUBFOLDER . "/redirect/schema?{$misc->href}&amp;",
652 652
                     'vars'  => ['schema' => 'nspname'],
653 653
                 ],
654 654
                 'relname'                         => [
655 655
                     'title' => $lang['strtable'],
656 656
                     'field' => Decorator::field('relname'),
657
-                    'url'   => SUBFOLDER."/redirect/table?{$misc->href}&amp;",
657
+                    'url'   => SUBFOLDER . "/redirect/table?{$misc->href}&amp;",
658 658
                     'vars'  => ['table' => 'relname', 'schema' => 'nspname'],
659 659
                 ],
660 660
                 'autovacuum_enabled'              => [
Please login to merge, or discard this patch.
src/controllers/CastsController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
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'];
Please login to merge, or discard this patch.