@@ -6,6 +6,9 @@ |
||
6 | 6 | { |
7 | 7 | protected $id; |
8 | 8 | |
9 | + /** |
|
10 | + * @param integer $id |
|
11 | + */ |
|
9 | 12 | public function __construct($id) |
10 | 13 | { |
11 | 14 | return $this->id = $id; |
@@ -21,6 +21,11 @@ discard block |
||
21 | 21 | |
22 | 22 | private $organization; |
23 | 23 | |
24 | + /** |
|
25 | + * @param string $firstName |
|
26 | + * @param string $lastName |
|
27 | + * @param TestOrganization $organization |
|
28 | + */ |
|
24 | 29 | public function __construct($email = null, $firstName = null, $lastName = null, $organization = null) |
25 | 30 | { |
26 | 31 | $this->email = $email; |
@@ -67,6 +72,9 @@ discard block |
||
67 | 72 | return $this->id; |
68 | 73 | } |
69 | 74 | |
75 | + /** |
|
76 | + * @param integer $id |
|
77 | + */ |
|
70 | 78 | public function setId($id) |
71 | 79 | { |
72 | 80 | $this->id = $id; |
@@ -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; |
@@ -69,7 +69,7 @@ |
||
69 | 69 | |
70 | 70 | /** |
71 | 71 | * @SuppressWarnings(PHPMD.ExcessiveMethodLength) |
72 | - * @return array |
|
72 | + * @return PreloadedExtension[] |
|
73 | 73 | */ |
74 | 74 | protected function getExtensions() |
75 | 75 | { |
@@ -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; |
@@ -463,7 +463,7 @@ |
||
463 | 463 | } |
464 | 464 | |
465 | 465 | /** |
466 | - * @param $user |
|
466 | + * @param User $user |
|
467 | 467 | * @param bool $withOrigin |
468 | 468 | */ |
469 | 469 | protected function processWithOwner($user, $withOrigin = false) |
@@ -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; |
@@ -248,6 +248,9 @@ |
||
248 | 248 | return $content; |
249 | 249 | } |
250 | 250 | |
251 | + /** |
|
252 | + * @return EmailAttachment |
|
253 | + */ |
|
251 | 254 | protected function getEmailAttachment() |
252 | 255 | { |
253 | 256 | $emailAttachment = $this->getMockBuilder('Oro\Bundle\EmailBundle\Entity\EmailAttachment') |
@@ -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; |
@@ -285,7 +285,7 @@ |
||
285 | 285 | } |
286 | 286 | |
287 | 287 | /** |
288 | - * @return EmailRenderer|\PHPUnit_Framework_MockObject_MockObject |
|
288 | + * @return string |
|
289 | 289 | */ |
290 | 290 | public function getRendererInstance() |
291 | 291 | { |
@@ -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; |
@@ -33,7 +33,7 @@ |
||
33 | 33 | } |
34 | 34 | |
35 | 35 | /** |
36 | - * @param $type |
|
36 | + * @param string $type |
|
37 | 37 | * @param null $data |
38 | 38 | * @param array $options |
39 | 39 | * |
@@ -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; |
@@ -4,15 +4,11 @@ |
||
4 | 4 | |
5 | 5 | use Symfony\Component\HttpFoundation\Response; |
6 | 6 | use Symfony\Component\Security\Core\Exception\AccessDeniedException; |
7 | - |
|
8 | 7 | use FOS\RestBundle\Controller\Annotations\NamePrefix; |
9 | 8 | use FOS\RestBundle\Controller\Annotations\RouteResource; |
10 | 9 | use FOS\RestBundle\Controller\FOSRestController; |
11 | -use FOS\RestBundle\Controller\Annotations\QueryParam; |
|
12 | -use FOS\RestBundle\Controller\Annotations\Get; |
|
13 | 10 | use FOS\RestBundle\Util\Codes; |
14 | 11 | use FOS\RestBundle\Controller\Annotations as Rest; |
15 | - |
|
16 | 12 | use Nelmio\ApiDocBundle\Annotation\ApiDoc; |
17 | 13 | |
18 | 14 | /** |
@@ -312,7 +312,7 @@ discard block |
||
312 | 312 | * @param string $entityName |
313 | 313 | * @param string $id |
314 | 314 | * |
315 | - * @return array |
|
315 | + * @return JsonResponse |
|
316 | 316 | * |
317 | 317 | * @Route( |
318 | 318 | * "/delete/{entityName}/item/{id}", |
@@ -350,7 +350,7 @@ discard block |
||
350 | 350 | * |
351 | 351 | * @param string $permission |
352 | 352 | * @param string $entityName |
353 | - * @return bool |
|
353 | + * @return boolean|null |
|
354 | 354 | * @throws AccessDeniedException |
355 | 355 | */ |
356 | 356 | private function checkAccess($permission, $entityName) |
@@ -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; |