@@ -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\Language; |
16 | 14 | use Webcook\Cms\I18nBundle\Form\Type\LanguageType; |
@@ -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; |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | /** |
64 | 64 | * Get whether language is default or not. |
65 | 65 | * |
66 | - * @return String Returns if language is default. |
|
66 | + * @return boolean Returns if language is default. |
|
67 | 67 | */ |
68 | 68 | public function isDefault() |
69 | 69 | { |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | /** |
84 | 84 | * Sets the value of title. |
85 | 85 | * |
86 | - * @param mixed $title the title |
|
86 | + * @param string $title the title |
|
87 | 87 | * |
88 | 88 | * @return self |
89 | 89 | */ |
@@ -10,7 +10,7 @@ |
||
10 | 10 | private $languageRepository; |
11 | 11 | |
12 | 12 | /** |
13 | - * @param EntityManager $entityManager |
|
13 | + * @param ObjectManager $entityManager |
|
14 | 14 | */ |
15 | 15 | public function __construct(ObjectManager $entityManager) |
16 | 16 | { |
@@ -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 | } |