Completed
Push — master ( 2177e8...5b06fe )
by Felipe
12s
created
src/controllers/ServersController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@
 block discarded – undo
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
         };
Please login to merge, or discard this patch.
src/controllers/TypesController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -248,7 +248,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/xhtml/HTMLNavbarController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/xhtml/XHtmlSelect.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
     public function fetch()
40 40
     {
41 41
         if (isset($this->_data) && $this->_data) {
42
-            foreach ($this->_data as $value) {$this->add(new XHtmlOption($value));}
42
+            foreach ($this->_data as $value) {$this->add(new XHtmlOption($value)); }
43 43
         }
44 44
         return parent::fetch();
45 45
     }
Please login to merge, or discard this patch.
src/xhtml/HTMLController.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -170,9 +170,11 @@
 block discarded – undo
170 170
     public static function printCombo(&$arrOptions, $szName, $bBlankEntry = true, $szDefault = '', $bMultiple = false, $iSize = 10)
171 171
     {
172 172
         $htmlOut = '';
173
-        if ($bMultiple) // If multiple select combo
173
+        if ($bMultiple) {
174
+            // If multiple select combo
174 175
         {
175 176
             $htmlOut .= "<select rel=\"printCombo\" name=\"$szName\" id=\"$szName\" multiple=\"multiple\" size=\"$iSize\">" . "\n";
177
+        }
176 178
         } else {
177 179
             $htmlOut .= "<select rel=\"printCombo\" class=\"select2\" name=\"$szName\" id=\"$szName\">" . "\n";
178 180
         }
Please login to merge, or discard this patch.
src/lib.inc.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -104,12 +104,12 @@  discard block
 block discarded – undo
104 104
 $container['requestobj']  = $container['request'];
105 105
 $container['responseobj'] = $container['response'];
106 106
 
107
-$container['utils'] = function ($c) {
107
+$container['utils'] = function($c) {
108 108
     $utils = new \PHPPgAdmin\ContainerUtils($c);
109 109
     return $utils;
110 110
 };
111 111
 
112
-$container['conf'] = function ($c) use ($conf) {
112
+$container['conf'] = function($c) use ($conf) {
113 113
 
114 114
     //\Kint::dump($conf);
115 115
     // Plugins are removed
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
     return $conf;
119 119
 };
120 120
 
121
-$container['lang'] = function ($c) {
121
+$container['lang'] = function($c) {
122 122
     include_once BASE_PATH . '/src/translations.php';
123 123
 
124 124
     $c['appLangFiles'] = $appLangFiles;
@@ -128,12 +128,12 @@  discard block
 block discarded – undo
128 128
     return $lang;
129 129
 };
130 130
 
131
-$container['plugin_manager'] = function ($c) {
131
+$container['plugin_manager'] = function($c) {
132 132
     $plugin_manager = new \PHPPgAdmin\PluginManager($c);
133 133
     return $plugin_manager;
134 134
 };
135 135
 
136
-$container['serializer'] = function ($c) {
136
+$container['serializer'] = function($c) {
137 137
     $serializerbuilder = \JMS\Serializer\SerializerBuilder::create();
138 138
     $serializer        = $serializerbuilder
139 139
         ->setCacheDir(BASE_PATH . '/temp/jms')
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
 };
144 144
 
145 145
 // Create Misc class references
146
-$container['misc'] = function ($c) {
146
+$container['misc'] = function($c) {
147 147
 
148 148
     $misc = new \PHPPgAdmin\Misc($c);
149 149
 
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
 };
247 247
 
248 248
 // Register Twig View helper
249
-$container['view'] = function ($c) {
249
+$container['view'] = function($c) {
250 250
 
251 251
     $conf = $c->get('conf');
252 252
     $misc = $c->misc;
@@ -283,8 +283,8 @@  discard block
 block discarded – undo
283 283
     return $view;
284 284
 };
285 285
 
286
-$container['haltHandler'] = function ($c) {
287
-    return function ($request, $response, $exits, $status = 500) use ($c) {
286
+$container['haltHandler'] = function($c) {
287
+    return function($request, $response, $exits, $status = 500) use ($c) {
288 288
 
289 289
         $title = 'PHPPgAdmin Error';
290 290
 
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
 
316 316
 // Set the requestobj and responseobj properties of the container
317 317
 // as the value of $request and $response, which already contain the route
318
-$app->add(function ($request, $response, $next) {
318
+$app->add(function($request, $response, $next) {
319 319
 
320 320
     $this['requestobj']  = $request;
321 321
     $this['responseobj'] = $response;
Please login to merge, or discard this patch.
src/controllers/ColpropertiesController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/controllers/ViewpropertiesController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/database/Postgres81.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -212,7 +212,7 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.