@@ -352,6 +352,10 @@ discard block |
||
352 | 352 | $this->assertFalse($p->containsKey('EDIT')); |
353 | 353 | } |
354 | 354 | |
355 | + /** |
|
356 | + * @param string $extensionKey |
|
357 | + * @param ObjectIdentity $rootOid |
|
358 | + */ |
|
355 | 359 | private function initSavePrivileges($extensionKey, $rootOid) |
356 | 360 | { |
357 | 361 | $this->extension->expects($this->any()) |
@@ -364,6 +368,11 @@ discard block |
||
364 | 368 | ->method('adaptRootMask') |
365 | 369 | ->will( |
366 | 370 | $this->returnCallback( |
371 | + |
|
372 | + /** |
|
373 | + * @param string $mask |
|
374 | + * @param ObjectIdentity $object |
|
375 | + */ |
|
367 | 376 | function ($mask, $object) { |
368 | 377 | return $mask; |
369 | 378 | } |
@@ -49,7 +49,7 @@ |
||
49 | 49 | |
50 | 50 | /** |
51 | 51 | * @param array $securityConfig |
52 | - * @return \PHPUnit_Framework_MockObject_MockObject|ExtendedContainerBuilder |
|
52 | + * @return ExtendedContainerBuilder |
|
53 | 53 | */ |
54 | 54 | protected function getContainerBuilder(array $securityConfig) |
55 | 55 | { |
@@ -173,7 +173,7 @@ |
||
173 | 173 | |
174 | 174 | /** |
175 | 175 | * @param bool $supports |
176 | - * @return AccessLevelOwnershipDecisionMakerInterface|\PHPUnit_Framework_MockObject_MockObject |
|
176 | + * @return AccessLevelOwnershipDecisionMakerInterface |
|
177 | 177 | */ |
178 | 178 | protected function getOwnershipDecisionMakerMock($supports = true) |
179 | 179 | { |
@@ -123,7 +123,7 @@ |
||
123 | 123 | } |
124 | 124 | |
125 | 125 | /** |
126 | - * @return \PHPUnit_Framework_MockObject_MockObject|OwnerTreeProviderInterface |
|
126 | + * @return OwnerTreeProviderInterface |
|
127 | 127 | */ |
128 | 128 | protected function getProviderMock() |
129 | 129 | { |
@@ -175,7 +175,7 @@ |
||
175 | 175 | /** |
176 | 176 | * @param bool $isSupports |
177 | 177 | * @param array $metadata |
178 | - * @return MetadataProviderInterface|\PHPUnit_Framework_MockObject_MockObject |
|
178 | + * @return MetadataProviderInterface |
|
179 | 179 | */ |
180 | 180 | protected function getMetadataProviderMock($isSupports = true, array $metadata = []) |
181 | 181 | { |
@@ -184,7 +184,7 @@ |
||
184 | 184 | |
185 | 185 | /** |
186 | 186 | * @param object $object |
187 | - * @param mixed $value |
|
187 | + * @param integer $value |
|
188 | 188 | */ |
189 | 189 | protected function setId($object, $value) |
190 | 190 | { |
@@ -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 |
@@ -73,7 +73,7 @@ |
||
73 | 73 | /** |
74 | 74 | * Check if ACL resource is granted for current user |
75 | 75 | * |
76 | - * @param string|string[] $attributes Can be a role name(s), permission name(s), an ACL annotation id |
|
76 | + * @param string $attributes Can be a role name(s), permission name(s), an ACL annotation id |
|
77 | 77 | * or something else, it depends on registered security voters |
78 | 78 | * @param mixed $object A domain object, object identity or object identity descriptor (id:type) |
79 | 79 | * |
@@ -5,10 +5,8 @@ |
||
5 | 5 | use Doctrine\Common\Collections\ArrayCollection; |
6 | 6 | use Doctrine\DBAL\Driver\Statement; |
7 | 7 | use Doctrine\ORM\EntityManager; |
8 | -use Doctrine\ORM\Query; |
|
9 | 8 | use Doctrine\ORM\QueryBuilder; |
10 | 9 | use Doctrine\ORM\Query\Parameter; |
11 | - |
|
12 | 10 | use Oro\Bundle\EntityBundle\ORM\DatabaseDriverInterface; |
13 | 11 | use Oro\Bundle\SecurityBundle\Owner\Metadata\OwnershipMetadataProvider; |
14 | 12 | use Oro\Bundle\SegmentBundle\Entity\Segment; |
@@ -35,6 +35,7 @@ |
||
35 | 35 | |
36 | 36 | /** |
37 | 37 | * {@inheritdoc} |
38 | + * @param string $gridName |
|
38 | 39 | */ |
39 | 40 | public function isApplicable($gridName) |
40 | 41 | { |