@@ -85,7 +85,7 @@ |
||
85 | 85 | |
86 | 86 | /** |
87 | 87 | * @param string $key |
88 | - * @param null $default |
|
88 | + * @param string $default |
|
89 | 89 | * |
90 | 90 | * @return null |
91 | 91 | */ |
@@ -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; |
@@ -11,6 +11,11 @@ |
||
11 | 11 | { |
12 | 12 | protected $query; |
13 | 13 | |
14 | + /** |
|
15 | + * @param integer $a |
|
16 | + * @param integer $b |
|
17 | + * @param integer $c |
|
18 | + */ |
|
14 | 19 | public function __construct($a, $b, $c) |
15 | 20 | { |
16 | 21 | $arbitrary = "nothing important here"; |
@@ -2,13 +2,10 @@ |
||
2 | 2 | |
3 | 3 | namespace Oro\Bundle\TagBundle\Entity; |
4 | 4 | |
5 | -use Doctrine\ORM\Query\Expr; |
|
6 | 5 | use Doctrine\ORM\EntityManager; |
7 | 6 | use Doctrine\Common\Util\ClassUtils; |
8 | 7 | use Doctrine\Common\Collections\ArrayCollection; |
9 | - |
|
10 | 8 | use Symfony\Bundle\FrameworkBundle\Routing\Router; |
11 | - |
|
12 | 9 | use Oro\Bundle\SecurityBundle\SecurityFacade; |
13 | 10 | use Oro\Bundle\OrganizationBundle\Entity\Organization; |
14 | 11 | use Oro\Bundle\UserBundle\Entity\User; |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | /** |
125 | 125 | * Adds multiple tags on the given entity |
126 | 126 | * |
127 | - * @param Collection|Tag[] $tags Array of Tag objects |
|
127 | + * @param Tag[] $tags Array of Tag objects |
|
128 | 128 | * @param object $entity entity |
129 | 129 | */ |
130 | 130 | public function addTags($tags, $entity) |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | * |
154 | 154 | * @param object $entity |
155 | 155 | * @param User|null $owner |
156 | - * @param Collection|Tag[]|int[] $tags |
|
156 | + * @param Collection $tags |
|
157 | 157 | * |
158 | 158 | * @return int |
159 | 159 | */ |
@@ -417,7 +417,7 @@ discard block |
||
417 | 417 | /** |
418 | 418 | * @param Tag $tag |
419 | 419 | * |
420 | - * @return callable |
|
420 | + * @return \Closure |
|
421 | 421 | * |
422 | 422 | * @@deprecated |
423 | 423 | */ |
@@ -57,6 +57,7 @@ |
||
57 | 57 | |
58 | 58 | /** |
59 | 59 | * {@inheritdoc} |
60 | + * @param integer $tagId |
|
60 | 61 | */ |
61 | 62 | public function getResults($tagId) |
62 | 63 | { |
@@ -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 |
@@ -127,6 +127,10 @@ discard block |
||
127 | 127 | } |
128 | 128 | } |
129 | 129 | |
130 | + /** |
|
131 | + * @param \Oro\Bundle\UserBundle\Tests\Selenium\Pages\Login $login |
|
132 | + * @param string $role |
|
133 | + */ |
|
130 | 134 | public function deleteAcl($login, $role, $username, $tagName) |
131 | 135 | { |
132 | 136 | /** @var Roles $login*/ |
@@ -143,6 +147,10 @@ discard block |
||
143 | 147 | ->checkContextMenu($tagName, 'Delete'); |
144 | 148 | } |
145 | 149 | |
150 | + /** |
|
151 | + * @param \Oro\Bundle\UserBundle\Tests\Selenium\Pages\Login $login |
|
152 | + * @param string $role |
|
153 | + */ |
|
146 | 154 | public function updateAcl($login, $role, $username, $tagName) |
147 | 155 | { |
148 | 156 | /** @var Roles $login*/ |
@@ -159,6 +167,10 @@ discard block |
||
159 | 167 | ->checkContextMenu($tagName, 'Update'); |
160 | 168 | } |
161 | 169 | |
170 | + /** |
|
171 | + * @param \Oro\Bundle\UserBundle\Tests\Selenium\Pages\Login $login |
|
172 | + * @param string $role |
|
173 | + */ |
|
162 | 174 | public function createAcl($login, $role, $username) |
163 | 175 | { |
164 | 176 | /** @var Roles $login*/ |
@@ -175,6 +187,10 @@ discard block |
||
175 | 187 | ->assertElementNotPresent("//div[@class = 'container-fluid']//a[contains(., 'Create Tag')]"); |
176 | 188 | } |
177 | 189 | |
190 | + /** |
|
191 | + * @param \Oro\Bundle\UserBundle\Tests\Selenium\Pages\Login $login |
|
192 | + * @param string $role |
|
193 | + */ |
|
178 | 194 | public function viewListAcl($login, $role, $username) |
179 | 195 | { |
180 | 196 | /** @var Roles $login*/ |
@@ -191,6 +207,10 @@ discard block |
||
191 | 207 | ->assertTitle('403 - Forbidden'); |
192 | 208 | } |
193 | 209 | |
210 | + /** |
|
211 | + * @param \Oro\Bundle\UserBundle\Tests\Selenium\Pages\Login $login |
|
212 | + * @param string $roleName |
|
213 | + */ |
|
194 | 214 | public function unassignGlobalAcl($login, $roleName, $tagName) |
195 | 215 | { |
196 | 216 | $username = 'user' . mt_rand(); |
@@ -229,6 +249,10 @@ discard block |
||
229 | 249 | ); |
230 | 250 | } |
231 | 251 | |
252 | + /** |
|
253 | + * @param \Oro\Bundle\UserBundle\Tests\Selenium\Pages\Login $login |
|
254 | + * @param string $role |
|
255 | + */ |
|
232 | 256 | public function assignAcl($login, $role, $username) |
233 | 257 | { |
234 | 258 | /** @var Roles $login*/ |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | abstract public function entityView(); |
25 | 25 | |
26 | 26 | /** |
27 | - * @param array $entityData |
|
27 | + * @param string[] $entityData |
|
28 | 28 | * |
29 | 29 | * @return mixed |
30 | 30 | */ |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | * Get all elements from data grid |
167 | 167 | * |
168 | 168 | * @param null|int $id |
169 | - * @return array PHPUnit_Extensions_Selenium2TestCase_Element |
|
169 | + * @return \PHPUnit_Extensions_Selenium2TestCase_Element[] PHPUnit_Extensions_Selenium2TestCase_Element |
|
170 | 170 | */ |
171 | 171 | public function getRows($id = null) |
172 | 172 | { |
@@ -401,7 +401,7 @@ discard block |
||
401 | 401 | } |
402 | 402 | |
403 | 403 | /** |
404 | - * @param $columnName |
|
404 | + * @param string $columnName |
|
405 | 405 | * @param string $order DESC or ASC |
406 | 406 | * @return $this |
407 | 407 | */ |
@@ -436,7 +436,7 @@ discard block |
||
436 | 436 | /** |
437 | 437 | * Change page size |
438 | 438 | * |
439 | - * @param string|int $pageSize |
|
439 | + * @param string $pageSize |
|
440 | 440 | * @return $this |
441 | 441 | */ |
442 | 442 | public function changePageSize($pageSize) |
@@ -484,7 +484,7 @@ discard block |
||
484 | 484 | |
485 | 485 | /** |
486 | 486 | * Method checks if no item in action grid menu |
487 | - * @param $actionName |
|
487 | + * @param string $actionName |
|
488 | 488 | * @return $this |
489 | 489 | * @throws \PHPUnit_Framework_AssertionFailedError |
490 | 490 | */ |
@@ -50,8 +50,8 @@ |
||
50 | 50 | |
51 | 51 | /** |
52 | 52 | * Method to filter grid by Multiselect filter |
53 | - * @param $filterName |
|
54 | - * @param array $values |
|
53 | + * @param string $filterName |
|
54 | + * @param string[] $values |
|
55 | 55 | * @return $this |
56 | 56 | */ |
57 | 57 | public function filterByMultiselect($filterName, $values) |
@@ -36,6 +36,8 @@ |
||
36 | 36 | |
37 | 37 | /** |
38 | 38 | * {@inheritdoc} |
39 | + * @param string $method |
|
40 | + * @param string $uri |
|
39 | 41 | */ |
40 | 42 | public function request( |
41 | 43 | $method, |
@@ -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; |
@@ -110,7 +110,7 @@ |
||
110 | 110 | } |
111 | 111 | |
112 | 112 | /** |
113 | - * @return \PHPUnit_Framework_MockObject_MockObject|\Symfony\Component\DependencyInjection\ContainerBuilder |
|
113 | + * @return \Symfony\Component\DependencyInjection\ContainerBuilder |
|
114 | 114 | */ |
115 | 115 | protected function getContainerMock() |
116 | 116 | { |