@@ -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; |
@@ -771,7 +771,7 @@ |
||
| 771 | 771 | * @param $methodName |
| 772 | 772 | * @param TableNode $table |
| 773 | 773 | * |
| 774 | - * @return mixed |
|
| 774 | + * @return AbstractDescriptor |
|
| 775 | 775 | * @throws \RuntimeException |
| 776 | 776 | */ |
| 777 | 777 | public function getTheDescriptorUsingTheMethodOfTheArgumentsOfTheMethod($methodName, TableNode $table) |
@@ -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; |
@@ -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; |