@@ -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 | { |
@@ -127,6 +127,9 @@ discard block |
||
| 127 | 127 | return $entities; |
| 128 | 128 | } |
| 129 | 129 | |
| 130 | + /** |
|
| 131 | + * @param integer $callCount |
|
| 132 | + */ |
|
| 130 | 133 | protected function mockMetadata($callCount) |
| 131 | 134 | { |
| 132 | 135 | $metadata = $this->getMockBuilder('Doctrine\ORM\Mapping\ClassMetadata') |
@@ -136,6 +139,10 @@ discard block |
||
| 136 | 139 | $metadata->expects($this->exactly($callCount)) |
| 137 | 140 | ->method('getIdentifierValues') |
| 138 | 141 | ->will($this->returnCallback( |
| 142 | + |
|
| 143 | + /** |
|
| 144 | + * @param integer $currentEntity |
|
| 145 | + */ |
|
| 139 | 146 | function (StubEntity $currentEntity) { |
| 140 | 147 | return array($currentEntity->getId()); |
| 141 | 148 | } |
@@ -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; |
@@ -84,7 +84,6 @@ |
||
| 84 | 84 | /** |
| 85 | 85 | * Create new entity |
| 86 | 86 | * |
| 87 | - * @param mixed $_ [optional] Arguments will be passed to createEntity method of manager (result of getManager) |
|
| 88 | 87 | * |
| 89 | 88 | * @return mixed |
| 90 | 89 | */ |
@@ -4,16 +4,13 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Oro\Bundle\WorkflowBundle\Model\ContextAccessor; |
| 6 | 6 | use Symfony\Component\Form\Test\FormIntegrationTestCase; |
| 7 | - |
|
| 8 | 7 | use Oro\Bundle\WorkflowBundle\Form\EventListener\DefaultValuesListener; |
| 9 | 8 | use Oro\Bundle\WorkflowBundle\Form\EventListener\InitActionsListener; |
| 10 | 9 | use Oro\Bundle\WorkflowBundle\Form\EventListener\RequiredAttributesListener; |
| 11 | 10 | use Oro\Bundle\WorkflowBundle\Form\Type\WorkflowAttributesType; |
| 12 | - |
|
| 13 | 11 | use Oro\Bundle\WorkflowBundle\Entity\WorkflowItem; |
| 14 | 12 | use Oro\Bundle\WorkflowBundle\Entity\WorkflowStep; |
| 15 | 13 | use Oro\Bundle\WorkflowBundle\Entity\WorkflowDefinition; |
| 16 | - |
|
| 17 | 14 | use Oro\Bundle\WorkflowBundle\Model\Step; |
| 18 | 15 | use Oro\Bundle\WorkflowBundle\Model\Attribute; |
| 19 | 16 | use Oro\Bundle\WorkflowBundle\Model\WorkflowData; |
@@ -4,21 +4,16 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Doctrine\ORM\QueryBuilder; |
| 6 | 6 | use Nelmio\ApiDocBundle\Annotation\ApiDoc; |
| 7 | - |
|
| 8 | 7 | use Oro\Bundle\SearchBundle\Event\PrepareResultItemEvent; |
| 9 | 8 | use Symfony\Component\HttpFoundation\Response; |
| 10 | 9 | use Symfony\Component\HttpFoundation\JsonResponse; |
| 11 | - |
|
| 12 | -use Doctrine\ORM\Query; |
|
| 13 | 10 | use Doctrine\ORM\UnitOfWork; |
| 14 | 11 | use Doctrine\ORM\Proxy\Proxy; |
| 15 | 12 | use Doctrine\Common\Collections\Criteria; |
| 16 | - |
|
| 17 | 13 | use FOS\RestBundle\Util\Codes; |
| 18 | 14 | use FOS\RestBundle\View\View; |
| 19 | 15 | use FOS\RestBundle\Controller\FOSRestController; |
| 20 | 16 | use FOS\RestBundle\Request\ParamFetcherInterface; |
| 21 | - |
|
| 22 | 17 | use Oro\Bundle\EntityBundle\ORM\SqlQueryBuilder; |
| 23 | 18 | use Oro\Bundle\SearchBundle\Query\Query as SearchQuery; |
| 24 | 19 | use Oro\Bundle\SearchBundle\Query\Result\Item as SearchResultItem; |
@@ -29,7 +29,6 @@ discard block |
||
| 29 | 29 | /** |
| 30 | 30 | * Create new |
| 31 | 31 | * |
| 32 | - * @param mixed $_ [optional] Arguments will be passed to createEntity method |
|
| 33 | 32 | * @return integer |
| 34 | 33 | */ |
| 35 | 34 | public function handleCreateRequest() |
@@ -43,7 +42,6 @@ discard block |
||
| 43 | 42 | /** |
| 44 | 43 | * Create new entity |
| 45 | 44 | * |
| 46 | - * @param mixed $_ [optional] Arguments will be passed to createEntity method of manager (result of getManager) |
|
| 47 | 45 | * @return mixed |
| 48 | 46 | */ |
| 49 | 47 | protected function createEntity() |
@@ -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 | |