@@ -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; |
@@ -214,7 +214,7 @@ |
||
214 | 214 | * @param string $workflowName |
215 | 215 | * @param array $objectsInfo |
216 | 216 | * |
217 | - * @return ExtEntry|null |
|
217 | + * @return ExtEntry |
|
218 | 218 | * |
219 | 219 | * @throws Exception\InvalidGetEntryByObjectsInfoException |
220 | 220 | * @throws \Zend\Serializer\Exception\ExceptionInterface |
@@ -70,14 +70,14 @@ discard block |
||
70 | 70 | * |
71 | 71 | * @param array $options |
72 | 72 | */ |
73 | - public function __construct(array $options = []) |
|
73 | + public function __construct(array $options = [ ]) |
|
74 | 74 | { |
75 | 75 | $initOptions = [ |
76 | - array_key_exists('serializerManager', $options) ? $options['serializerManager'] : null, |
|
77 | - array_key_exists('moduleOptions', $options) ? $options['moduleOptions'] : null, |
|
78 | - array_key_exists('workflowService', $options) ? $options['workflowService'] : null |
|
76 | + array_key_exists('serializerManager', $options) ? $options[ 'serializerManager' ] : null, |
|
77 | + array_key_exists('moduleOptions', $options) ? $options[ 'moduleOptions' ] : null, |
|
78 | + array_key_exists('workflowService', $options) ? $options[ 'workflowService' ] : null |
|
79 | 79 | ]; |
80 | - call_user_func_array([$this, 'init'], $initOptions); |
|
80 | + call_user_func_array([ $this, 'init' ], $initOptions); |
|
81 | 81 | } |
82 | 82 | |
83 | 83 | /** |
@@ -126,9 +126,9 @@ discard block |
||
126 | 126 | $serializer = $this->getSerializerManager()->get($serializerName); |
127 | 127 | |
128 | 128 | $id = $metadata->getIdentifierValues($object); |
129 | - $prepareId = []; |
|
129 | + $prepareId = [ ]; |
|
130 | 130 | foreach ($id as $idField => $idValue) { |
131 | - $prepareId[$idField] = (string)$idValue; |
|
131 | + $prepareId[ $idField ] = (string) $idValue; |
|
132 | 132 | } |
133 | 133 | $serializedId = $serializer->serialize($prepareId); |
134 | 134 | |
@@ -219,7 +219,7 @@ discard block |
||
219 | 219 | * @throws Exception\InvalidGetEntryByObjectsInfoException |
220 | 220 | * @throws \Zend\Serializer\Exception\ExceptionInterface |
221 | 221 | */ |
222 | - public function getEntryByObjectsInfo($managerName, $workflowName, array $objectsInfo = []) |
|
222 | + public function getEntryByObjectsInfo($managerName, $workflowName, array $objectsInfo = [ ]) |
|
223 | 223 | { |
224 | 224 | try { |
225 | 225 | $workflowManager = $this->getWorkflowService()->getWorkflowManager($managerName); |
@@ -234,11 +234,11 @@ discard block |
||
234 | 234 | $em = $store->getEntityManager(); |
235 | 235 | |
236 | 236 | $serializer = $this->getSerializer(); |
237 | - $objectHash = []; |
|
237 | + $objectHash = [ ]; |
|
238 | 238 | foreach ($objectsInfo as $entityClassName => $entityId) { |
239 | 239 | $identifierFieldName = $em->getClassMetadata($entityClassName)->getSingleIdentifierFieldName(); |
240 | 240 | $id = [ |
241 | - $identifierFieldName => (string)$entityId |
|
241 | + $identifierFieldName => (string) $entityId |
|
242 | 242 | ]; |
243 | 243 | |
244 | 244 | $serializedId = $serializer->serialize($id); |
@@ -246,7 +246,7 @@ discard block |
||
246 | 246 | $hash = $entityClassName . '_' . $serializedId; |
247 | 247 | $base64Hash = base64_encode($hash); |
248 | 248 | |
249 | - $objectHash[$base64Hash] = $base64Hash; |
|
249 | + $objectHash[ $base64Hash ] = $base64Hash; |
|
250 | 250 | } |
251 | 251 | |
252 | 252 | $extEntryClassName = $this->getModuleOptions()->getEntityClassName('DoctrineWorkflowStory\ExtEntry'); |
@@ -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; |
@@ -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; |
@@ -36,7 +36,7 @@ |
||
36 | 36 | |
37 | 37 | $serializerManager = $appServiceLocator->get('SerializerAdapterManager'); |
38 | 38 | $moduleOptions = $appServiceLocator->get(ModuleOptions::class); |
39 | - $workflowService = $appServiceLocator->get(Workflow::class); |
|
39 | + $workflowService = $appServiceLocator->get(Workflow::class); |
|
40 | 40 | |
41 | 41 | return new DoctrineWorkflowStoryService( |
42 | 42 | [ |
@@ -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; |
@@ -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; |
@@ -26,13 +26,13 @@ |
||
26 | 26 | * |
27 | 27 | * @param array $options |
28 | 28 | */ |
29 | - public function __construct(array $options = []) |
|
29 | + public function __construct(array $options = [ ]) |
|
30 | 30 | { |
31 | 31 | $initOptions = [ |
32 | - array_key_exists('entryToObjectsService', $options) ? $options['entryToObjectsService'] : null |
|
32 | + array_key_exists('entryToObjectsService', $options) ? $options[ 'entryToObjectsService' ] : null |
|
33 | 33 | ]; |
34 | 34 | |
35 | - call_user_func_array([$this, 'init'], $initOptions); |
|
35 | + call_user_func_array([ $this, 'init' ], $initOptions); |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | /** |
@@ -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; |
@@ -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; |