summaryrefslogtreecommitdiffstats
path: root/core/Command
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-07-19 13:23:14 +0200
committerJoas Schilling <coding@schilljs.com>2017-07-25 12:49:15 +0200
commit087138f2280a95ed677be82d1420e32793227cd7 (patch)
tree8d7386a3d7fd8cdc3899fbef45850404ff5c75a3 /core/Command
parente023899078d66084feb6982a347c4d28dac09192 (diff)
downloadnextcloud-server-087138f2280a95ed677be82d1420e32793227cd7.tar.gz
nextcloud-server-087138f2280a95ed677be82d1420e32793227cd7.zip
use template placeholders instead of html
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core/Command')
-rw-r--r--core/Command/Db/Migrations/GenerateCommand.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/core/Command/Db/Migrations/GenerateCommand.php b/core/Command/Db/Migrations/GenerateCommand.php
index f8a992940f9..4db82d6eff4 100644
--- a/core/Command/Db/Migrations/GenerateCommand.php
+++ b/core/Command/Db/Migrations/GenerateCommand.php
@@ -38,7 +38,7 @@ class GenerateCommand extends Command {
protected static $_templateSimple =
'<?php
-namespace <namespace>;
+namespace {{<namespace}};
use Doctrine\DBAL\Schema\Schema;
use OCP\Migration\SimpleMigrationStep;
@@ -47,7 +47,7 @@ use OCP\Migration\IOutput;
/**
* Auto-generated migration step: Please modify to your needs!
*/
-class <classname> extends SimpleMigrationStep {
+class {{classname}} extends SimpleMigrationStep {
/**
* @param IOutput $output
@@ -66,7 +66,7 @@ class <classname> extends SimpleMigrationStep {
* @since 13.0.0
*/
public function changeSchema(IOutput $output, \Closure $schemaClosure, array $options) {
-<schemabody>
+{{schemabody}}
}
/**
@@ -133,9 +133,9 @@ class <classname> extends SimpleMigrationStep {
$placeHolders = [
- '<namespace>',
- '<classname>',
- '<schemabody>',
+ '{{namespace}}',
+ '{{classname}}',
+ '{{schemabody}}',
];
$replacements = [
$ms->getMigrationsNamespace(),