@@ -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; |
| 7 | 7 | |
| 8 | 8 | use OldTown\Workflow\ZF2\Toolkit\Options\ModuleOptions; |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | * Например |
| 18 | 18 | * DoctrineWorkflowStory\ExtEntry => MyClass::class |
| 19 | 19 | */ |
| 20 | - 'entityMap' => [], |
|
| 20 | + 'entityMap' => [ ], |
|
| 21 | 21 | /** |
| 22 | 22 | * Метаданные используемые для получения id процесса wf(entryId). |
| 23 | 23 | * Пример: |
@@ -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; |
| 7 | 7 | |
| 8 | 8 | use OldTown\Workflow\ZF2\Toolkit\Options\ModuleOptions; |
@@ -17,6 +17,6 @@ |
||
| 17 | 17 | { |
| 18 | 18 | public function __construct() |
| 19 | 19 | { |
| 20 | - $this->entityMap['entry'] = ExtEntry::class; |
|
| 20 | + $this->entityMap[ 'entry' ] = ExtEntry::class; |
|
| 21 | 21 | } |
| 22 | 22 | } |
@@ -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; |
@@ -68,14 +68,14 @@ discard block |
||
| 68 | 68 | * |
| 69 | 69 | * @param array $options |
| 70 | 70 | */ |
| 71 | - public function __construct(array $options = []) |
|
| 71 | + public function __construct(array $options = [ ]) |
|
| 72 | 72 | { |
| 73 | 73 | $initOptions = [ |
| 74 | - array_key_exists('serializerManager', $options) ? $options['serializerManager'] : null, |
|
| 75 | - array_key_exists('moduleOptions', $options) ? $options['moduleOptions'] : null, |
|
| 76 | - array_key_exists('workflowService', $options) ? $options['workflowService'] : null |
|
| 74 | + array_key_exists('serializerManager', $options) ? $options[ 'serializerManager' ] : null, |
|
| 75 | + array_key_exists('moduleOptions', $options) ? $options[ 'moduleOptions' ] : null, |
|
| 76 | + array_key_exists('workflowService', $options) ? $options[ 'workflowService' ] : null |
|
| 77 | 77 | ]; |
| 78 | - call_user_func_array([$this, 'init'], $initOptions); |
|
| 78 | + call_user_func_array([ $this, 'init' ], $initOptions); |
|
| 79 | 79 | } |
| 80 | 80 | |
| 81 | 81 | /** |
@@ -124,9 +124,9 @@ discard block |
||
| 124 | 124 | $serializer = $this->getSerializerManager()->get($serializerName); |
| 125 | 125 | |
| 126 | 126 | $id = $metadata->getIdentifierValues($object); |
| 127 | - $prepareId = []; |
|
| 127 | + $prepareId = [ ]; |
|
| 128 | 128 | foreach ($id as $idField => $idValue) { |
| 129 | - $prepareId[$idField] = (string)$idValue; |
|
| 129 | + $prepareId[ $idField ] = (string) $idValue; |
|
| 130 | 130 | } |
| 131 | 131 | $serializedId = $serializer->serialize($prepareId); |
| 132 | 132 | |
@@ -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\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; |