diff options
author | Maurício Meneghini Fauth <mauricio@fauth.dev> | 2021-09-15 20:22:39 +0300 |
---|---|---|
committer | Maurício Meneghini Fauth <mauricio@fauth.dev> | 2021-09-15 23:05:40 +0300 |
commit | f00d70cccb65b01504afc8c1a1a2ce8042f4c3fe (patch) | |
tree | d425a6c17c523a7580617b696cc8c861927bc14d /libraries/classes/Export | |
parent | 70c43a98633dc475834a0a8d008d96e846dd2ec3 (diff) |
Remove useless whitespaces
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
Diffstat (limited to 'libraries/classes/Export')
-rw-r--r-- | libraries/classes/Export/Options.php | 22 | ||||
-rw-r--r-- | libraries/classes/Export/TemplateModel.php | 35 |
2 files changed, 9 insertions, 48 deletions
diff --git a/libraries/classes/Export/Options.php b/libraries/classes/Export/Options.php index 2a103dfbbf..bbcb81be40 100644 --- a/libraries/classes/Export/Options.php +++ b/libraries/classes/Export/Options.php @@ -78,12 +78,7 @@ final class Options $isSelected = true; } } elseif (! empty($tmpSelect)) { - if ( - mb_strpos( - ' ' . $tmpSelect, - '|' . $currentDb . '|' - ) - ) { + if (mb_strpos(' ' . $tmpSelect, '|' . $currentDb . '|')) { $isSelected = true; } } else { @@ -229,22 +224,13 @@ final class Options } if ($exportType === 'database') { - return (string) $config->getUserValue( - 'pma_db_filename_template', - $cfg['Export']['file_template_database'] - ); + return (string) $config->getUserValue('pma_db_filename_template', $cfg['Export']['file_template_database']); } if ($exportType === 'table') { - return (string) $config->getUserValue( - 'pma_table_filename_template', - $cfg['Export']['file_template_table'] - ); + return (string) $config->getUserValue('pma_table_filename_template', $cfg['Export']['file_template_table']); } - return (string) $config->getUserValue( - 'pma_server_filename_template', - $cfg['Export']['file_template_server'] - ); + return (string) $config->getUserValue('pma_server_filename_template', $cfg['Export']['file_template_server']); } } diff --git a/libraries/classes/Export/TemplateModel.php b/libraries/classes/Export/TemplateModel.php index c00bed69f2..75fc729fd0 100644 --- a/libraries/classes/Export/TemplateModel.php +++ b/libraries/classes/Export/TemplateModel.php @@ -32,12 +32,7 @@ final class TemplateModel $this->dbi->escapeString($template->getName()), $this->dbi->escapeString($template->getData()) ); - $result = $this->dbi->tryQuery( - $query, - DatabaseInterface::CONNECT_CONTROL, - 0, - false - ); + $result = $this->dbi->tryQuery($query, DatabaseInterface::CONNECT_CONTROL, 0, false); if ($result === false) { return $this->dbi->getError(DatabaseInterface::CONNECT_CONTROL); @@ -56,12 +51,7 @@ final class TemplateModel $id, $this->dbi->escapeString($user) ); - $result = $this->dbi->tryQuery( - $query, - DatabaseInterface::CONNECT_CONTROL, - 0, - false - ); + $result = $this->dbi->tryQuery($query, DatabaseInterface::CONNECT_CONTROL, 0, false); if ($result === false) { return $this->dbi->getError(DatabaseInterface::CONNECT_CONTROL); @@ -80,12 +70,7 @@ final class TemplateModel $id, $this->dbi->escapeString($user) ); - $result = $this->dbi->tryQuery( - $query, - DatabaseInterface::CONNECT_CONTROL, - 0, - false - ); + $result = $this->dbi->tryQuery($query, DatabaseInterface::CONNECT_CONTROL, 0, false); if ($result === false) { return $this->dbi->getError(DatabaseInterface::CONNECT_CONTROL); @@ -118,12 +103,7 @@ final class TemplateModel $template->getId(), $this->dbi->escapeString($template->getUsername()) ); - $result = $this->dbi->tryQuery( - $query, - DatabaseInterface::CONNECT_CONTROL, - 0, - false - ); + $result = $this->dbi->tryQuery($query, DatabaseInterface::CONNECT_CONTROL, 0, false); if ($result === false) { return $this->dbi->getError(DatabaseInterface::CONNECT_CONTROL); @@ -142,12 +122,7 @@ final class TemplateModel $this->dbi->escapeString($user), $this->dbi->escapeString($exportType) ); - $result = $this->dbi->tryQuery( - $query, - DatabaseInterface::CONNECT_CONTROL, - 0, - false - ); + $result = $this->dbi->tryQuery($query, DatabaseInterface::CONNECT_CONTROL, 0, false); if ($result === false) { return $this->dbi->getError(DatabaseInterface::CONNECT_CONTROL); |