diff options
author | Felipe Figueroa <amenadiel@gmail.com> | 2018-02-15 22:43:34 +0300 |
---|---|---|
committer | Felipe Figueroa <amenadiel@gmail.com> | 2018-02-15 22:43:34 +0300 |
commit | bd98efb04690870bc69146f666d3c252004a2154 (patch) | |
tree | 000b26b2443d4b8962abe7c9be4a5eb0154374e0 /src/controllers/TablespacesController.php | |
parent | 5739f96c854c62782d60198071c6be2f55ccab75 (diff) |
remove unused assignments to variable
Diffstat (limited to 'src/controllers/TablespacesController.php')
-rw-r--r-- | src/controllers/TablespacesController.php | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/src/controllers/TablespacesController.php b/src/controllers/TablespacesController.php index d018f3bf..106ba791 100644 --- a/src/controllers/TablespacesController.php +++ b/src/controllers/TablespacesController.php @@ -18,7 +18,6 @@ class TablespacesController extends BaseController */ public function render() { - $conf = $this->conf; $lang = $this->lang; $data = $this->misc->getDatabaseAccessor(); @@ -80,7 +79,6 @@ class TablespacesController extends BaseController */ public function doDefault($msg = '') { - $conf = $this->conf; $lang = $this->lang; $data = $this->misc->getDatabaseAccessor(); @@ -96,7 +94,7 @@ class TablespacesController extends BaseController 'title' => $lang['strname'], 'field' => \PHPPgAdmin\Decorators\Decorator::field('spcname'), ], - 'owner' => [ + 'owner' => [ 'title' => $lang['strowner'], 'field' => \PHPPgAdmin\Decorators\Decorator::field('spcowner'), ], @@ -104,7 +102,7 @@ class TablespacesController extends BaseController 'title' => $lang['strlocation'], 'field' => \PHPPgAdmin\Decorators\Decorator::field('spclocation'), ], - 'actions' => [ + 'actions' => [ 'title' => $lang['stractions'], ], ]; @@ -117,7 +115,7 @@ class TablespacesController extends BaseController } $actions = [ - 'alter' => [ + 'alter' => [ 'content' => $lang['stralter'], 'attr' => [ 'href' => [ @@ -129,7 +127,7 @@ class TablespacesController extends BaseController ], ], ], - 'drop' => [ + 'drop' => [ 'content' => $lang['strdrop'], 'attr' => [ 'href' => [ @@ -158,7 +156,7 @@ class TablespacesController extends BaseController echo $this->printTable($tablespaces, $columns, $actions, 'tablespaces-tablespaces', $lang['strnotablespaces']); $this->printNavLinks(['create' => [ - 'attr' => [ + 'attr' => [ 'href' => [ 'url' => 'tablespaces.php', 'urlvars' => [ @@ -178,7 +176,6 @@ class TablespacesController extends BaseController */ public function doAlter($msg = '') { - $conf = $this->conf; $lang = $this->lang; $data = $this->misc->getDatabaseAccessor(); @@ -205,7 +202,7 @@ class TablespacesController extends BaseController $_POST['comment'] = ($data->hasSharedComments()) ? $tablespace->fields['spccomment'] : ''; } - echo '<form action="'.\SUBFOLDER."/src/views/tablespaces.php\" method=\"post\">\n"; + echo '<form action="' . \SUBFOLDER . "/src/views/tablespaces.php\" method=\"post\">\n"; echo $this->misc->form; echo "<table>\n"; echo "<tr><th class=\"data left required\">{$lang['strname']}</th>\n"; @@ -243,7 +240,6 @@ class TablespacesController extends BaseController */ public function doSaveAlter() { - $conf = $this->conf; $lang = $this->lang; $data = $this->misc->getDatabaseAccessor(); @@ -273,7 +269,6 @@ class TablespacesController extends BaseController */ public function doDrop($confirm) { - $conf = $this->conf; $lang = $this->lang; $data = $this->misc->getDatabaseAccessor(); @@ -284,7 +279,7 @@ class TablespacesController extends BaseController echo '<p>', sprintf($lang['strconfdroptablespace'], $this->misc->printVal($_REQUEST['tablespace'])), "</p>\n"; - echo '<form action="'.\SUBFOLDER."/src/views/tablespaces.php\" method=\"post\">\n"; + echo '<form action="' . \SUBFOLDER . "/src/views/tablespaces.php\" method=\"post\">\n"; echo $this->misc->form; echo "<input type=\"hidden\" name=\"action\" value=\"drop\" />\n"; echo '<input type="hidden" name="tablespace" value="', htmlspecialchars($_REQUEST['tablespace']), "\" />\n"; @@ -308,7 +303,6 @@ class TablespacesController extends BaseController */ public function doCreate($msg = '') { - $conf = $this->conf; $lang = $this->lang; $data = $this->misc->getDatabaseAccessor(); @@ -338,7 +332,7 @@ class TablespacesController extends BaseController $this->printTitle($lang['strcreatetablespace'], 'pg.tablespace.create'); $this->printMsg($msg); - echo '<form action="'.\SUBFOLDER."/src/views/tablespaces.php\" method=\"post\">\n"; + echo '<form action="' . \SUBFOLDER . "/src/views/tablespaces.php\" method=\"post\">\n"; echo $this->misc->form; echo "<table>\n"; echo "\t<tr>\n\t\t<th class=\"data left required\">{$lang['strname']}</th>\n"; @@ -372,7 +366,6 @@ class TablespacesController extends BaseController */ public function doSaveCreate() { - $conf = $this->conf; $lang = $this->lang; $data = $this->misc->getDatabaseAccessor(); |