@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @link https://github.com/old-town/workflow-zf2 |
|
| 4 | - * @author Malofeykin Andrey <[email protected]> |
|
| 5 | - */ |
|
| 3 | + * @link https://github.com/old-town/workflow-zf2 |
|
| 4 | + * @author Malofeykin Andrey <[email protected]> |
|
| 5 | + */ |
|
| 6 | 6 | namespace OldTown\Workflow\ZF2\Exception; |
| 7 | 7 | |
| 8 | 8 | /** |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @link https://github.com/old-town/workflow-zf2 |
|
| 4 | - * @author Malofeykin Andrey <[email protected]> |
|
| 5 | - */ |
|
| 3 | + * @link https://github.com/old-town/workflow-zf2 |
|
| 4 | + * @author Malofeykin Andrey <[email protected]> |
|
| 5 | + */ |
|
| 6 | 6 | namespace OldTown\Workflow\ZF2\Exception; |
| 7 | 7 | |
| 8 | 8 | /** |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @link https://github.com/old-town/workflow-zf2 |
|
| 4 | - * @author Malofeykin Andrey <[email protected]> |
|
| 5 | - */ |
|
| 3 | + * @link https://github.com/old-town/workflow-zf2 |
|
| 4 | + * @author Malofeykin Andrey <[email protected]> |
|
| 5 | + */ |
|
| 6 | 6 | namespace OldTown\Workflow\ZF2\Event; |
| 7 | 7 | |
| 8 | 8 | use Zend\EventManager\Event; |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @link https://github.com/old-town/workflow-zf2 |
|
| 4 | - * @author Malofeykin Andrey <[email protected]> |
|
| 5 | - */ |
|
| 3 | + * @link https://github.com/old-town/workflow-zf2 |
|
| 4 | + * @author Malofeykin Andrey <[email protected]> |
|
| 5 | + */ |
|
| 6 | 6 | namespace OldTown\Workflow\ZF2\Event; |
| 7 | 7 | |
| 8 | 8 | use OldTown\Workflow\ZF2\ServiceEngine\Workflow\TransitionResultInterface; |
@@ -23,19 +23,19 @@ |
||
| 23 | 23 | * |
| 24 | 24 | * @var string |
| 25 | 25 | */ |
| 26 | - const EVENT_RENDER = 'render'; |
|
| 26 | + const EVENT_RENDER = 'render'; |
|
| 27 | 27 | |
| 28 | 28 | /** |
| 29 | 29 | * Запуск нового процесса workflow |
| 30 | 30 | * |
| 31 | 31 | * @var string |
| 32 | 32 | */ |
| 33 | - const EVENT_WORKFLOW_INITIALIZE = 'initialize'; |
|
| 33 | + const EVENT_WORKFLOW_INITIALIZE = 'initialize'; |
|
| 34 | 34 | |
| 35 | 35 | /** |
| 36 | 36 | * Запуск перехода между двумя действиями workflow |
| 37 | 37 | * |
| 38 | 38 | * @var string |
| 39 | 39 | */ |
| 40 | - const EVENT_DO_ACTION = 'doAction'; |
|
| 40 | + const EVENT_DO_ACTION = 'doAction'; |
|
| 41 | 41 | } |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @link https://github.com/old-town/workflow-zf2 |
|
| 4 | - * @author Malofeykin Andrey <[email protected]> |
|
| 5 | - */ |
|
| 3 | + * @link https://github.com/old-town/workflow-zf2 |
|
| 4 | + * @author Malofeykin Andrey <[email protected]> |
|
| 5 | + */ |
|
| 6 | 6 | namespace OldTown\Workflow\ZF2\Event; |
| 7 | 7 | |
| 8 | 8 | use OldTown\Workflow\WorkflowInterface; |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | * |
| 21 | 21 | * @var string |
| 22 | 22 | */ |
| 23 | - const EVENT_CREATE = 'workflow.manager.create'; |
|
| 23 | + const EVENT_CREATE = 'workflow.manager.create'; |
|
| 24 | 24 | |
| 25 | 25 | /** |
| 26 | 26 | * @var WorkflowInterface |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @link https://github.com/old-town/workflow-zf2 |
|
| 4 | - * @author Malofeykin Andrey <[email protected]> |
|
| 5 | - */ |
|
| 3 | + * @link https://github.com/old-town/workflow-zf2 |
|
| 4 | + * @author Malofeykin Andrey <[email protected]> |
|
| 5 | + */ |
|
| 6 | 6 | namespace OldTown\Workflow\ZF2\ServiceEngine\Exception; |
| 7 | 7 | |
| 8 | 8 | /** |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @link https://github.com/old-town/workflow-zf2 |
|
| 4 | - * @author Malofeykin Andrey <[email protected]> |
|
| 5 | - */ |
|
| 3 | + * @link https://github.com/old-town/workflow-zf2 |
|
| 4 | + * @author Malofeykin Andrey <[email protected]> |
|
| 5 | + */ |
|
| 6 | 6 | namespace OldTown\Workflow\ZF2\ServiceEngine\Exception; |
| 7 | 7 | |
| 8 | 8 | use OldTown\Workflow\ZF2\Exception\InvalidArgumentException as Exception; |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @link https://github.com/old-town/workflow-zf2 |
|
| 4 | - * @author Malofeykin Andrey <[email protected]> |
|
| 5 | - */ |
|
| 3 | + * @link https://github.com/old-town/workflow-zf2 |
|
| 4 | + * @author Malofeykin Andrey <[email protected]> |
|
| 5 | + */ |
|
| 6 | 6 | namespace OldTown\Workflow\ZF2\ServiceEngine\Exception; |
| 7 | 7 | |
| 8 | 8 | /** |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @link https://github.com/old-town/workflow-zf2 |
|
| 4 | - * @author Malofeykin Andrey <[email protected]> |
|
| 5 | - */ |
|
| 3 | + * @link https://github.com/old-town/workflow-zf2 |
|
| 4 | + * @author Malofeykin Andrey <[email protected]> |
|
| 5 | + */ |
|
| 6 | 6 | namespace OldTown\Workflow\ZF2\ServiceEngine; |
| 7 | 7 | |
| 8 | 8 | use OldTown\Workflow\Loader\WorkflowDescriptor; |
@@ -75,13 +75,13 @@ discard block |
||
| 75 | 75 | $errMsg = 'Argument serviceLocator not found'; |
| 76 | 76 | throw new Exception\InvalidArgumentException($errMsg); |
| 77 | 77 | } |
| 78 | - $this->setServiceLocator($options['serviceLocator']); |
|
| 78 | + $this->setServiceLocator($options[ 'serviceLocator' ]); |
|
| 79 | 79 | |
| 80 | 80 | if (!array_key_exists('moduleOptions', $options)) { |
| 81 | 81 | $errMsg = 'Argument moduleOptions not found'; |
| 82 | 82 | throw new Exception\InvalidArgumentException($errMsg); |
| 83 | 83 | } |
| 84 | - $this->setModuleOptions($options['moduleOptions']); |
|
| 84 | + $this->setModuleOptions($options[ 'moduleOptions' ]); |
|
| 85 | 85 | } |
| 86 | 86 | |
| 87 | 87 | /** |
@@ -259,7 +259,7 @@ discard block |
||
| 259 | 259 | } |
| 260 | 260 | $workflowManagerServiceName = $this->getWorkflowManagerServiceName($managerName); |
| 261 | 261 | |
| 262 | - $manager = $this->getServiceLocator()->get($workflowManagerServiceName); |
|
| 262 | + $manager = $this->getServiceLocator()->get($workflowManagerServiceName); |
|
| 263 | 263 | |
| 264 | 264 | if (!$manager instanceof WorkflowInterface) { |
| 265 | 265 | $errMsg = sprintf('Workflow manager not implement %s', WorkflowInterface::class); |
@@ -277,7 +277,7 @@ discard block |
||
| 277 | 277 | */ |
| 278 | 278 | public function getActionByName(WorkflowDescriptor $wf, $actionName) |
| 279 | 279 | { |
| 280 | - $actionName = (string)$actionName; |
|
| 280 | + $actionName = (string) $actionName; |
|
| 281 | 281 | |
| 282 | 282 | foreach ($wf->getGlobalActions() as $actionDescriptor) { |
| 283 | 283 | if ($actionName === $actionDescriptor->getName()) { |
@@ -344,7 +344,7 @@ discard block |
||
| 344 | 344 | */ |
| 345 | 345 | public function setWorkflowManagerServiceNamePattern($workflowManagerServiceNamePattern) |
| 346 | 346 | { |
| 347 | - $this->workflowManagerServiceNamePattern = (string)$workflowManagerServiceNamePattern; |
|
| 347 | + $this->workflowManagerServiceNamePattern = (string) $workflowManagerServiceNamePattern; |
|
| 348 | 348 | |
| 349 | 349 | return $this; |
| 350 | 350 | } |
@@ -366,7 +366,7 @@ discard block |
||
| 366 | 366 | throw new Exception\InvalidWorkflowManagerAliasException($errMsg); |
| 367 | 367 | } |
| 368 | 368 | |
| 369 | - return $aliasMap[$alias]; |
|
| 369 | + return $aliasMap[ $alias ]; |
|
| 370 | 370 | } |
| 371 | 371 | |
| 372 | 372 | |