diff options
author | Joas Schilling <coding@schilljs.com> | 2017-07-19 13:23:14 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-07-25 12:49:15 +0200 |
commit | 087138f2280a95ed677be82d1420e32793227cd7 (patch) | |
tree | 8d7386a3d7fd8cdc3899fbef45850404ff5c75a3 /core/Command | |
parent | e023899078d66084feb6982a347c4d28dac09192 (diff) | |
download | nextcloud-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.php | 12 |
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(), |