@@ -56,7 +56,7 @@ |
||
56 | 56 | } |
57 | 57 | |
58 | 58 | /** |
59 | - * @return OptionsResolver|\PHPUnit_Framework_MockObject_MockObject |
|
59 | + * @return OptionsResolver |
|
60 | 60 | */ |
61 | 61 | protected function createMockOptionsResolver() |
62 | 62 | { |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Oro\Component\PropertyAccess\Tests\Unit; |
4 | 4 | |
5 | 5 | use Symfony\Component\PropertyAccess\Exception\NoSuchPropertyException; |
6 | - |
|
7 | 6 | use Oro\Component\PropertyAccess\PropertyAccessor; |
8 | 7 | use Oro\Component\PropertyAccess\Tests\Unit\Fixtures\TestClass; |
9 | 8 | use Oro\Component\PropertyAccess\Tests\Unit\Fixtures\TestClassMagicCall; |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | protected $subBlocks = array(); |
43 | 43 | |
44 | 44 | /** |
45 | - * @param $code |
|
45 | + * @param string $code |
|
46 | 46 | */ |
47 | 47 | public function __construct($code) |
48 | 48 | { |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | } |
70 | 70 | |
71 | 71 | /** |
72 | - * @param $code |
|
72 | + * @param string $code |
|
73 | 73 | * @return $this |
74 | 74 | */ |
75 | 75 | public function setCode($code) |
@@ -145,7 +145,7 @@ |
||
145 | 145 | * Gets constraint name based on object |
146 | 146 | * |
147 | 147 | * @param Constraint $constraint |
148 | - * @return mixed|string |
|
148 | + * @return string |
|
149 | 149 | */ |
150 | 150 | protected function getConstraintName(Constraint $constraint) |
151 | 151 | { |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Oro\Component\PropertyAccess\Tests\Unit; |
4 | 4 | |
5 | 5 | use Symfony\Component\PropertyAccess\Exception\NoSuchPropertyException; |
6 | - |
|
7 | 6 | use Oro\Component\PropertyAccess\PropertyAccessor; |
8 | 7 | use Oro\Component\PropertyAccess\Tests\Unit\Fixtures\TestClass; |
9 | 8 | use Oro\Component\PropertyAccess\Tests\Unit\Fixtures\TestClassMagicCall; |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | * |
19 | 19 | * @param Collection $object object to normalize |
20 | 20 | * @param mixed $format |
21 | - * @param array $context |
|
21 | + * @param string[] $context |
|
22 | 22 | * @return array |
23 | 23 | */ |
24 | 24 | public function normalize($object, $format = null, array $context = array()) |
@@ -41,10 +41,10 @@ discard block |
||
41 | 41 | /** |
42 | 42 | * Denormalizes and sets primary to first element |
43 | 43 | * |
44 | - * @param mixed $data |
|
44 | + * @param string[] $data |
|
45 | 45 | * @param string $class |
46 | 46 | * @param null $format |
47 | - * @param array $context |
|
47 | + * @param string[] $context |
|
48 | 48 | * @return ArrayCollection |
49 | 49 | */ |
50 | 50 | public function denormalize($data, $class, $format = null, array $context = array()) |
@@ -4,9 +4,7 @@ |
||
4 | 4 | |
5 | 5 | use Doctrine\Common\EventManager; |
6 | 6 | use Doctrine\DBAL\Driver\Connection; |
7 | - |
|
8 | 7 | use Symfony\Component\Filesystem\Filesystem; |
9 | - |
|
10 | 8 | use Oro\Component\TestUtils\ORM\Mocks\DriverMock; |
11 | 9 | use Oro\Component\TestUtils\ORM\Mocks\EntityManagerMock; |
12 | 10 |
@@ -63,7 +63,7 @@ |
||
63 | 63 | } |
64 | 64 | |
65 | 65 | /** |
66 | - * @param object $entity |
|
66 | + * @param \stdClass $entity |
|
67 | 67 | * @param FormInterface $form |
68 | 68 | * @param array|callable $saveAndStayRoute |
69 | 69 | * @param array|callable $saveAndCloseRoute |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Oro\Component\PropertyAccess\Tests\Unit; |
4 | 4 | |
5 | 5 | use Symfony\Component\PropertyAccess\Exception\NoSuchPropertyException; |
6 | - |
|
7 | 6 | use Oro\Component\PropertyAccess\PropertyAccessor; |
8 | 7 | use Oro\Component\PropertyAccess\Tests\Unit\Fixtures\TestClass; |
9 | 8 | use Oro\Component\PropertyAccess\Tests\Unit\Fixtures\TestClassMagicCall; |
@@ -407,7 +407,7 @@ |
||
407 | 407 | } |
408 | 408 | |
409 | 409 | /** |
410 | - * @param array $ids |
|
410 | + * @param integer[] $ids |
|
411 | 411 | * @return Item[] |
412 | 412 | */ |
413 | 413 | public function createMockSearchItems(array $ids) |
@@ -4,9 +4,7 @@ |
||
4 | 4 | |
5 | 5 | use Doctrine\Common\EventManager; |
6 | 6 | use Doctrine\DBAL\Driver\Connection; |
7 | - |
|
8 | 7 | use Symfony\Component\Filesystem\Filesystem; |
9 | - |
|
10 | 8 | use Oro\Component\TestUtils\ORM\Mocks\DriverMock; |
11 | 9 | use Oro\Component\TestUtils\ORM\Mocks\EntityManagerMock; |
12 | 10 |
@@ -283,7 +283,7 @@ discard block |
||
283 | 283 | } |
284 | 284 | |
285 | 285 | /** |
286 | - * @return EntityManager|\PHPUnit_Framework_MockObject_MockObject |
|
286 | + * @return EntityManager |
|
287 | 287 | */ |
288 | 288 | protected function getMockEntityManager() |
289 | 289 | { |
@@ -301,7 +301,7 @@ discard block |
||
301 | 301 | * Create mock entity by id property name and value |
302 | 302 | * |
303 | 303 | * @param string $property |
304 | - * @param mixed $value |
|
304 | + * @param integer $value |
|
305 | 305 | * @return \PHPUnit_Framework_MockObject_MockObject |
306 | 306 | */ |
307 | 307 | private function createMockEntity($property, $value) |
@@ -349,7 +349,7 @@ discard block |
||
349 | 349 | * Create list of mocked entities by id property name and values |
350 | 350 | * |
351 | 351 | * @param string $property |
352 | - * @param array $values |
|
352 | + * @param integer[] $values |
|
353 | 353 | * @return \PHPUnit_Framework_MockObject_MockObject[] |
354 | 354 | */ |
355 | 355 | private function createMockEntityList($property, array $values) |
@@ -407,7 +407,7 @@ discard block |
||
407 | 407 | } |
408 | 408 | |
409 | 409 | /** |
410 | - * @return ManagerRegistry|\PHPUnit_Framework_MockObject_MockObject |
|
410 | + * @return ManagerRegistry |
|
411 | 411 | */ |
412 | 412 | protected function getMockManagerRegistry() |
413 | 413 | { |
@@ -3,14 +3,8 @@ |
||
3 | 3 | namespace Oro\Bundle\FormBundle\Tests\Unit\Form\Type; |
4 | 4 | |
5 | 5 | use Doctrine\Common\Persistence\ManagerRegistry; |
6 | -use Doctrine\ORM\Mapping\ClassMetadata; |
|
7 | 6 | use Doctrine\ORM\EntityManager; |
8 | -use Doctrine\ORM\EntityRepository; |
|
9 | -use Doctrine\ORM\QueryBuilder; |
|
10 | -use Doctrine\ORM\AbstractQuery; |
|
11 | - |
|
12 | 7 | use Symfony\Component\Form\Test\FormIntegrationTestCase; |
13 | - |
|
14 | 8 | use Oro\Bundle\FormBundle\Form\DataTransformer\EntitiesToIdsTransformer; |
15 | 9 | use Oro\Bundle\FormBundle\Form\Type\EntityIdentifierType; |
16 | 10 |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Oro\Bundle\FormBundle\Tests\Unit\Form\Type; |
4 | 4 | |
5 | 5 | use Oro\Bundle\FormBundle\Form\Type\OroDateTimeType; |
6 | -use Oro\Bundle\FormBundle\Form\Type\OroDateType; |
|
7 | 6 | use Symfony\Component\Form\Extension\Core\Type\DateTimeType; |
8 | 7 | use Symfony\Component\Form\FormView; |
9 | 8 | use Symfony\Component\Form\Test\TypeTestCase; |