@@ -30,10 +30,10 @@ |
||
30 | 30 | { |
31 | 31 | // this up() migration is auto-generated, please modify it to your needs |
32 | 32 | $this->addSql( |
33 | - 'CREATE TABLE settings (' . |
|
34 | - 'uuid CHAR(36) NOT NULL COMMENT \'(DC2Type:guid)\', ' . |
|
35 | - 'currency VARCHAR(255) NOT NULL, ' . |
|
36 | - 'locale VARCHAR(255) NOT NULL, PRIMARY KEY(uuid)' . |
|
33 | + 'CREATE TABLE settings ('. |
|
34 | + 'uuid CHAR(36) NOT NULL COMMENT \'(DC2Type:guid)\', '. |
|
35 | + 'currency VARCHAR(255) NOT NULL, '. |
|
36 | + 'locale VARCHAR(255) NOT NULL, PRIMARY KEY(uuid)'. |
|
37 | 37 | ') DEFAULT CHARACTER SET utf8mb4 COLLATE `utf8mb4_unicode_ci` ENGINE = InnoDB' |
38 | 38 | ); |
39 | 39 | } |
@@ -31,14 +31,14 @@ |
||
31 | 31 | ->add('currency', ChoiceType::class, [ |
32 | 32 | 'constraints' => new NotNull(), |
33 | 33 | 'choices' => Currency::CURRENCY, |
34 | - 'choice_label' => function ($choice, $key, $value) { |
|
34 | + 'choice_label' => function($choice, $key, $value) { |
|
35 | 35 | return \ucfirst($value); |
36 | 36 | }, |
37 | 37 | ]) |
38 | 38 | ->add('locale', ChoiceType::class, [ |
39 | 39 | 'constraints' => new NotNull(), |
40 | 40 | 'choices' => Locale::LOCALE, |
41 | - 'choice_label' => function ($choice, $key, $value) { |
|
41 | + 'choice_label' => function($choice, $key, $value) { |
|
42 | 42 | return \strtoupper($value); |
43 | 43 | }, |
44 | 44 | ]) |