@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | } |
143 | 143 | |
144 | 144 | /** |
145 | - * @param object $entity |
|
145 | + * @param \stdClass $entity |
|
146 | 146 | * @return object |
147 | 147 | */ |
148 | 148 | public function getEntityReference($entity) |
@@ -287,7 +287,7 @@ discard block |
||
287 | 287 | /** |
288 | 288 | * We should limit data with current organization |
289 | 289 | * |
290 | - * @param $entityName |
|
290 | + * @param string $entityName |
|
291 | 291 | * @return bool |
292 | 292 | */ |
293 | 293 | protected function shouldBeAddedOrganizationLimits($entityName) |
@@ -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; |
@@ -96,6 +96,9 @@ |
||
96 | 96 | |
97 | 97 | /** |
98 | 98 | * {@inheritdoc} |
99 | + * @param integer $dateType |
|
100 | + * @param integer $timeType |
|
101 | + * @param string $locale |
|
99 | 102 | */ |
100 | 103 | public function getPattern($dateType, $timeType, $locale = null) |
101 | 104 | { |
@@ -132,10 +132,10 @@ |
||
132 | 132 | } |
133 | 133 | |
134 | 134 | /** |
135 | - * @param $jobName |
|
136 | - * @param $processorAlias |
|
137 | - * @param $inputFormat |
|
138 | - * @param $inputFilePrefix |
|
135 | + * @param string $jobName |
|
136 | + * @param string $processorAlias |
|
137 | + * @param string $inputFormat |
|
138 | + * @param string $inputFilePrefix |
|
139 | 139 | * @param array $options |
140 | 140 | * @param $entityName |
141 | 141 | * @return JobResult |
@@ -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; |
@@ -148,7 +148,7 @@ |
||
148 | 148 | /** |
149 | 149 | * Handles download export file action |
150 | 150 | * |
151 | - * @param $fileName |
|
151 | + * @param string $fileName |
|
152 | 152 | * @return Response |
153 | 153 | */ |
154 | 154 | public function handleDownloadExportResult($fileName) |
@@ -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; |
@@ -16,6 +16,9 @@ |
||
16 | 16 | */ |
17 | 17 | protected $defaultMode = null; |
18 | 18 | |
19 | + /** |
|
20 | + * @param string $defaultMode |
|
21 | + */ |
|
19 | 22 | public function __construct(array $availableModes, $defaultMode = null) |
20 | 23 | { |
21 | 24 | $this->setAvailableModes($availableModes); |
@@ -39,7 +39,7 @@ |
||
39 | 39 | * |
40 | 40 | * @param Collection $object object to normalize |
41 | 41 | * @param mixed $format |
42 | - * @param array $context |
|
42 | + * @param string[] $context |
|
43 | 43 | * @return array |
44 | 44 | */ |
45 | 45 | public function normalize($object, $format = null, array $context = array()) |
@@ -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; |
@@ -145,6 +145,7 @@ discard block |
||
145 | 145 | |
146 | 146 | /** |
147 | 147 | * {@inheritdoc} |
148 | + * @param string $format |
|
148 | 149 | */ |
149 | 150 | private function normalizeObject($object, $format = null, array $context = []) |
150 | 151 | { |
@@ -179,6 +180,7 @@ discard block |
||
179 | 180 | |
180 | 181 | /** |
181 | 182 | * {@inheritdoc} |
183 | + * @param string $format |
|
182 | 184 | */ |
183 | 185 | private function getNormalizer($data, $format = null, array $context = []) |
184 | 186 | { |
@@ -200,6 +202,8 @@ discard block |
||
200 | 202 | |
201 | 203 | /** |
202 | 204 | * {@inheritdoc} |
205 | + * @param string $type |
|
206 | + * @param string $format |
|
203 | 207 | */ |
204 | 208 | private function getDenormalizer($data, $type, $format = null, array $context = []) |
205 | 209 | { |
@@ -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 |
@@ -61,6 +61,9 @@ |
||
61 | 61 | $this->formatter->getFormatterFor('non_exist_type', 'test_type'); |
62 | 62 | } |
63 | 63 | |
64 | + /** |
|
65 | + * @param string $id |
|
66 | + */ |
|
64 | 67 | protected function setContainerMock($id, \stdClass $testTypeFormatter) |
65 | 68 | { |
66 | 69 | $this->container |
@@ -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; |
@@ -180,7 +180,7 @@ |
||
180 | 180 | |
181 | 181 | /** |
182 | 182 | * @param \PHPUnit_Framework_MockObject_MockObject $context |
183 | - * @return \PHPUnit_Framework_MockObject_MockObject|StepExecution |
|
183 | + * @return StepExecution |
|
184 | 184 | */ |
185 | 185 | protected function getMockStepExecution($context) |
186 | 186 | { |