@@ -114,7 +114,7 @@ |
||
114 | 114 | { |
115 | 115 | |
116 | 116 | if (!$manager instanceof ModuleManager) { |
117 | - $errMsg =sprintf('Module manager not implement %s', ModuleManager::class); |
|
117 | + $errMsg = sprintf('Module manager not implement %s', ModuleManager::class); |
|
118 | 118 | throw new Exception\ErrorInitModuleException($errMsg); |
119 | 119 | } |
120 | 120 | /** @var ModuleManager $manager */ |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | $event->getMvcEvent()->setParam(static::WORKFLOW_DISPATCH_EVENT, $event); |
99 | 99 | $event->setTarget($this); |
100 | 100 | |
101 | - $metadataResult = $this->getEventManager()->trigger(WorkflowDispatchEventInterface::LOAD_METADATA_EVENT, $event, function ($test) { |
|
101 | + $metadataResult = $this->getEventManager()->trigger(WorkflowDispatchEventInterface::LOAD_METADATA_EVENT, $event, function($test) { |
|
102 | 102 | return ($test instanceof MetadataInterface); |
103 | 103 | }); |
104 | 104 | $metadata = $metadataResult->last(); |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | } |
134 | 134 | |
135 | 135 | if (true === $flagRunWorkflow) { |
136 | - $runWorkflowParamResults = $this->getEventManager()->trigger(WorkflowDispatchEventInterface::METADATA_WORKFLOW_TO_RUN_EVENT, $event, function ($result) { |
|
136 | + $runWorkflowParamResults = $this->getEventManager()->trigger(WorkflowDispatchEventInterface::METADATA_WORKFLOW_TO_RUN_EVENT, $event, function($result) { |
|
137 | 137 | return ($result instanceof RunWorkflowParamInterface); |
138 | 138 | }); |
139 | 139 | $runWorkflowParamResult = $runWorkflowParamResults->last(); |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | $event->setRunWorkflowParam($runWorkflowParamResult); |
146 | 146 | |
147 | 147 | |
148 | - $runWorkflowResults = $this->getEventManager()->trigger(WorkflowDispatchEventInterface::RUN_WORKFLOW_EVENT, $event, function ($result) { |
|
148 | + $runWorkflowResults = $this->getEventManager()->trigger(WorkflowDispatchEventInterface::RUN_WORKFLOW_EVENT, $event, function($result) { |
|
149 | 149 | return ($result instanceof TransitionResultInterface); |
150 | 150 | }); |
151 | 151 | |
@@ -506,7 +506,7 @@ discard block |
||
506 | 506 | */ |
507 | 507 | public function setWorkflowDispatchEventClassName($workflowDispatchEventClassName) |
508 | 508 | { |
509 | - $this->workflowDispatchEventClassName = (string)$workflowDispatchEventClassName; |
|
509 | + $this->workflowDispatchEventClassName = (string) $workflowDispatchEventClassName; |
|
510 | 510 | |
511 | 511 | return $this; |
512 | 512 | } |
@@ -526,7 +526,7 @@ discard block |
||
526 | 526 | */ |
527 | 527 | public function setTransientVarsClassName($transientVarsClassName) |
528 | 528 | { |
529 | - $this->transientVarsClassName = (string)$transientVarsClassName; |
|
529 | + $this->transientVarsClassName = (string) $transientVarsClassName; |
|
530 | 530 | |
531 | 531 | return $this; |
532 | 532 | } |
@@ -57,7 +57,7 @@ |
||
57 | 57 | protected function init() |
58 | 58 | { |
59 | 59 | try { |
60 | - AnnotationRegistry::registerLoader(function ($class) { |
|
60 | + AnnotationRegistry::registerLoader(function($class) { |
|
61 | 61 | return (bool) class_exists($class); |
62 | 62 | }); |
63 | 63 | } catch (\Exception $e) { |
@@ -113,7 +113,7 @@ |
||
113 | 113 | */ |
114 | 114 | public function setHandler($handler = null) |
115 | 115 | { |
116 | - $this->handler = null !== $handler ? (string)$handler: $handler; |
|
116 | + $this->handler = null !== $handler ? (string) $handler : $handler; |
|
117 | 117 | |
118 | 118 | return $this; |
119 | 119 | } |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | */ |
107 | 107 | public function setWorkflowDispatch($workflowDispatch) |
108 | 108 | { |
109 | - $this->workflowDispatch = (boolean)$workflowDispatch; |
|
109 | + $this->workflowDispatch = (boolean) $workflowDispatch; |
|
110 | 110 | |
111 | 111 | return $this; |
112 | 112 | } |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | */ |
135 | 135 | public function setWorkflowRunType($workflowRunType) |
136 | 136 | { |
137 | - $this->workflowRunType = (string)$workflowRunType; |
|
137 | + $this->workflowRunType = (string) $workflowRunType; |
|
138 | 138 | |
139 | 139 | return $this; |
140 | 140 | } |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | */ |
160 | 160 | public function setFlagRunPrepareData($flagRunPrepareData) |
161 | 161 | { |
162 | - $this->flagRunPrepareData = (boolean)$flagRunPrepareData; |
|
162 | + $this->flagRunPrepareData = (boolean) $flagRunPrepareData; |
|
163 | 163 | |
164 | 164 | return $this; |
165 | 165 | } |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | $errMsg = sprintf('Not allowed prepare data method %s', $prepareDataMethod); |
191 | 191 | throw new Exception\InvalidMetadataException($errMsg); |
192 | 192 | } |
193 | - $this->prepareDataMethod = (string)$prepareDataMethod; |
|
193 | + $this->prepareDataMethod = (string) $prepareDataMethod; |
|
194 | 194 | |
195 | 195 | return $this; |
196 | 196 | } |
@@ -215,7 +215,7 @@ discard block |
||
215 | 215 | */ |
216 | 216 | public function setPrepareDataHandler($prepareDataHandler) |
217 | 217 | { |
218 | - $this->prepareDataHandler = (string)$prepareDataHandler; |
|
218 | + $this->prepareDataHandler = (string) $prepareDataHandler; |
|
219 | 219 | |
220 | 220 | return $this; |
221 | 221 | } |
@@ -239,7 +239,7 @@ discard block |
||
239 | 239 | */ |
240 | 240 | public function setFlagHasConditions($flagHasConditions) |
241 | 241 | { |
242 | - $this->flagHasConditions = (boolean)$flagHasConditions; |
|
242 | + $this->flagHasConditions = (boolean) $flagHasConditions; |
|
243 | 243 | |
244 | 244 | return $this; |
245 | 245 | } |
@@ -131,7 +131,7 @@ |
||
131 | 131 | */ |
132 | 132 | public function setEntryIdRouterParam($entryIdRouterParam) |
133 | 133 | { |
134 | - $this->entryIdRouterParam = (string)$entryIdRouterParam; |
|
134 | + $this->entryIdRouterParam = (string) $entryIdRouterParam; |
|
135 | 135 | |
136 | 136 | return $this; |
137 | 137 | } |
@@ -142,7 +142,7 @@ |
||
142 | 142 | |
143 | 143 | if (RunWorkflowParam::WORKFLOW_RUN_TYPE_DO_ACTION === $runType && null === $workflowName) { |
144 | 144 | $event = $this->resolveEntryIdEventFactory(); |
145 | - $resolveEntryIdResults = $this->getEventManager()->trigger(ResolveEntryIdEventInterface::RESOLVE_ENTRY_ID_EVENT, $event, function ($item) { |
|
145 | + $resolveEntryIdResults = $this->getEventManager()->trigger(ResolveEntryIdEventInterface::RESOLVE_ENTRY_ID_EVENT, $event, function($item) { |
|
146 | 146 | return is_numeric($item); |
147 | 147 | }); |
148 | 148 | $resolveEntryIdResult = $resolveEntryIdResults->last(); |
@@ -29,7 +29,7 @@ |
||
29 | 29 | ); |
30 | 30 | |
31 | 31 | |
32 | - $this->getApplication()->getEventManager()->attach(MvcEvent::EVENT_DISPATCH_ERROR, function (MvcEvent $e) { |
|
32 | + $this->getApplication()->getEventManager()->attach(MvcEvent::EVENT_DISPATCH_ERROR, function(MvcEvent $e) { |
|
33 | 33 | $exception = $e->getParam('exception', null); |
34 | 34 | if ($exception) { |
35 | 35 | throw $exception; |
@@ -29,7 +29,7 @@ |
||
29 | 29 | ); |
30 | 30 | |
31 | 31 | |
32 | - $this->getApplication()->getEventManager()->attach(MvcEvent::EVENT_DISPATCH_ERROR, function (MvcEvent $e) { |
|
32 | + $this->getApplication()->getEventManager()->attach(MvcEvent::EVENT_DISPATCH_ERROR, function(MvcEvent $e) { |
|
33 | 33 | $exception = $e->getParam('exception', null); |
34 | 34 | if ($exception) { |
35 | 35 | throw $exception; |