Skip to content

Commit

Permalink
Reformat condition, remove unused use
Browse files Browse the repository at this point in the history
Signed-off-by: Maximilian Krög <[email protected]>
  • Loading branch information
MoonE committed Jun 2, 2024
1 parent 4afcea6 commit 177a57d
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions src/Display/Results.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
use PhpMyAdmin\Plugins\Transformations\Text_Plain_Link;
use PhpMyAdmin\Plugins\TransformationsInterface;
use PhpMyAdmin\ResponseRenderer;
use PhpMyAdmin\Sql;
use PhpMyAdmin\SqlParser\Parser;
use PhpMyAdmin\SqlParser\Statements\SelectStatement;
use PhpMyAdmin\SqlParser\Utils\Query;
Expand Down Expand Up @@ -1601,10 +1600,10 @@ private function getColumnAtRightSide(
// Displays the needed checkboxes at the right
// column of the result table header if possible and required...
if (
($this->config->settings['RowActionLinks'] === self::POSITION_RIGHT)
|| ($this->config->settings['RowActionLinks'] === self::POSITION_BOTH)
&& ($displayParts->hasEditLink || $displayParts->deleteLink !== DeleteLinkEnum::NO_DELETE)
&& $displayParts->hasTextButton
$this->config->settings['RowActionLinks'] === self::POSITION_RIGHT
|| $this->config->settings['RowActionLinks'] === self::POSITION_BOTH
&& ($displayParts->hasEditLink || $displayParts->deleteLink !== DeleteLinkEnum::NO_DELETE)
&& $displayParts->hasTextButton
) {
$this->numEmptyColumnsAfter = $displayParts->hasEditLink
&& $displayParts->deleteLink !== DeleteLinkEnum::NO_DELETE ? 4 : 1;
Expand All @@ -1614,11 +1613,11 @@ private function getColumnAtRightSide(
. $fullOrPartialTextLink
. '</th>';
} elseif (
($this->config->settings['RowActionLinks'] === self::POSITION_LEFT)
|| ($this->config->settings['RowActionLinks'] === self::POSITION_BOTH)
&& (! $displayParts->hasEditLink
&& $displayParts->deleteLink === DeleteLinkEnum::NO_DELETE)
&& (! isset($GLOBALS['is_header_sent']) || ! $GLOBALS['is_header_sent'])
$this->config->settings['RowActionLinks'] === self::POSITION_LEFT
|| $this->config->settings['RowActionLinks'] === self::POSITION_BOTH
&& ! $displayParts->hasEditLink
&& $displayParts->deleteLink === DeleteLinkEnum::NO_DELETE
&& (! isset($GLOBALS['is_header_sent']) || ! $GLOBALS['is_header_sent'])
) {
// ... elseif no button, displays empty columns if required
// (unless coming from Browse mode print view)
Expand Down

0 comments on commit 177a57d

Please sign in to comment.