@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @link https://github.com/old-town/workflow-zf2-toolkit |
|
4 | - * @author Malofeykin Andrey <[email protected]> |
|
5 | - */ |
|
3 | + * @link https://github.com/old-town/workflow-zf2-toolkit |
|
4 | + * @author Malofeykin Andrey <[email protected]> |
|
5 | + */ |
|
6 | 6 | namespace OldTown\Workflow\ZF2\Toolkit\DoctrineWorkflowStory; |
7 | 7 | |
8 | 8 | use Zend\Serializer\AdapterPluginManager as SerializerManager; |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @link https://github.com/old-town/workflow-zf2-toolkit |
|
4 | - * @author Malofeykin Andrey <[email protected]> |
|
5 | - */ |
|
3 | + * @link https://github.com/old-town/workflow-zf2-toolkit |
|
4 | + * @author Malofeykin Andrey <[email protected]> |
|
5 | + */ |
|
6 | 6 | namespace OldTown\Workflow\ZF2\Toolkit\Validator; |
7 | 7 | |
8 | 8 | use Zend\Validator\AbstractValidator; |
@@ -34,13 +34,13 @@ discard block |
||
34 | 34 | * |
35 | 35 | * @param array $options |
36 | 36 | */ |
37 | - public function __construct(array $options = []) |
|
37 | + public function __construct(array $options = [ ]) |
|
38 | 38 | { |
39 | 39 | $initOptions = [ |
40 | - array_key_exists('entryToObjectsService', $options) ? $options['entryToObjectsService'] : null, |
|
41 | - array_key_exists('workflowService', $options) ? $options['workflowService'] : null, |
|
40 | + array_key_exists('entryToObjectsService', $options) ? $options[ 'entryToObjectsService' ] : null, |
|
41 | + array_key_exists('workflowService', $options) ? $options[ 'workflowService' ] : null, |
|
42 | 42 | ]; |
43 | - call_user_func_array([$this, 'init'], $initOptions); |
|
43 | + call_user_func_array([ $this, 'init' ], $initOptions); |
|
44 | 44 | } |
45 | 45 | |
46 | 46 | /** |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | * @throws \OldTown\Workflow\ZF2\ServiceEngine\Exception\InvalidWorkflowManagerException |
73 | 73 | * @throws \OldTown\Workflow\Exception\ArgumentNotNumericException |
74 | 74 | */ |
75 | - public function getAvailableActions($managerName, $workflowName, array $objectsInfo = []) |
|
75 | + public function getAvailableActions($managerName, $workflowName, array $objectsInfo = [ ]) |
|
76 | 76 | { |
77 | 77 | $entry = $this->getEntryToObjectsService()->getEntryByObjectsInfo($managerName, $workflowName, $objectsInfo); |
78 | 78 | |
@@ -110,15 +110,15 @@ discard block |
||
110 | 110 | * @throws \OldTown\Workflow\ZF2\ServiceEngine\Exception\InvalidWorkflowManagerException |
111 | 111 | * @throws \OldTown\Workflow\Exception\ArgumentNotNumericException |
112 | 112 | */ |
113 | - public function getAvailableActionNames($managerName, $workflowName, array $objectsInfo = []) |
|
113 | + public function getAvailableActionNames($managerName, $workflowName, array $objectsInfo = [ ]) |
|
114 | 114 | { |
115 | 115 | $actions = $this->getAvailableActions($managerName, $workflowName, $objectsInfo); |
116 | 116 | |
117 | - $names = []; |
|
117 | + $names = [ ]; |
|
118 | 118 | |
119 | 119 | foreach ($actions as $action) { |
120 | 120 | $name = $action->getName(); |
121 | - $names[$name] = $name; |
|
121 | + $names[ $name ] = $name; |
|
122 | 122 | } |
123 | 123 | |
124 | 124 | return $names; |