@@ -34,7 +34,7 @@ |
||
| 34 | 34 | */ |
| 35 | 35 | public function setRequiredAttributeName($requiredAttributeName) |
| 36 | 36 | { |
| 37 | - $this->requiredAttributeName = (string)$requiredAttributeName; |
|
| 37 | + $this->requiredAttributeName = (string) $requiredAttributeName; |
|
| 38 | 38 | |
| 39 | 39 | return $this; |
| 40 | 40 | } |
@@ -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\Exception; |
| 7 | 7 | |
| 8 | 8 | /** |
@@ -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\Exception; |
| 7 | 7 | |
| 8 | 8 | /** |
@@ -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; |
| 7 | 7 | |
| 8 | 8 | use OldTown\Workflow\Exception\InternalWorkflowException; |
@@ -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\JoinNodes; |
| 7 | 7 | |
| 8 | 8 | /** |
@@ -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\Loader; |
| 7 | 7 | |
| 8 | 8 | use DOMElement; |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | * |
| 27 | 27 | * @var bool |
| 28 | 28 | */ |
| 29 | - protected $hasId =false; |
|
| 29 | + protected $hasId = false; |
|
| 30 | 30 | |
| 31 | 31 | /** |
| 32 | 32 | * id дескриптора |
@@ -62,7 +62,7 @@ discard block |
||
| 62 | 62 | */ |
| 63 | 63 | public function setEntityId($entityId) |
| 64 | 64 | { |
| 65 | - $this->entityId = (integer)$entityId; |
|
| 65 | + $this->entityId = (integer) $entityId; |
|
| 66 | 66 | |
| 67 | 67 | return $this; |
| 68 | 68 | } |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | */ |
| 115 | 115 | public function setId($id) |
| 116 | 116 | { |
| 117 | - $this->id = (integer)$id; |
|
| 117 | + $this->id = (integer) $id; |
|
| 118 | 118 | $this->hasId = true; |
| 119 | 119 | |
| 120 | 120 | return $this; |
@@ -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\Loader; |
| 7 | 7 | |
| 8 | 8 | use OldTown\Workflow\Util\Properties\PropertiesInterface; |
@@ -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\Loader; |
| 7 | 7 | |
| 8 | 8 | use DOMElement; |
@@ -219,7 +219,7 @@ discard block |
||
| 219 | 219 | */ |
| 220 | 220 | public function setAutoExecute($autoExecute) |
| 221 | 221 | { |
| 222 | - $this->autoExecute = (boolean)$autoExecute; |
|
| 222 | + $this->autoExecute = (boolean) $autoExecute; |
|
| 223 | 223 | |
| 224 | 224 | return $this; |
| 225 | 225 | } |
@@ -239,7 +239,7 @@ discard block |
||
| 239 | 239 | */ |
| 240 | 240 | public function setCommon($common) |
| 241 | 241 | { |
| 242 | - $this->common = (boolean)$common; |
|
| 242 | + $this->common = (boolean) $common; |
|
| 243 | 243 | |
| 244 | 244 | return $this; |
| 245 | 245 | } |
@@ -259,7 +259,7 @@ discard block |
||
| 259 | 259 | */ |
| 260 | 260 | public function setView($view) |
| 261 | 261 | { |
| 262 | - $this->view = (string)$view; |
|
| 262 | + $this->view = (string) $view; |
|
| 263 | 263 | |
| 264 | 264 | return $this; |
| 265 | 265 | } |
@@ -363,7 +363,7 @@ discard block |
||
| 363 | 363 | */ |
| 364 | 364 | public function setFinish($finish) |
| 365 | 365 | { |
| 366 | - $this->finish = (boolean)$finish; |
|
| 366 | + $this->finish = (boolean) $finish; |
|
| 367 | 367 | |
| 368 | 368 | return $this; |
| 369 | 369 | } |
@@ -397,7 +397,7 @@ discard block |
||
| 397 | 397 | |
| 398 | 398 | $unconditionalResult = $this->getUnconditionalResult(); |
| 399 | 399 | if (null === $unconditionalResult && $conditionalResults->count() > 0) { |
| 400 | - $name = (string)$this->getName(); |
|
| 400 | + $name = (string) $this->getName(); |
|
| 401 | 401 | $errMsg = sprintf('Действие %s имеет условные условия, но не имеет запасного безусловного', $name); |
| 402 | 402 | throw new InvalidWorkflowDescriptorException($errMsg); |
| 403 | 403 | } |
@@ -436,14 +436,14 @@ discard block |
||
| 436 | 436 | $id = $this->getId(); |
| 437 | 437 | $descriptor->setAttribute('id', $id); |
| 438 | 438 | |
| 439 | - $name = (string)$this->getName(); |
|
| 439 | + $name = (string) $this->getName(); |
|
| 440 | 440 | $name = trim($name); |
| 441 | 441 | if (strlen($name) > 0) { |
| 442 | 442 | $nameEncode = XmlUtil::encode($name); |
| 443 | 443 | $descriptor->setAttribute('name', $nameEncode); |
| 444 | 444 | } |
| 445 | 445 | |
| 446 | - $view = (string)$this->getView(); |
|
| 446 | + $view = (string) $this->getView(); |
|
| 447 | 447 | $view = trim($view); |
| 448 | 448 | if (strlen($view) > 0) { |
| 449 | 449 | $viewEncode = XmlUtil::encode($view); |
@@ -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\Loader; |
| 7 | 7 | |
| 8 | 8 | use OldTown\Workflow\Exception\FactoryException; |
@@ -37,8 +37,8 @@ |
||
| 37 | 37 | |
| 38 | 38 | $basedir = null; |
| 39 | 39 | foreach ($workflows as $name => $workflowItem) { |
| 40 | - $type = array_key_exists('type', $workflowItem) ? $workflowItem['type'] : WorkflowConfig::FILE_TYPE; |
|
| 41 | - $location = array_key_exists('location', $workflowItem) ? $workflowItem['location'] : ''; |
|
| 40 | + $type = array_key_exists('type', $workflowItem) ? $workflowItem['type'] : WorkflowConfig::FILE_TYPE; |
|
| 41 | + $location = array_key_exists('location', $workflowItem) ? $workflowItem['location'] : ''; |
|
| 42 | 42 | $config = $this->buildWorkflowConfig($basedir, $type, $location); |
| 43 | 43 | $this->workflows[$name] = $config; |
| 44 | 44 | } |