@@ -129,6 +129,9 @@ discard block |
||
129 | 129 | $this->runUploadDownloadTest('download'); |
130 | 130 | } |
131 | 131 | |
132 | + /** |
|
133 | + * @param string $commandName |
|
134 | + */ |
|
132 | 135 | public function runUploadDownloadTest($commandName, $args = []) |
133 | 136 | { |
134 | 137 | $kernel = new TestKernel(); |
@@ -216,7 +219,7 @@ discard block |
||
216 | 219 | * |
217 | 220 | * @param array $methods |
218 | 221 | * |
219 | - * @return \PHPUnit_Framework_MockObject_MockObject|OroTranslationPackCommand |
|
222 | + * @return \Symfony\Component\Console\Command\Command |
|
220 | 223 | */ |
221 | 224 | protected function getCommandMock($methods = array('asText')) |
222 | 225 | { |
@@ -227,7 +230,7 @@ discard block |
||
227 | 230 | } |
228 | 231 | |
229 | 232 | /** |
230 | - * @param $class |
|
233 | + * @param string $class |
|
231 | 234 | * |
232 | 235 | * @return \PHPUnit_Framework_MockObject_MockObject |
233 | 236 | */ |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Symfony\Component\Console\Tester\CommandTester; |
6 | 6 | use Symfony\Bundle\FrameworkBundle\Console\Application; |
7 | - |
|
8 | 7 | use Oro\Bundle\TranslationBundle\Tests\Unit\Command\Stubs\TestKernel; |
9 | 8 | use Oro\Bundle\TranslationBundle\Command\OroTranslationPackCommand; |
10 | 9 |
@@ -15,6 +15,10 @@ |
||
15 | 15 | return $someVariable; |
16 | 16 | } |
17 | 17 | |
18 | + /** |
|
19 | + * @param string $arg1 |
|
20 | + * @param string $arg2 |
|
21 | + */ |
|
18 | 22 | protected function someAnotherFunc($arg1, $arg2) |
19 | 23 | { |
20 | 24 | return array($arg1, $arg2); |
@@ -10,11 +10,8 @@ |
||
10 | 10 | use Doctrine\ORM\Query; |
11 | 11 | use Doctrine\Common\Persistence\ManagerRegistry; |
12 | 12 | use Doctrine\ORM\Configuration; |
13 | - |
|
14 | 13 | use Gedmo\Translatable\Query\TreeWalker\TranslationWalker; |
15 | - |
|
16 | 14 | use Symfony\Component\OptionsResolver\OptionsResolver; |
17 | - |
|
18 | 15 | use Oro\Bundle\TranslationBundle\Form\Type\TranslatableEntityType; |
19 | 16 | use Oro\Bundle\TranslationBundle\Tests\Unit\Form\Type\Stub\TestEntity; |
20 | 17 |
@@ -314,7 +314,7 @@ |
||
314 | 314 | } |
315 | 315 | |
316 | 316 | /** |
317 | - * @param array $methods |
|
317 | + * @param string[] $methods |
|
318 | 318 | * @param array $args |
319 | 319 | * |
320 | 320 | * @return \PHPUnit_Framework_MockObject_MockObject|TranslationServiceProvider |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Oro\Bundle\TranslationBundle\Tests\Unit\Provider; |
4 | 4 | |
5 | 5 | use Symfony\Bundle\FrameworkBundle\Translation\TranslationLoader; |
6 | - |
|
7 | 6 | use Oro\Bundle\TranslationBundle\Provider\TranslationServiceProvider; |
8 | 7 | |
9 | 8 | class TranslationServiceTest extends \PHPUnit_Framework_TestCase |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Oro\Bundle\TranslationBundle\Tests\Unit\Provider; |
4 | 4 | |
5 | 5 | use Doctrine\Common\Cache\Cache; |
6 | - |
|
7 | 6 | use Oro\Bundle\TranslationBundle\Provider\OroTranslationAdapter; |
8 | 7 | use Oro\Bundle\TranslationBundle\Provider\PackagesProvider; |
9 | 8 | use Oro\Bundle\TranslationBundle\Provider\TranslationStatisticProvider; |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Doctrine\DBAL\Platforms\MySqlPlatform; |
6 | 6 | use Doctrine\ORM\EntityManager; |
7 | - |
|
8 | 7 | use Oro\Bundle\TranslationBundle\Entity\Translation; |
9 | 8 | use Oro\Bundle\TranslationBundle\Entity\Repository\TranslationRepository; |
10 | 9 |
@@ -153,6 +153,7 @@ |
||
153 | 153 | |
154 | 154 | /** |
155 | 155 | * {@inheritdoc} |
156 | + * @param string $locale |
|
156 | 157 | */ |
157 | 158 | protected function loadCatalogue($locale) |
158 | 159 | { |
@@ -4,10 +4,8 @@ |
||
4 | 4 | |
5 | 5 | use Doctrine\Common\Cache\Cache; |
6 | 6 | use Doctrine\Common\Cache\ClearableCache; |
7 | - |
|
8 | 7 | use Symfony\Component\Translation\Loader\LoaderInterface; |
9 | 8 | use Symfony\Bundle\FrameworkBundle\Translation\Translator as BaseTranslator; |
10 | - |
|
11 | 9 | use Oro\Bundle\EntityBundle\Tools\SafeDatabaseChecker; |
12 | 10 | use Oro\Bundle\TranslationBundle\Entity\Translation; |
13 | 11 |
@@ -5,7 +5,6 @@ |
||
5 | 5 | use Symfony\Component\Config\Definition\Builder\NodeDefinition; |
6 | 6 | use Symfony\Component\Config\Definition\Builder\TreeBuilder; |
7 | 7 | use Symfony\Component\Config\Definition\ConfigurationInterface; |
8 | - |
|
9 | 8 | use Oro\Bundle\ConfigBundle\DependencyInjection\SettingsBuilder; |
10 | 9 | use Oro\Bundle\UIBundle\Tools\ArrayUtils; |
11 | 10 |
@@ -44,7 +44,7 @@ |
||
44 | 44 | } |
45 | 45 | |
46 | 46 | /** |
47 | - * @return int |
|
47 | + * @return string |
|
48 | 48 | */ |
49 | 49 | public function getPageType() |
50 | 50 | { |