summaryrefslogtreecommitdiffstats
path: root/core/command/db
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@owncloud.com>2014-04-15 17:21:55 +0200
committerAndreas Fischer <bantu@owncloud.com>2014-04-15 17:21:55 +0200
commit8e758513c8f7a28300d006fd8b46a1bd01264606 (patch)
tree4b25344b2116a5376e6ed58d59659fb001807d0c /core/command/db
parent6b2876c64dece60eaf43558a476dea5008023388 (diff)
downloadnextcloud-server-8e758513c8f7a28300d006fd8b46a1bd01264606.tar.gz
nextcloud-server-8e758513c8f7a28300d006fd8b46a1bd01264606.zip
Remove unnecessary sprintf.
Diffstat (limited to 'core/command/db')
-rw-r--r--core/command/db/converttype.php10
1 files changed, 2 insertions, 8 deletions
diff --git a/core/command/db/converttype.php b/core/command/db/converttype.php
index 1fd546a7a87..3382ebb0179 100644
--- a/core/command/db/converttype.php
+++ b/core/command/db/converttype.php
@@ -111,10 +111,7 @@ class ConvertType extends Command {
protected function validateInput(InputInterface $input, OutputInterface $output) {
$type = $input->getArgument('type');
if ($this->connectionFactory->normalizeType($type) === 'sqlite3') {
- $output->writeln(sprintf(
- '<error>Converting to SQLite (sqlite3) is currently not supported.</error>',
- $type
- ));
+ $output->writeln('<error>Converting to SQLite (sqlite3) is currently not supported.</error>');
return 1;
}
if ($type === $this->config->getValue('dbtype', '')) {
@@ -129,10 +126,7 @@ class ConvertType extends Command {
// to drop sequence triggers when dropping a table, even though
// such triggers may not exist. This results in errors like
// "ORA-04080: trigger 'OC_STORAGES_AI_PK' does not exist".
- $output->writeln(sprintf(
- '<error>The --clear-schema option is not supported when converting to Oracle (oci).</error>',
- $type
- ));
+ $output->writeln('<error>The --clear-schema option is not supported when converting to Oracle (oci).</error>');
return 1;
}
}