@@ -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; |
| 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; |
| 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; |
| 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; |
| 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; |
| 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; |
| 7 | 7 | |
| 8 | 8 | |
@@ -76,13 +76,13 @@ discard block |
||
| 76 | 76 | $errMsg = 'Argument serviceLocator not found'; |
| 77 | 77 | throw new Exception\InvalidArgumentException($errMsg); |
| 78 | 78 | } |
| 79 | - $this->setServiceLocator($options['serviceLocator']); |
|
| 79 | + $this->setServiceLocator($options[ 'serviceLocator' ]); |
|
| 80 | 80 | |
| 81 | 81 | if (!array_key_exists('moduleOptions', $options)) { |
| 82 | 82 | $errMsg = 'Argument moduleOptions not found'; |
| 83 | 83 | throw new Exception\InvalidArgumentException($errMsg); |
| 84 | 84 | } |
| 85 | - $this->setModuleOptions($options['moduleOptions']); |
|
| 85 | + $this->setModuleOptions($options[ 'moduleOptions' ]); |
|
| 86 | 86 | } |
| 87 | 87 | |
| 88 | 88 | /** |
@@ -173,14 +173,14 @@ discard block |
||
| 173 | 173 | |
| 174 | 174 | $wf = $manager->getConfiguration()->getWorkflow($workflowName); |
| 175 | 175 | |
| 176 | - $findActions = []; |
|
| 176 | + $findActions = [ ]; |
|
| 177 | 177 | foreach ($currentSteps as $currentStep) { |
| 178 | 178 | $stepId = $currentStep->getStepId(); |
| 179 | 179 | $step = $wf->getStep($stepId); |
| 180 | 180 | $actions = $step->getActions(); |
| 181 | 181 | |
| 182 | 182 | foreach ($actions as $action) { |
| 183 | - $findActions[] = $action; |
|
| 183 | + $findActions[ ] = $action; |
|
| 184 | 184 | } |
| 185 | 185 | } |
| 186 | 186 | |
@@ -207,10 +207,10 @@ discard block |
||
| 207 | 207 | public function findActionByNameForEntry($managerName, $entryId, $actionName) |
| 208 | 208 | { |
| 209 | 209 | $actions = $this->getAvailableActions($managerName, $entryId); |
| 210 | - $findActions = []; |
|
| 210 | + $findActions = [ ]; |
|
| 211 | 211 | foreach ($actions as $action) { |
| 212 | 212 | if ($actionName === $action->getName()) { |
| 213 | - $findActions[] = $action; |
|
| 213 | + $findActions[ ] = $action; |
|
| 214 | 214 | } |
| 215 | 215 | } |
| 216 | 216 | |
@@ -221,8 +221,8 @@ discard block |
||
| 221 | 221 | 'Found more than one action workflow. Manager name: %s. Name action: %s. Ids: %s', |
| 222 | 222 | $managerName, |
| 223 | 223 | $actionName, |
| 224 | - implode(',', array_map(function ($action) { |
|
| 225 | - return is_object($action) && method_exists($action, 'getId') ? call_user_func([$action, 'getId']) : ''; |
|
| 224 | + implode(',', array_map(function($action) { |
|
| 225 | + return is_object($action) && method_exists($action, 'getId') ? call_user_func([ $action, 'getId' ]) : ''; |
|
| 226 | 226 | }, $findActions)) |
| 227 | 227 | ); |
| 228 | 228 | |
@@ -349,7 +349,7 @@ discard block |
||
| 349 | 349 | } |
| 350 | 350 | $workflowManagerServiceName = $this->getWorkflowManagerServiceName($managerName); |
| 351 | 351 | |
| 352 | - $manager = $this->getServiceLocator()->get($workflowManagerServiceName); |
|
| 352 | + $manager = $this->getServiceLocator()->get($workflowManagerServiceName); |
|
| 353 | 353 | |
| 354 | 354 | if (!$manager instanceof WorkflowInterface) { |
| 355 | 355 | $errMsg = sprintf('Workflow manager not implement %s', WorkflowInterface::class); |
@@ -370,7 +370,7 @@ discard block |
||
| 370 | 370 | */ |
| 371 | 371 | public function getActionByName(WorkflowDescriptor $wf, $actionName) |
| 372 | 372 | { |
| 373 | - $actionName = (string)$actionName; |
|
| 373 | + $actionName = (string) $actionName; |
|
| 374 | 374 | |
| 375 | 375 | foreach ($wf->getGlobalActions() as $actionDescriptor) { |
| 376 | 376 | if ($actionName === $actionDescriptor->getName()) { |
@@ -437,7 +437,7 @@ discard block |
||
| 437 | 437 | */ |
| 438 | 438 | public function setWorkflowManagerServiceNamePattern($workflowManagerServiceNamePattern) |
| 439 | 439 | { |
| 440 | - $this->workflowManagerServiceNamePattern = (string)$workflowManagerServiceNamePattern; |
|
| 440 | + $this->workflowManagerServiceNamePattern = (string) $workflowManagerServiceNamePattern; |
|
| 441 | 441 | |
| 442 | 442 | return $this; |
| 443 | 443 | } |
@@ -459,7 +459,7 @@ discard block |
||
| 459 | 459 | throw new Exception\InvalidWorkflowManagerAliasException($errMsg); |
| 460 | 460 | } |
| 461 | 461 | |
| 462 | - return $aliasMap[$alias]; |
|
| 462 | + return $aliasMap[ $alias ]; |
|
| 463 | 463 | } |
| 464 | 464 | |
| 465 | 465 | |
@@ -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; |
| 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; |
| 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; |
| 7 | 7 | |
| 8 | 8 | |