@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Symfony\Component\Config\Definition\Builder\TreeBuilder; |
6 | 6 | use Symfony\Component\Config\Definition\ConfigurationInterface; |
7 | -use Symfony\Component\Config\Definition\Builder\NodeBuilder; |
|
8 | 7 | |
9 | 8 | class Configuration implements ConfigurationInterface |
10 | 9 | { |
@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace Oro\Bundle\WorkflowBundle\Configuration; |
4 | 4 | |
5 | -use Symfony\Component\Yaml\Yaml; |
|
6 | 5 | use Symfony\Component\Config\Definition\Exception\InvalidConfigurationException; |
7 | 6 | |
8 | 7 | class WorkflowConfigurationProvider extends AbstractConfigurationProvider |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | * @AclAncestor("oro_workflow") |
29 | 29 | * @param string $workflowName |
30 | 30 | * @param string $transitionName |
31 | - * @return array |
|
31 | + * @return \Symfony\Component\HttpFoundation\Response |
|
32 | 32 | */ |
33 | 33 | public function startTransitionAction($workflowName, $transitionName) |
34 | 34 | { |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | * @AclAncestor("oro_workflow") |
78 | 78 | * @param string $transitionName |
79 | 79 | * @param WorkflowItem $workflowItem |
80 | - * @return array |
|
80 | + * @return \Symfony\Component\HttpFoundation\Response |
|
81 | 81 | */ |
82 | 82 | public function transitionAction($transitionName, WorkflowItem $workflowItem) |
83 | 83 | { |
@@ -7,11 +7,8 @@ |
||
7 | 7 | use Oro\Bundle\WorkflowBundle\Event\StartTransitionEvent; |
8 | 8 | use Oro\Bundle\WorkflowBundle\Event\StartTransitionEvents; |
9 | 9 | use Oro\Bundle\WorkflowBundle\Model\WorkflowManager; |
10 | - |
|
11 | 10 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter; |
12 | 11 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
13 | -use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; |
|
14 | - |
|
15 | 12 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
16 | 13 | |
17 | 14 | /** |
@@ -355,7 +355,7 @@ |
||
355 | 355 | } |
356 | 356 | |
357 | 357 | /** |
358 | - * @return array |
|
358 | + * @return string[] |
|
359 | 359 | */ |
360 | 360 | public static function getAllowedEvents() |
361 | 361 | { |
@@ -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 |
@@ -166,7 +166,7 @@ |
||
166 | 166 | } |
167 | 167 | |
168 | 168 | /** |
169 | - * @return mixed |
|
169 | + * @return string |
|
170 | 170 | */ |
171 | 171 | public function getEntityClass() |
172 | 172 | { |
@@ -71,7 +71,7 @@ |
||
71 | 71 | /** |
72 | 72 | * Get data values |
73 | 73 | * |
74 | - * @param array $names Optional list of names of values that should be filtered |
|
74 | + * @param string[] $names Optional list of names of values that should be filtered |
|
75 | 75 | * @return array |
76 | 76 | */ |
77 | 77 | public function getValues(array $names = array()) |
@@ -80,7 +80,7 @@ |
||
80 | 80 | } |
81 | 81 | |
82 | 82 | /** |
83 | - * @param mixed $context |
|
83 | + * @param WorkflowItem $context |
|
84 | 84 | * @param object $entity |
85 | 85 | * @param array $parameters |
86 | 86 | */ |
@@ -66,7 +66,7 @@ |
||
66 | 66 | |
67 | 67 | /** |
68 | 68 | * @param mixed $context |
69 | - * @return array |
|
69 | + * @return string |
|
70 | 70 | * @throws \Oro\Bundle\WorkflowBundle\Exception\InvalidParameterException |
71 | 71 | */ |
72 | 72 | protected function getArguments($context) |
@@ -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; |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | |
166 | 166 | /** |
167 | 167 | * @param Attribute $attribute |
168 | - * @param string|array $optionNames |
|
168 | + * @param string $optionNames |
|
169 | 169 | * @throws AssemblerException If attribute is invalid |
170 | 170 | */ |
171 | 171 | protected function assertAttributeHasOptions(Attribute $attribute, $optionNames) |
@@ -183,7 +183,7 @@ discard block |
||
183 | 183 | |
184 | 184 | /** |
185 | 185 | * @param Attribute $attribute |
186 | - * @param string|array $optionNames |
|
186 | + * @param string $optionNames |
|
187 | 187 | * @throws AssemblerException If attribute is invalid |
188 | 188 | */ |
189 | 189 | protected function assertAttributeHasNoOptions(Attribute $attribute, $optionNames) |
@@ -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; |