@@ -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 | /** |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | |
177 | 177 | $wf = $manager->getConfiguration()->getWorkflow($workflowName); |
178 | 178 | |
179 | - $findActions = []; |
|
179 | + $findActions = [ ]; |
|
180 | 180 | foreach ($currentSteps as $currentStep) { |
181 | 181 | $stepId = $currentStep->getStepId(); |
182 | 182 | $step = $wf->getStep($stepId); |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | |
185 | 185 | foreach ($actions as $action) { |
186 | 186 | if ($actionName === $action->getName()) { |
187 | - $findActions[] = $action; |
|
187 | + $findActions[ ] = $action; |
|
188 | 188 | } |
189 | 189 | } |
190 | 190 | } |
@@ -196,8 +196,8 @@ discard block |
||
196 | 196 | $managerName, |
197 | 197 | $workflowName, |
198 | 198 | $actionName, |
199 | - implode(',', array_map(function ($action) { |
|
200 | - return is_object($action) && method_exists($action, 'getId') ? call_user_func([$action, 'getId']) : ''; |
|
199 | + implode(',', array_map(function($action) { |
|
200 | + return is_object($action) && method_exists($action, 'getId') ? call_user_func([ $action, 'getId' ]) : ''; |
|
201 | 201 | }, $findActions)) |
202 | 202 | ); |
203 | 203 | |
@@ -324,7 +324,7 @@ discard block |
||
324 | 324 | } |
325 | 325 | $workflowManagerServiceName = $this->getWorkflowManagerServiceName($managerName); |
326 | 326 | |
327 | - $manager = $this->getServiceLocator()->get($workflowManagerServiceName); |
|
327 | + $manager = $this->getServiceLocator()->get($workflowManagerServiceName); |
|
328 | 328 | |
329 | 329 | if (!$manager instanceof WorkflowInterface) { |
330 | 330 | $errMsg = sprintf('Workflow manager not implement %s', WorkflowInterface::class); |
@@ -345,7 +345,7 @@ discard block |
||
345 | 345 | */ |
346 | 346 | public function getActionByName(WorkflowDescriptor $wf, $actionName) |
347 | 347 | { |
348 | - $actionName = (string)$actionName; |
|
348 | + $actionName = (string) $actionName; |
|
349 | 349 | |
350 | 350 | foreach ($wf->getGlobalActions() as $actionDescriptor) { |
351 | 351 | if ($actionName === $actionDescriptor->getName()) { |
@@ -412,7 +412,7 @@ discard block |
||
412 | 412 | */ |
413 | 413 | public function setWorkflowManagerServiceNamePattern($workflowManagerServiceNamePattern) |
414 | 414 | { |
415 | - $this->workflowManagerServiceNamePattern = (string)$workflowManagerServiceNamePattern; |
|
415 | + $this->workflowManagerServiceNamePattern = (string) $workflowManagerServiceNamePattern; |
|
416 | 416 | |
417 | 417 | return $this; |
418 | 418 | } |
@@ -434,7 +434,7 @@ discard block |
||
434 | 434 | throw new Exception\InvalidWorkflowManagerAliasException($errMsg); |
435 | 435 | } |
436 | 436 | |
437 | - return $aliasMap[$alias]; |
|
437 | + return $aliasMap[ $alias ]; |
|
438 | 438 | } |
439 | 439 | |
440 | 440 |