Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/HuasoFoundries/phpPgAdmin6.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFelipe Figueroa <amenadiel@gmail.com>2018-03-24 02:28:12 +0300
committerStyleCI Bot <bot@styleci.io>2018-03-24 02:28:12 +0300
commit827b99bc1efa00fb48e83ff9fd3354cc7c30631d (patch)
treef6af457e4603c9849849095bd9ffa67381d21256 /src
parentb90291f9ed323ebc1a23874f25735fe660dd2a83 (diff)
Apply fixes from StyleCI
[ci skip] [skip ci]
Diffstat (limited to 'src')
-rw-r--r--src/controllers/SchemasController.php1
-rw-r--r--src/controllers/SqleditController.php1
-rw-r--r--src/decorators/Decorator.php2
-rw-r--r--src/xhtml/TreeController.php6
4 files changed, 2 insertions, 8 deletions
diff --git a/src/controllers/SchemasController.php b/src/controllers/SchemasController.php
index b3bcb61a..631c16cc 100644
--- a/src/controllers/SchemasController.php
+++ b/src/controllers/SchemasController.php
@@ -228,7 +228,6 @@ class SchemasController extends BaseController
public function doSubTree()
{
-
$tabs = $this->misc->getNavTabs('schema');
$items = $this->adjustTabsForTree($tabs);
diff --git a/src/controllers/SqleditController.php b/src/controllers/SqleditController.php
index 8795aece..7bb9068d 100644
--- a/src/controllers/SqleditController.php
+++ b/src/controllers/SqleditController.php
@@ -141,7 +141,6 @@ class SqleditController extends BaseController
public function doTree()
{
-
$treedata = new \PHPPgAdmin\ArrayRecordSet([]);
$reqvars = [];
diff --git a/src/decorators/Decorator.php b/src/decorators/Decorator.php
index 9aa61f2e..8c644893 100644
--- a/src/decorators/Decorator.php
+++ b/src/decorators/Decorator.php
@@ -79,7 +79,7 @@ class Decorator
return self::get_sanitized_value($var, $fields, 'url');
}
- public static function concat( /* ... */)
+ public static function concat(/* ... */)
{
return new \PHPPgAdmin\Decorators\ConcatDecorator(func_get_args());
}
diff --git a/src/xhtml/TreeController.php b/src/xhtml/TreeController.php
index 6ff30ce0..f19bb4c5 100644
--- a/src/xhtml/TreeController.php
+++ b/src/xhtml/TreeController.php
@@ -132,7 +132,6 @@ class TreeController
$tree_xml .= $tooltip_xml;
$tree_xml .= '</tree>';
-
}
} else {
$msg = isset($attrs['nodata']) ? $attrs['nodata'] : $lang['strnoobjects'];
@@ -141,7 +140,6 @@ class TreeController
$tree_xml .= '</tree>';
if (true === $print) {
-
if (null === $this->container->requestobj->getAttribute('route')) {
header('Content-Type: text/xml; charset=UTF-8');
header('Cache-Control: no-cache');
@@ -188,7 +186,7 @@ class TreeController
'url' => str_replace('//', '/', \SUBFOLDER . '/src/views/servers?action=tree'),
'text' => '<a href="' . str_replace('//', '/', \SUBFOLDER . '/src/views/servers') . '" target="detail">Servers</a>',
];
- } else if (count($treedata) > 0) {
+ } elseif (count($treedata) > 0) {
foreach ($treedata as $rec) {
$icon = $this->misc->icon(Decorator::get_sanitized_value($attrs['icon'], $rec));
if (!empty($attrs['openicon'])) {
@@ -211,7 +209,6 @@ class TreeController
if ($url) {
$tree['url'] = $url;
$tree['children'] = true;
-
}
$tree['text'] = '<a href="' . $tree['id'] . '" target="detail">' . $tree['text'] . '</a>';
@@ -223,7 +220,6 @@ class TreeController
}
if (true === $print) {
-
if (null === $this->container->requestobj->getAttribute('route')) {
header('Content-Type: text/xml; charset=UTF-8');
header('Cache-Control: no-cache');