@@ -9,8 +9,6 @@ |
||
| 9 | 9 | namespace Webcook\Cms\I18nBundle\Controller; |
| 10 | 10 | |
| 11 | 11 | use Webcook\Cms\CoreBundle\Base\BaseRestController; |
| 12 | -use Symfony\Component\HttpFoundation\Request; |
|
| 13 | -use Symfony\Component\HttpFoundation\Response; |
|
| 14 | 12 | use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; |
| 15 | 13 | use Webcook\Cms\I18nBundle\Entity\Translation; |
| 16 | 14 | use Webcook\Cms\I18nBundle\Form\Type\TranslationType; |
@@ -61,9 +61,9 @@ |
||
| 61 | 61 | { |
| 62 | 62 | $translation = new Translation(); |
| 63 | 63 | $translation->setKey($key) |
| 64 | - ->setLanguage($language) |
|
| 65 | - ->setCatalogue($domain) |
|
| 66 | - ->setTranslation($translationText); |
|
| 64 | + ->setLanguage($language) |
|
| 65 | + ->setCatalogue($domain) |
|
| 66 | + ->setTranslation($translationText); |
|
| 67 | 67 | |
| 68 | 68 | $this->manager->persist($translation); |
| 69 | 69 | } |
@@ -60,8 +60,8 @@ |
||
| 60 | 60 | { |
| 61 | 61 | $language = new Language(); |
| 62 | 62 | $language->setTitle($title) |
| 63 | - ->setLocale($abbr) |
|
| 64 | - ->setDefault($default); |
|
| 63 | + ->setLocale($abbr) |
|
| 64 | + ->setDefault($default); |
|
| 65 | 65 | |
| 66 | 66 | $this->manager->persist($language); |
| 67 | 67 | } |
@@ -9,8 +9,6 @@ |
||
| 9 | 9 | namespace Webcook\Cms\I18nBundle\Controller; |
| 10 | 10 | |
| 11 | 11 | use Webcook\Cms\CoreBundle\Base\BaseRestController; |
| 12 | -use Symfony\Component\HttpFoundation\Request; |
|
| 13 | -use Symfony\Component\HttpFoundation\Response; |
|
| 14 | 12 | use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; |
| 15 | 13 | use Webcook\Cms\I18nBundle\Entity\Translation; |
| 16 | 14 | use Webcook\Cms\I18nBundle\Form\Type\TranslationType; |