@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @link https://github.com/old-town/old-town-workflow |
|
4 | - * @author Malofeykin Andrey <[email protected]> |
|
5 | - */ |
|
3 | + * @link https://github.com/old-town/old-town-workflow |
|
4 | + * @author Malofeykin Andrey <[email protected]> |
|
5 | + */ |
|
6 | 6 | namespace OldTown\Workflow\PhpUnitTest\Loader; |
7 | 7 | |
8 | 8 | use OldTown\Workflow\PhpUnit\Test\Paths; |
@@ -72,8 +72,8 @@ discard block |
||
72 | 72 | */ |
73 | 73 | protected function init() |
74 | 74 | { |
75 | - $this->callbackFactory = function (WorkflowDescriptor $descriptor) { |
|
76 | - return function () use ($descriptor) { |
|
75 | + $this->callbackFactory = function(WorkflowDescriptor $descriptor) { |
|
76 | + return function() use ($descriptor) { |
|
77 | 77 | return $descriptor; |
78 | 78 | }; |
79 | 79 | }; |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | */ |
205 | 205 | public function initializeWorkflowEntry($entryAlias, $workflowName, $initialAction) |
206 | 206 | { |
207 | - $entryAlias = (string)$entryAlias; |
|
207 | + $entryAlias = (string) $entryAlias; |
|
208 | 208 | if (array_key_exists($entryAlias, $this->entryAliasToEntryId)) { |
209 | 209 | $errMsg = sprintf('Alias %s already exists', $entryAlias); |
210 | 210 | throw new \RuntimeException($errMsg); |
@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | */ |
232 | 232 | public function callActionWithIdForWorkflowProcessWithAlias($entryAlias, $actionId) |
233 | 233 | { |
234 | - $entryAlias = (string)$entryAlias; |
|
234 | + $entryAlias = (string) $entryAlias; |
|
235 | 235 | if (!array_key_exists($entryAlias, $this->entryAliasToEntryId)) { |
236 | 236 | $errMsg = sprintf('Alias %s not exists', $entryAlias); |
237 | 237 | throw new \RuntimeException($errMsg); |
@@ -315,7 +315,7 @@ discard block |
||
315 | 315 | $currentSteps = $this->getWorkflowManager()->getConfiguration()->getWorkflowStore()->findCurrentSteps($entryId); |
316 | 316 | $actualCurrentSteps = []; |
317 | 317 | foreach ($currentSteps as $currentStep) { |
318 | - $actualCurrentSteps[(integer)$currentStep->getStepId()] = $currentStep; |
|
318 | + $actualCurrentSteps[(integer) $currentStep->getStepId()] = $currentStep; |
|
319 | 319 | } |
320 | 320 | |
321 | 321 | $stepsColumn = $steps->getColumn(0); |
@@ -325,7 +325,7 @@ discard block |
||
325 | 325 | } |
326 | 326 | |
327 | 327 | foreach ($stepsColumn as $currentStepFromColumn) { |
328 | - $currentStepFromColumn = (integer)$currentStepFromColumn; |
|
328 | + $currentStepFromColumn = (integer) $currentStepFromColumn; |
|
329 | 329 | if (!array_key_exists($currentStepFromColumn, $actualCurrentSteps)) { |
330 | 330 | $errMsg = sprintf('Step not found %s', $currentStepFromColumn); |
331 | 331 | throw new \RuntimeException($errMsg); |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @link https://github.com/old-town/old-town-workflow |
|
4 | - * @author Malofeykin Andrey <[email protected]> |
|
5 | - */ |
|
3 | + * @link https://github.com/old-town/old-town-workflow |
|
4 | + * @author Malofeykin Andrey <[email protected]> |
|
5 | + */ |
|
6 | 6 | namespace OldTown\Workflow\PhpUnitTest\Loader; |
7 | 7 | |
8 | 8 | use OldTown\Workflow\PhpUnit\Test\Paths; |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @link https://github.com/old-town/old-town-workflow |
|
4 | - * @author Malofeykin Andrey <[email protected]> |
|
5 | - */ |
|
3 | + * @link https://github.com/old-town/old-town-workflow |
|
4 | + * @author Malofeykin Andrey <[email protected]> |
|
5 | + */ |
|
6 | 6 | namespace OldTown\Workflow\PhpUnitTest\Loader; |
7 | 7 | |
8 | 8 | use OldTown\Workflow\PhpUnit\Test\Paths; |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @link https://github.com/old-town/old-town-workflow |
|
4 | - * @author Malofeykin Andrey <[email protected]> |
|
5 | - */ |
|
3 | + * @link https://github.com/old-town/old-town-workflow |
|
4 | + * @author Malofeykin Andrey <[email protected]> |
|
5 | + */ |
|
6 | 6 | namespace OldTown\Workflow\PhpUnitTest\Loader; |
7 | 7 | |
8 | 8 | use OldTown\Workflow\PhpUnit\Test\Paths; |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @link https://github.com/old-town/old-town-workflow |
|
4 | - * @author Malofeykin Andrey <[email protected]> |
|
5 | - */ |
|
3 | + * @link https://github.com/old-town/old-town-workflow |
|
4 | + * @author Malofeykin Andrey <[email protected]> |
|
5 | + */ |
|
6 | 6 | namespace OldTown\Workflow\PhpUnit\Utils; |
7 | 7 | |
8 | 8 | use OldTown\Workflow\PhpUnit\Test\Paths; |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @link https://github.com/old-town/old-town-workflow |
|
4 | - * @author Malofeykin Andrey <[email protected]> |
|
5 | - */ |
|
3 | + * @link https://github.com/old-town/old-town-workflow |
|
4 | + * @author Malofeykin Andrey <[email protected]> |
|
5 | + */ |
|
6 | 6 | namespace OldTown\Workflow\PhpUnit\Utils; |
7 | 7 | |
8 | 8 | use OldTown\Workflow\PhpUnit\Test\Paths; |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @link https://github.com/old-town/old-town-workflow |
|
4 | - * @author Malofeykin Andrey <[email protected]> |
|
5 | - */ |
|
3 | + * @link https://github.com/old-town/old-town-workflow |
|
4 | + * @author Malofeykin Andrey <[email protected]> |
|
5 | + */ |
|
6 | 6 | namespace OldTown\Workflow\PhpUnit\Utils; |
7 | 7 | |
8 | 8 | use OldTown\Workflow\PhpUnit\Test\Paths; |
@@ -199,7 +199,7 @@ discard block |
||
199 | 199 | public function initialize($workflowName, $initialAction, TransientVarsInterface $inputs = null) |
200 | 200 | { |
201 | 201 | try { |
202 | - $initialAction = (integer)$initialAction; |
|
202 | + $initialAction = (integer) $initialAction; |
|
203 | 203 | |
204 | 204 | $wf = $this->getConfiguration()->getWorkflow($workflowName); |
205 | 205 | |
@@ -302,7 +302,7 @@ discard block |
||
302 | 302 | |
303 | 303 | $currentSteps = $store->findCurrentSteps($id); |
304 | 304 | |
305 | - $engineManager = $this->getEngineManager(); |
|
305 | + $engineManager = $this->getEngineManager(); |
|
306 | 306 | $engineManager->getDataEngine()->populateTransientMap($entry, $transientVars, $wf->getRegisters(), 0, $currentSteps, $ps); |
307 | 307 | |
308 | 308 | $globalActions = $wf->getGlobalActions(); |
@@ -373,7 +373,7 @@ discard block |
||
373 | 373 | */ |
374 | 374 | public function doAction($entryId, $actionId, TransientVarsInterface $inputs = null) |
375 | 375 | { |
376 | - $actionId = (integer)$actionId; |
|
376 | + $actionId = (integer) $actionId; |
|
377 | 377 | if (null === $inputs) { |
378 | 378 | $inputs = $this->transientVarsFactory(); |
379 | 379 | } |
@@ -916,9 +916,9 @@ discard block |
||
916 | 916 | return $l; |
917 | 917 | } |
918 | 918 | |
919 | - $actions = $s->getActions(); |
|
919 | + $actions = $s->getActions(); |
|
920 | 920 | |
921 | - if (null === $actions || 0 === $actions->count()) { |
|
921 | + if (null === $actions || 0 === $actions->count()) { |
|
922 | 922 | return $l; |
923 | 923 | } |
924 | 924 | |
@@ -1209,7 +1209,7 @@ discard block |
||
1209 | 1209 | */ |
1210 | 1210 | public function setDefaultTypeResolverClass($defaultTypeResolverClass) |
1211 | 1211 | { |
1212 | - $this->defaultTypeResolverClass = (string)$defaultTypeResolverClass; |
|
1212 | + $this->defaultTypeResolverClass = (string) $defaultTypeResolverClass; |
|
1213 | 1213 | |
1214 | 1214 | return $this; |
1215 | 1215 | } |
@@ -1,8 +1,8 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @link https://github.com/old-town/old-town-workflow |
|
4 | - * @author Malofeykin Andrey <[email protected]> |
|
5 | - */ |
|
3 | + * @link https://github.com/old-town/old-town-workflow |
|
4 | + * @author Malofeykin Andrey <[email protected]> |
|
5 | + */ |
|
6 | 6 | namespace OldTown\Workflow\Spi; |
7 | 7 | |
8 | 8 | use OldTown\PropertySet\PropertySetInterface; |
@@ -18,12 +18,12 @@ discard block |
||
18 | 18 | interface WorkflowStoreInterface |
19 | 19 | { |
20 | 20 | /** |
21 | - * Устанавливает состояние для текущего workflow |
|
22 | - * |
|
23 | - * @param integer $entryId id workflow |
|
24 | - * @param integer $state id состояния в которое переводится сущность workflow |
|
25 | - * @return void |
|
26 | - */ |
|
21 | + * Устанавливает состояние для текущего workflow |
|
22 | + * |
|
23 | + * @param integer $entryId id workflow |
|
24 | + * @param integer $state id состояния в которое переводится сущность workflow |
|
25 | + * @return void |
|
26 | + */ |
|
27 | 27 | public function setEntryState($entryId, $state); |
28 | 28 | |
29 | 29 | /** |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @link https://github.com/old-town/old-town-workflow |
|
4 | - * @author Malofeykin Andrey <[email protected]> |
|
5 | - */ |
|
3 | + * @link https://github.com/old-town/old-town-workflow |
|
4 | + * @author Malofeykin Andrey <[email protected]> |
|
5 | + */ |
|
6 | 6 | namespace OldTown\Workflow\PhpUnit\Utils; |
7 | 7 | |
8 | 8 | use OldTown\Workflow\PhpUnit\Test\Paths; |