@@ -248,7 +248,7 @@ discard block |
||
| 248 | 248 | * Переход между двумя статусами |
| 249 | 249 | * |
| 250 | 250 | * @param WorkflowEntryInterface $entry |
| 251 | - * @param SplObjectStorage|StepInterface[] $currentSteps |
|
| 251 | + * @param SplObjectStorage $currentSteps |
|
| 252 | 252 | * @param WorkflowStoreInterface $store |
| 253 | 253 | * @param WorkflowDescriptor $wf |
| 254 | 254 | * @param ActionDescriptor $action |
@@ -497,7 +497,7 @@ discard block |
||
| 497 | 497 | |
| 498 | 498 | |
| 499 | 499 | /** |
| 500 | - * @param $id |
|
| 500 | + * @param integer $id |
|
| 501 | 501 | * @param TransientVarsInterface $inputs |
| 502 | 502 | * |
| 503 | 503 | * @return array |
@@ -874,7 +874,7 @@ discard block |
||
| 874 | 874 | |
| 875 | 875 | /** |
| 876 | 876 | * @param ActionDescriptor $action |
| 877 | - * @param $id |
|
| 877 | + * @param integer $id |
|
| 878 | 878 | * |
| 879 | 879 | * @return void |
| 880 | 880 | * |
@@ -1170,7 +1170,7 @@ discard block |
||
| 1170 | 1170 | * |
| 1171 | 1171 | * @param WorkflowDescriptor $wfDesc |
| 1172 | 1172 | * @param integer $actionId |
| 1173 | - * @param StepInterface[]|SplObjectStorage $currentSteps |
|
| 1173 | + * @param SplObjectStorage $currentSteps |
|
| 1174 | 1174 | * @param TransientVarsInterface $transientVars |
| 1175 | 1175 | * @param PropertySetInterface $ps |
| 1176 | 1176 | * |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | public function initialize($workflowName, $initialAction, TransientVarsInterface $inputs = null) |
| 120 | 120 | { |
| 121 | 121 | try { |
| 122 | - $initialAction = (integer)$initialAction; |
|
| 122 | + $initialAction = (integer) $initialAction; |
|
| 123 | 123 | |
| 124 | 124 | $wf = $this->getConfiguration()->getWorkflow($workflowName); |
| 125 | 125 | |
@@ -297,7 +297,7 @@ discard block |
||
| 297 | 297 | $theResult = null; |
| 298 | 298 | |
| 299 | 299 | |
| 300 | - $currentStepId = null !== $step ? $step->getStepId() : -1; |
|
| 300 | + $currentStepId = null !== $step ? $step->getStepId() : -1; |
|
| 301 | 301 | foreach ($conditionalResults as $conditionalResult) { |
| 302 | 302 | if ($this->passesConditionsWithType(null, $conditionalResult->getConditions(), $transientVars, $ps, $currentStepId)) { |
| 303 | 303 | $theResult = $conditionalResult; |
@@ -315,7 +315,7 @@ discard block |
||
| 315 | 315 | } |
| 316 | 316 | |
| 317 | 317 | |
| 318 | - if (null === $theResult) { |
|
| 318 | + if (null === $theResult) { |
|
| 319 | 319 | $theResult = $action->getUnconditionalResult(); |
| 320 | 320 | $this->verifyInputs($entry, $theResult->getValidators(), $transientVars, $ps); |
| 321 | 321 | $extraPreFunctions = $theResult->getPreFunctions(); |
@@ -696,15 +696,15 @@ discard block |
||
| 696 | 696 | |
| 697 | 697 | if (null !== $owner) { |
| 698 | 698 | $o = $variableResolver->translateVariables($owner, $transientVars, $ps); |
| 699 | - $owner = null !== $o ? (string)$o : null; |
|
| 699 | + $owner = null !== $o ? (string) $o : null; |
|
| 700 | 700 | } |
| 701 | 701 | |
| 702 | 702 | |
| 703 | 703 | $oldStatus = $theResult->getOldStatus(); |
| 704 | - $oldStatus = (string)$variableResolver->translateVariables($oldStatus, $transientVars, $ps); |
|
| 704 | + $oldStatus = (string) $variableResolver->translateVariables($oldStatus, $transientVars, $ps); |
|
| 705 | 705 | |
| 706 | 706 | $status = $theResult->getStatus(); |
| 707 | - $status = (string)$variableResolver->translateVariables($status, $transientVars, $ps); |
|
| 707 | + $status = (string) $variableResolver->translateVariables($status, $transientVars, $ps); |
|
| 708 | 708 | |
| 709 | 709 | |
| 710 | 710 | if (null !== $currentStep) { |
@@ -715,7 +715,7 @@ discard block |
||
| 715 | 715 | $startDate = new DateTime(); |
| 716 | 716 | $dueDate = null; |
| 717 | 717 | |
| 718 | - $theResultDueDate = (string)$theResult->getDueDate(); |
|
| 718 | + $theResultDueDate = (string) $theResult->getDueDate(); |
|
| 719 | 719 | $theResultDueDate = trim($theResultDueDate); |
| 720 | 720 | if (strlen($theResultDueDate) > 0) { |
| 721 | 721 | $dueDateObject = $variableResolver->translateVariables($theResultDueDate, $transientVars, $ps); |
@@ -733,15 +733,15 @@ discard block |
||
| 733 | 733 | } |
| 734 | 734 | |
| 735 | 735 | $newStep = $store->createCurrentStep($entry->getId(), $nextStep, $owner, $startDate, $dueDate, $status, $previousIds); |
| 736 | - $transientVars['createdStep'] = $newStep; |
|
| 736 | + $transientVars['createdStep'] = $newStep; |
|
| 737 | 737 | |
| 738 | 738 | if (null === $currentStep && 0 === count($previousIds)) { |
| 739 | 739 | $currentSteps = []; |
| 740 | 740 | $currentSteps[] = $newStep; |
| 741 | - $transientVars['currentSteps'] = $currentSteps; |
|
| 741 | + $transientVars['currentSteps'] = $currentSteps; |
|
| 742 | 742 | } |
| 743 | 743 | |
| 744 | - if (! $transientVars->offsetExists('descriptor')) { |
|
| 744 | + if (!$transientVars->offsetExists('descriptor')) { |
|
| 745 | 745 | $errMsg = 'Ошибка при получение дескриптора workflow из transientVars'; |
| 746 | 746 | throw new InternalWorkflowException($errMsg); |
| 747 | 747 | } |
@@ -801,7 +801,7 @@ discard block |
||
| 801 | 801 | */ |
| 802 | 802 | public function doAction($id, $actionId, TransientVarsInterface $inputs = null) |
| 803 | 803 | { |
| 804 | - $actionId = (integer)$actionId; |
|
| 804 | + $actionId = (integer) $actionId; |
|
| 805 | 805 | if (null === $inputs) { |
| 806 | 806 | $inputs = $this->transientVarsFactory(); |
| 807 | 807 | } |
@@ -1242,7 +1242,7 @@ discard block |
||
| 1242 | 1242 | } |
| 1243 | 1243 | |
| 1244 | 1244 | |
| 1245 | - $result = (boolean)$result; |
|
| 1245 | + $result = (boolean) $result; |
|
| 1246 | 1246 | |
| 1247 | 1247 | return $result; |
| 1248 | 1248 | } |
@@ -1629,9 +1629,9 @@ discard block |
||
| 1629 | 1629 | return $l; |
| 1630 | 1630 | } |
| 1631 | 1631 | |
| 1632 | - $actions = $s->getActions(); |
|
| 1632 | + $actions = $s->getActions(); |
|
| 1633 | 1633 | |
| 1634 | - if (null === $actions || 0 === $actions->count()) { |
|
| 1634 | + if (null === $actions || 0 === $actions->count()) { |
|
| 1635 | 1635 | return $l; |
| 1636 | 1636 | } |
| 1637 | 1637 | |
@@ -1938,7 +1938,7 @@ discard block |
||
| 1938 | 1938 | */ |
| 1939 | 1939 | public function setDefaultTypeResolverClass($defaultTypeResolverClass) |
| 1940 | 1940 | { |
| 1941 | - $this->defaultTypeResolverClass = (string)$defaultTypeResolverClass; |
|
| 1941 | + $this->defaultTypeResolverClass = (string) $defaultTypeResolverClass; |
|
| 1942 | 1942 | |
| 1943 | 1943 | return $this; |
| 1944 | 1944 | } |
@@ -2042,7 +2042,7 @@ discard block |
||
| 2042 | 2042 | } |
| 2043 | 2043 | |
| 2044 | 2044 | if (-1 !== $currentStepId) { |
| 2045 | - $stepId = array_key_exists('stepId', $args) ? (integer)$args['stepId'] : null; |
|
| 2045 | + $stepId = array_key_exists('stepId', $args) ? (integer) $args['stepId'] : null; |
|
| 2046 | 2046 | |
| 2047 | 2047 | if (null !== $stepId && -1 === $stepId) { |
| 2048 | 2048 | $args['stepId'] = $currentStepId; |
@@ -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; |
| 7 | 7 | |
| 8 | 8 | use OldTown\Log\LogFactory; |
@@ -1920,7 +1920,6 @@ discard block |
||
| 1920 | 1920 | * @throws \OldTown\Workflow\Exception\WorkflowException |
| 1921 | 1921 | * @throws \OldTown\Workflow\Exception\StoreException |
| 1922 | 1922 | * @throws \OldTown\Workflow\Exception\InternalWorkflowException |
| 1923 | - |
|
| 1924 | 1923 | */ |
| 1925 | 1924 | public function query(WorkflowExpressionQuery $query) |
| 1926 | 1925 | { |
@@ -218,7 +218,7 @@ |
||
| 218 | 218 | } |
| 219 | 219 | |
| 220 | 220 | /** |
| 221 | - * @return \String[] |
|
| 221 | + * @return string[] |
|
| 222 | 222 | */ |
| 223 | 223 | public function getWorkflowNames() |
| 224 | 224 | { |
@@ -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; |
@@ -377,7 +377,7 @@ discard block |
||
| 377 | 377 | * Удаляет workflow |
| 378 | 378 | * |
| 379 | 379 | * @param string $workflow имя удаляемого workflow |
| 380 | - * @return boolean в случае успешного удаления возвращает true, в противном случае false |
|
| 380 | + * @return boolean|null в случае успешного удаления возвращает true, в противном случае false |
|
| 381 | 381 | * @throws FactoryException |
| 382 | 382 | */ |
| 383 | 383 | public function removeWorkflow($workflow) |
@@ -391,7 +391,7 @@ discard block |
||
| 391 | 391 | * @param WorkflowDescriptor $descriptor дескриптор workflow |
| 392 | 392 | * @param boolean $replace - флаг определяющий, можно ли замениить workflow |
| 393 | 393 | * |
| 394 | - * @return boolean |
|
| 394 | + * @return boolean|null |
|
| 395 | 395 | * |
| 396 | 396 | * @throws FactoryException |
| 397 | 397 | * @throws \OldTown\Workflow\Exception\InvalidWorkflowDescriptorException |
@@ -202,7 +202,7 @@ discard block |
||
| 202 | 202 | |
| 203 | 203 | $p = XmlUtil::getChildElement($root, 'persistence'); |
| 204 | 204 | $resolver = XmlUtil::getChildElement($root, 'resolver'); |
| 205 | - $factoryElement = XmlUtil::getChildElement($root, 'factory'); |
|
| 205 | + $factoryElement = XmlUtil::getChildElement($root, 'factory'); |
|
| 206 | 206 | |
| 207 | 207 | |
| 208 | 208 | if (null !== $resolver && $resolver->hasAttribute('class')) { |
@@ -264,7 +264,7 @@ discard block |
||
| 264 | 264 | } catch (FactoryException $e) { |
| 265 | 265 | throw $e; |
| 266 | 266 | } catch (\Exception $e) { |
| 267 | - $class = (string)$class; |
|
| 267 | + $class = (string) $class; |
|
| 268 | 268 | $errMsg = "Ошибка создания фабрики workflow для класса {$class}"; |
| 269 | 269 | throw new FactoryException($errMsg, $e->getCode(), $e); |
| 270 | 270 | } |
@@ -290,7 +290,7 @@ discard block |
||
| 290 | 290 | protected function getContentConfigFile(UriInterface $url = null) |
| 291 | 291 | { |
| 292 | 292 | if (null !== $url) { |
| 293 | - $urlStr = (string)$url; |
|
| 293 | + $urlStr = (string) $url; |
|
| 294 | 294 | $content = file_get_contents($urlStr); |
| 295 | 295 | |
| 296 | 296 | return $content; |
@@ -339,7 +339,7 @@ discard block |
||
| 339 | 339 | */ |
| 340 | 340 | public static function addDefaultPathToConfig($path) |
| 341 | 341 | { |
| 342 | - $path = (string)$path; |
|
| 342 | + $path = (string) $path; |
|
| 343 | 343 | |
| 344 | 344 | array_unshift(self::$defaultPathsToConfig, $path); |
| 345 | 345 | } |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | /** |
| 45 | 45 | * Возвращает dom документ |
| 46 | 46 | * |
| 47 | - * @param DomDocumentType $domDocumentType |
|
| 47 | + * @param DOMDocumentType $domDocumentType |
|
| 48 | 48 | * |
| 49 | 49 | * @return string |
| 50 | 50 | * @throws \OldTown\Workflow\Exception\InvalidDtdSchemaException |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | } |
| 75 | 75 | |
| 76 | 76 | /** |
| 77 | - * @param $path |
|
| 77 | + * @param string $path |
|
| 78 | 78 | * |
| 79 | 79 | * @return string |
| 80 | 80 | * @throws InvalidDtdSchemaException |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | } |
| 150 | 150 | |
| 151 | 151 | /** |
| 152 | - * @param $uri |
|
| 152 | + * @param string $uri |
|
| 153 | 153 | * @return UriInterface |
| 154 | 154 | */ |
| 155 | 155 | protected function uriFactory($uri) |
@@ -166,7 +166,7 @@ discard block |
||
| 166 | 166 | /** |
| 167 | 167 | * Возвращает путь до директории в которой находятся схемы для валидации |
| 168 | 168 | * |
| 169 | - * @return null|string |
|
| 169 | + * @return string |
|
| 170 | 170 | */ |
| 171 | 171 | public function getPathToSchemas() |
| 172 | 172 | { |
@@ -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; |
@@ -571,7 +571,7 @@ |
||
| 571 | 571 | |
| 572 | 572 | |
| 573 | 573 | /** |
| 574 | - * @param $id |
|
| 574 | + * @param integer $id |
|
| 575 | 575 | * |
| 576 | 576 | * @return ActionDescriptor|null |
| 577 | 577 | * @throws \OldTown\Workflow\Exception\ArgumentNotNumericException |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | */ |
| 155 | 155 | public function setName($workflowName) |
| 156 | 156 | { |
| 157 | - $this->workflowName = (string)$workflowName; |
|
| 157 | + $this->workflowName = (string) $workflowName; |
|
| 158 | 158 | |
| 159 | 159 | return $this; |
| 160 | 160 | } |
@@ -258,7 +258,7 @@ discard block |
||
| 258 | 258 | $dtd = $secureDtdEntityResolver->resolveEntity($dom->doctype); |
| 259 | 259 | |
| 260 | 260 | |
| 261 | - $systemId = 'data://text/plain;base64,'.base64_encode($dtd); |
|
| 261 | + $systemId = 'data://text/plain;base64,' . base64_encode($dtd); |
|
| 262 | 262 | |
| 263 | 263 | $creator = new DOMImplementation; |
| 264 | 264 | $doctype = $creator->createDocumentType( |
@@ -483,7 +483,7 @@ discard block |
||
| 483 | 483 | $errMsg = 'Аргумент должен быть числом'; |
| 484 | 484 | throw new ArgumentNotNumericException($errMsg); |
| 485 | 485 | } |
| 486 | - $id = (integer)$id; |
|
| 486 | + $id = (integer) $id; |
|
| 487 | 487 | |
| 488 | 488 | foreach ($this->getSteps() as $step) { |
| 489 | 489 | if ($id === $step->getId()) { |
@@ -499,7 +499,7 @@ discard block |
||
| 499 | 499 | */ |
| 500 | 500 | public function getAction($id) |
| 501 | 501 | { |
| 502 | - $id = (integer)$id; |
|
| 502 | + $id = (integer) $id; |
|
| 503 | 503 | |
| 504 | 504 | foreach ($this->getGlobalActions() as $actionDescriptor) { |
| 505 | 505 | if ($id === $actionDescriptor->getId()) { |
@@ -562,7 +562,7 @@ discard block |
||
| 562 | 562 | */ |
| 563 | 563 | public function getCommonAction($id) |
| 564 | 564 | { |
| 565 | - $id = (integer)$id; |
|
| 565 | + $id = (integer) $id; |
|
| 566 | 566 | if (array_key_exists($id, $this->commonActions)) { |
| 567 | 567 | return $this->commonActions[$id]; |
| 568 | 568 | } |
@@ -582,7 +582,7 @@ discard block |
||
| 582 | 582 | $errMsg = 'Аргумент должен быть числом'; |
| 583 | 583 | throw new ArgumentNotNumericException($errMsg); |
| 584 | 584 | } |
| 585 | - $id = (integer)$id; |
|
| 585 | + $id = (integer) $id; |
|
| 586 | 586 | |
| 587 | 587 | $initialActions = $this->getInitialActions(); |
| 588 | 588 | foreach ($initialActions as $actionDescriptor) { |
@@ -615,7 +615,7 @@ discard block |
||
| 615 | 615 | $errMsg = 'Аргумент должен быть числом'; |
| 616 | 616 | throw new ArgumentNotNumericException($errMsg); |
| 617 | 617 | } |
| 618 | - $id = (integer)$id; |
|
| 618 | + $id = (integer) $id; |
|
| 619 | 619 | |
| 620 | 620 | $joins = $this->getJoins(); |
| 621 | 621 | foreach ($joins as $joinDescriptor) { |
@@ -665,7 +665,7 @@ discard block |
||
| 665 | 665 | $errMsg = 'Аргумент должен быть числом'; |
| 666 | 666 | throw new ArgumentNotNumericException($errMsg); |
| 667 | 667 | } |
| 668 | - $id = (integer)$id; |
|
| 668 | + $id = (integer) $id; |
|
| 669 | 669 | |
| 670 | 670 | $splits = $this->getSplits(); |
| 671 | 671 | foreach ($splits as $splitDescriptor) { |
@@ -690,7 +690,7 @@ discard block |
||
| 690 | 690 | $errMsg = 'Аргумент должен быть числом'; |
| 691 | 691 | throw new ArgumentNotNumericException($errMsg); |
| 692 | 692 | } |
| 693 | - $id = (integer)$id; |
|
| 693 | + $id = (integer) $id; |
|
| 694 | 694 | $this->timerFunctions[$id] = $descriptor; |
| 695 | 695 | |
| 696 | 696 | return $this; |
@@ -707,7 +707,7 @@ discard block |
||
| 707 | 707 | $errMsg = 'Аргумент должен быть числом'; |
| 708 | 708 | throw new ArgumentNotNumericException($errMsg); |
| 709 | 709 | } |
| 710 | - $id = (integer)$id; |
|
| 710 | + $id = (integer) $id; |
|
| 711 | 711 | |
| 712 | 712 | if (!array_key_exists($id, $this->timerFunctions)) { |
| 713 | 713 | $errMsg = sprintf('Не найдена trigger-function с id %s', $id); |
@@ -872,7 +872,7 @@ discard block |
||
| 872 | 872 | { |
| 873 | 873 | if (null === $dom) { |
| 874 | 874 | $imp = new DOMImplementation(); |
| 875 | - $dtd = $imp->createDocumentType( |
|
| 875 | + $dtd = $imp->createDocumentType( |
|
| 876 | 876 | static::DOCUMENT_TYPE_QUALIFIED_NAME, |
| 877 | 877 | static::DOCUMENT_TYPE_PUBLIC_ID, |
| 878 | 878 | static::DOCUMENT_TYPE_SYSTEM_ID |
@@ -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; |
@@ -314,7 +314,7 @@ discard block |
||
| 314 | 314 | /** |
| 315 | 315 | * Поиск по истории шагов |
| 316 | 316 | * |
| 317 | - * @param $entryId |
|
| 317 | + * @param integer $entryId |
|
| 318 | 318 | * |
| 319 | 319 | * @return SimpleStep[]|SplObjectStorage |
| 320 | 320 | */ |
@@ -687,7 +687,7 @@ discard block |
||
| 687 | 687 | * |
| 688 | 688 | * @param $value1 |
| 689 | 689 | * @param $value2 |
| 690 | - * @param $operator |
|
| 690 | + * @param integer $operator |
|
| 691 | 691 | * |
| 692 | 692 | * @return bool |
| 693 | 693 | * |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | $errMsg = sprintf('Аргумент должен быть числом. Актуальное значение %s', $entryId); |
| 90 | 90 | throw new ArgumentNotNumericException($errMsg); |
| 91 | 91 | } |
| 92 | - $entryId = (integer)$entryId; |
|
| 92 | + $entryId = (integer) $entryId; |
|
| 93 | 93 | |
| 94 | 94 | $ps = $this->createPropertySet(); |
| 95 | 95 | static::$propertySetCache[$entryId] = $ps; |
@@ -220,7 +220,7 @@ discard block |
||
| 220 | 220 | $errMsg = sprintf('Аргумент должен быть числом. Актуальное значение %s', $entryId); |
| 221 | 221 | throw new ArgumentNotNumericException($errMsg); |
| 222 | 222 | } |
| 223 | - $entryId = (integer)$entryId; |
|
| 223 | + $entryId = (integer) $entryId; |
|
| 224 | 224 | |
| 225 | 225 | if (!array_key_exists($entryId, static::$currentStepsCache)) { |
| 226 | 226 | $currentSteps = new SplObjectStorage(); |
@@ -389,7 +389,7 @@ discard block |
||
| 389 | 389 | $field = $expression->getField(); |
| 390 | 390 | $context = $expression->getContext(); |
| 391 | 391 | |
| 392 | - $id = (integer)$entryId; |
|
| 392 | + $id = (integer) $entryId; |
|
| 393 | 393 | |
| 394 | 394 | if ($context === FieldExpression::ENTRY) { |
| 395 | 395 | $theEntry = static::$entryCache[$id]; |
@@ -404,7 +404,7 @@ discard block |
||
| 404 | 404 | throw new InvalidArgumentException($errMsg); |
| 405 | 405 | } |
| 406 | 406 | |
| 407 | - $valueInt = (integer)$value; |
|
| 407 | + $valueInt = (integer) $value; |
|
| 408 | 408 | |
| 409 | 409 | return $this->compareLong($valueInt, $theEntry->getState(), $operator); |
| 410 | 410 | } |
@@ -438,7 +438,7 @@ discard block |
||
| 438 | 438 | throw new InvalidArgumentException($errMsg); |
| 439 | 439 | } |
| 440 | 440 | |
| 441 | - $actionId = (integer)$value; |
|
| 441 | + $actionId = (integer) $value; |
|
| 442 | 442 | |
| 443 | 443 | foreach ($steps as $step) { |
| 444 | 444 | if ($this->compareLong($step->getActionId(), $actionId, $operator)) { |
@@ -525,7 +525,7 @@ discard block |
||
| 525 | 525 | $errMsg = 'unknown field'; |
| 526 | 526 | throw new InvalidArgumentException($errMsg); |
| 527 | 527 | } |
| 528 | - $stepId = (integer)$value; |
|
| 528 | + $stepId = (integer) $value; |
|
| 529 | 529 | |
| 530 | 530 | foreach ($steps as $step) { |
| 531 | 531 | if ($this->compareLong($step->getStepId(), $stepId, $operator)) { |
@@ -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; |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | * @param TransientVarsInterface $transientVars |
| 27 | 27 | * @param array $args |
| 28 | 28 | * @param PropertySetInterface $ps |
| 29 | - * @return bool |
|
| 29 | + * @return boolean|string |
|
| 30 | 30 | * |
| 31 | 31 | * @throws \OldTown\Workflow\Exception\WorkflowException |
| 32 | 32 | * @throws \OldTown\Workflow\Exception\RuntimeException |
@@ -37,10 +37,10 @@ |
||
| 37 | 37 | $script = array_key_exists(static::PHP_SCRIPT, $args) ? $args[static::PHP_SCRIPT] : ''; |
| 38 | 38 | |
| 39 | 39 | /**@var WorkflowContextInterface $context */ |
| 40 | - $context = $transientVars->offsetExists('context') ? $transientVars['context'] : null; |
|
| 40 | + $context = $transientVars->offsetExists('context') ? $transientVars['context'] : null; |
|
| 41 | 41 | |
| 42 | 42 | /**@var WorkflowEntryInterface $entry */ |
| 43 | - $entry = $transientVars->offsetExists('entry') ? $transientVars['entry'] : null; |
|
| 43 | + $entry = $transientVars->offsetExists('entry') ? $transientVars['entry'] : null; |
|
| 44 | 44 | |
| 45 | 45 | |
| 46 | 46 | $i = new Interpreter($script); |
@@ -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; |
@@ -101,6 +101,7 @@ discard block |
||
| 101 | 101 | * If the new state is {@link com.opensymphony.workflow.spi.WorkflowEntry.KILLED} |
| 102 | 102 | * or {@link com.opensymphony.workflow.spi.WorkflowEntry.COMPLETED} |
| 103 | 103 | * then all current steps are moved to history steps. If the new state is |
| 104 | + * @return void |
|
| 104 | 105 | */ |
| 105 | 106 | public function changeEntryState($id, $newState); |
| 106 | 107 | |
@@ -110,6 +111,7 @@ discard block |
||
| 110 | 111 | * @param integer $actionId The action id to perform (action id's are listed in the workflow descriptor). |
| 111 | 112 | * @param TransientVarsInterface $inputs The inputs to the workflow instance. |
| 112 | 113 | * instance's current state. |
| 114 | + * @return void |
|
| 113 | 115 | */ |
| 114 | 116 | public function doAction($id, $actionId, TransientVarsInterface $inputs = null); |
| 115 | 117 | |
@@ -119,6 +121,7 @@ discard block |
||
| 119 | 121 | * @param integer $id The workflow instance id |
| 120 | 122 | * @param integer $triggerId The id of the special trigger-function |
| 121 | 123 | * @thrown WorkflowException |
| 124 | + * @return void |
|
| 122 | 125 | */ |
| 123 | 126 | public function executeTriggerFunction($id, $triggerId); |
| 124 | 127 | |
@@ -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 @@ |
||
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 89 | /** |
| 90 | - * @param $uri |
|
| 90 | + * @param string $uri |
|
| 91 | 91 | * @return UriInterface |
| 92 | 92 | */ |
| 93 | 93 | protected function uriFactory($uri) |
@@ -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; |