@@ -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; |
@@ -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; |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | |
88 | 88 | |
89 | 89 | |
90 | - $currentStepId = null !== $step ? $step->getStepId() : -1; |
|
90 | + $currentStepId = null !== $step ? $step->getStepId() : -1; |
|
91 | 91 | |
92 | 92 | |
93 | 93 | $conditionsEngine = $engineManager->getConditionsEngine(); |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | } |
112 | 112 | |
113 | 113 | |
114 | - if (null === $theResult) { |
|
114 | + if (null === $theResult) { |
|
115 | 115 | $theResult = $action->getUnconditionalResult(); |
116 | 116 | $this->verifyInputs($theResult->getValidators(), $transientVars, $ps); |
117 | 117 | $extraPreFunctions = $theResult->getPreFunctions(); |
@@ -345,15 +345,15 @@ discard block |
||
345 | 345 | |
346 | 346 | if (null !== $owner) { |
347 | 347 | $o = $variableResolver->translateVariables($owner, $transientVars, $ps); |
348 | - $owner = null !== $o ? (string)$o : null; |
|
348 | + $owner = null !== $o ? (string) $o : null; |
|
349 | 349 | } |
350 | 350 | |
351 | 351 | |
352 | 352 | $oldStatus = $theResult->getOldStatus(); |
353 | - $oldStatus = (string)$variableResolver->translateVariables($oldStatus, $transientVars, $ps); |
|
353 | + $oldStatus = (string) $variableResolver->translateVariables($oldStatus, $transientVars, $ps); |
|
354 | 354 | |
355 | 355 | $status = $theResult->getStatus(); |
356 | - $status = (string)$variableResolver->translateVariables($status, $transientVars, $ps); |
|
356 | + $status = (string) $variableResolver->translateVariables($status, $transientVars, $ps); |
|
357 | 357 | |
358 | 358 | |
359 | 359 | if (null !== $currentStep) { |
@@ -364,7 +364,7 @@ discard block |
||
364 | 364 | $startDate = new DateTime(); |
365 | 365 | $dueDate = null; |
366 | 366 | |
367 | - $theResultDueDate = (string)$theResult->getDueDate(); |
|
367 | + $theResultDueDate = (string) $theResult->getDueDate(); |
|
368 | 368 | $theResultDueDate = trim($theResultDueDate); |
369 | 369 | if (strlen($theResultDueDate) > 0) { |
370 | 370 | $dueDateObject = $variableResolver->translateVariables($theResultDueDate, $transientVars, $ps); |
@@ -383,15 +383,15 @@ discard block |
||
383 | 383 | } |
384 | 384 | |
385 | 385 | $newStep = $store->createCurrentStep($entry->getId(), $nextStep, $owner, $startDate, $dueDate, $status, $previousIds); |
386 | - $transientVars['createdStep'] = $newStep; |
|
386 | + $transientVars['createdStep'] = $newStep; |
|
387 | 387 | |
388 | 388 | if (null === $currentStep && 0 === count($previousIds)) { |
389 | 389 | $currentSteps = []; |
390 | 390 | $currentSteps[] = $newStep; |
391 | - $transientVars['currentSteps'] = $currentSteps; |
|
391 | + $transientVars['currentSteps'] = $currentSteps; |
|
392 | 392 | } |
393 | 393 | |
394 | - if (! $transientVars->offsetExists('descriptor')) { |
|
394 | + if (!$transientVars->offsetExists('descriptor')) { |
|
395 | 395 | $errMsg = 'Ошибка при получение дескриптора workflow из transientVars'; |
396 | 396 | throw new InternalWorkflowException($errMsg); |
397 | 397 | } |
@@ -711,7 +711,7 @@ discard block |
||
711 | 711 | } |
712 | 712 | |
713 | 713 | |
714 | - $result = (boolean)$result; |
|
714 | + $result = (boolean) $result; |
|
715 | 715 | |
716 | 716 | return $result; |
717 | 717 | } |
@@ -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; |
@@ -127,7 +127,7 @@ |
||
127 | 127 | $args = $this->getWorkflowManager()->getEngineManager()->getArgsEngine()->prepareArgs($argsOriginal, $transientVars, $ps); |
128 | 128 | |
129 | 129 | if (-1 !== $currentStepId) { |
130 | - $stepId = array_key_exists('stepId', $args) ? (integer)$args['stepId'] : null; |
|
130 | + $stepId = array_key_exists('stepId', $args) ? (integer) $args['stepId'] : null; |
|
131 | 131 | |
132 | 132 | if (null !== $stepId && -1 === $stepId) { |
133 | 133 | $args['stepId'] = $currentStepId; |
@@ -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; |