Completed
Branch master (7344c2)
by Tomáš
17:13
created
src/Webcook/Cms/I18nBundle/Controller/LanguageController.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -9,8 +9,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Webcook/Cms/I18nBundle/Controller/TranslationController.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -9,8 +9,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Webcook/Cms/I18nBundle/Entity/Language.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
src/Webcook/Cms/I18nBundle/Loader/DBLoader.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
src/Webcook/Cms/I18nBundle/DataFixtures/ORM/LoadTranslationData.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -61,9 +61,9 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Webcook/Cms/I18nBundle/DataFixtures/ORM/LoadLanguageData.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,8 +60,8 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.