diff options
author | Felipe Figueroa <amenadiel@gmail.com> | 2018-02-15 18:24:34 +0300 |
---|---|---|
committer | Felipe Figueroa <amenadiel@gmail.com> | 2018-02-15 18:24:34 +0300 |
commit | d62dd08ea5f4095cc59bd2c8c895160824f6fcd9 (patch) | |
tree | e0fc386737f6ddc64acb8d028ab72f6d379edc0d /src/controllers/InfoController.php | |
parent | 86de65b82a346ace16018f39866e5ed3996dacd1 (diff) |
applies cs-fixer
Diffstat (limited to 'src/controllers/InfoController.php')
-rw-r--r-- | src/controllers/InfoController.php | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/src/controllers/InfoController.php b/src/controllers/InfoController.php index d30d33ae..93a94e00 100644 --- a/src/controllers/InfoController.php +++ b/src/controllers/InfoController.php @@ -1,5 +1,9 @@ <?php +/* + * PHPPgAdmin v6.0.0-beta.30 + */ + namespace PHPPgAdmin\Controller; use PHPPgAdmin\Decorators\Decorator; @@ -25,6 +29,7 @@ class InfoController extends BaseController switch ($action) { default: $this->doDefault(); + break; } @@ -61,10 +66,10 @@ class InfoController extends BaseController $indexstatsio = $data->getStatsIndexIO($_REQUEST['table']); // Check that there is some info - if (($referrers === -99 || ($referrers !== -99 && $referrers->recordCount() == 0)) - && $parents->recordCount() == 0 && $children->recordCount() == 0 - && ($tablestatstups->recordCount() == 0 && $tablestatsio->recordCount() == 0 - && $indexstatstups->recordCount() == 0 && $indexstatsio->recordCount() == 0)) { + if (($referrers === -99 || ($referrers !== -99 && 0 == $referrers->recordCount())) + && 0 == $parents->recordCount() && 0 == $children->recordCount() + && (0 == $tablestatstups->recordCount() && 0 == $tablestatsio->recordCount() + && 0 == $indexstatstups->recordCount() && 0 == $indexstatsio->recordCount())) { $this->printMsg($lang['strnoinfo']); } else { // Referring foreign tables @@ -205,7 +210,7 @@ class InfoController extends BaseController $i = 0; while (!$tablestatstups->EOF) { - $id = (($i % 2) == 0 ? '1' : '2'); + $id = (0 == ($i % 2) ? '1' : '2'); echo "\t<tr class=\"data{$id}\">\n"; echo "\t\t<td>", $this->misc->printVal($tablestatstups->fields['seq_scan'], 'int4', $shownull), "</td>\n"; echo "\t\t<td>", $this->misc->printVal($tablestatstups->fields['seq_tup_read'], 'int4', $shownull), "</td>\n"; @@ -250,7 +255,7 @@ class InfoController extends BaseController $i = 0; while (!$tablestatsio->EOF) { - $id = (($i % 2) == 0 ? '1' : '2'); + $id = (0 == ($i % 2) ? '1' : '2'); echo "\t<tr class=\"data{$id}\">\n"; $total = $tablestatsio->fields['heap_blks_hit'] + $tablestatsio->fields['heap_blks_read']; @@ -318,7 +323,7 @@ class InfoController extends BaseController $i = 0; while (!$indexstatstups->EOF) { - $id = (($i % 2) == 0 ? '1' : '2'); + $id = (0 == ($i % 2) ? '1' : '2'); echo "\t<tr class=\"data{$id}\">\n"; echo "\t\t<td>", $this->misc->printVal($indexstatstups->fields['indexrelname']), "</td>\n"; echo "\t\t<td>", $this->misc->printVal($indexstatstups->fields['idx_scan'], 'int4', $shownull), "</td>\n"; @@ -346,7 +351,7 @@ class InfoController extends BaseController $i = 0; while (!$indexstatsio->EOF) { - $id = (($i % 2) == 0 ? '1' : '2'); + $id = (0 == ($i % 2) ? '1' : '2'); echo "\t<tr class=\"data{$id}\">\n"; $total = $indexstatsio->fields['idx_blks_hit'] + $indexstatsio->fields['idx_blks_read']; if ($total > 0) { |