@@ -86,11 +86,11 @@ |
||
| 86 | 86 | $expectedActionJob = new Job( |
| 87 | 87 | ExecuteActionCommand::COMMAND_NAME, |
| 88 | 88 | [ |
| 89 | - '--action=' . $action->getName(), |
|
| 90 | - '--arguments=' . json_encode($action->getArguments()), |
|
| 91 | - '--workflow=' . $workflowContext->getWorkflow()->getName(), |
|
| 92 | - '--subjectClass=' . get_class($workflowContext->getSubject()), |
|
| 93 | - '--subjectId=' . $workflowContext->getSubjectId() |
|
| 89 | + '--action='.$action->getName(), |
|
| 90 | + '--arguments='.json_encode($action->getArguments()), |
|
| 91 | + '--workflow='.$workflowContext->getWorkflow()->getName(), |
|
| 92 | + '--subjectClass='.get_class($workflowContext->getSubject()), |
|
| 93 | + '--subjectId='.$workflowContext->getSubjectId() |
|
| 94 | 94 | ] |
| 95 | 95 | ); |
| 96 | 96 | |
@@ -40,10 +40,10 @@ discard block |
||
| 40 | 40 | foreach ($actionRegistry as $actionName => $action) { |
| 41 | 41 | $this->register( |
| 42 | 42 | $actionName, |
| 43 | - function () use ($actionName, $actionExecutor) |
|
| 43 | + function() use ($actionName, $actionExecutor) |
|
| 44 | 44 | { |
| 45 | 45 | $rawArgs = func_get_args(); |
| 46 | - $compiledArgsArray = "array(". implode(", ", $rawArgs) . ")"; |
|
| 46 | + $compiledArgsArray = "array(".implode(", ", $rawArgs).")"; |
|
| 47 | 47 | |
| 48 | 48 | return sprintf( |
| 49 | 49 | '$container->get("gtt.workflow.action.executor")->execute($workflowContext, "%s", %s)', |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | $compiledArgsArray |
| 52 | 52 | ); |
| 53 | 53 | }, |
| 54 | - function () use ($actionName, $actionExecutor) |
|
| 54 | + function() use ($actionName, $actionExecutor) |
|
| 55 | 55 | { |
| 56 | 56 | $args = func_get_args(); |
| 57 | 57 | $variables = array_shift($args); |