@@ -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; |
@@ -237,7 +237,7 @@ discard block |
||
237 | 237 | */ |
238 | 238 | public function setStatus($status) |
239 | 239 | { |
240 | - $this->status = (string)$status; |
|
240 | + $this->status = (string) $status; |
|
241 | 241 | |
242 | 242 | return $this; |
243 | 243 | } |
@@ -267,7 +267,7 @@ discard block |
||
267 | 267 | */ |
268 | 268 | public function setJoin($join) |
269 | 269 | { |
270 | - $this->join = (integer)$join; |
|
270 | + $this->join = (integer) $join; |
|
271 | 271 | |
272 | 272 | return $this; |
273 | 273 | } |
@@ -287,7 +287,7 @@ discard block |
||
287 | 287 | */ |
288 | 288 | public function setSplit($split) |
289 | 289 | { |
290 | - $this->split = (integer)$split; |
|
290 | + $this->split = (integer) $split; |
|
291 | 291 | |
292 | 292 | return $this; |
293 | 293 | } |
@@ -307,7 +307,7 @@ discard block |
||
307 | 307 | */ |
308 | 308 | public function setStep($step) |
309 | 309 | { |
310 | - $this->step = (integer)$step; |
|
310 | + $this->step = (integer) $step; |
|
311 | 311 | $this->hasStep = true; |
312 | 312 | |
313 | 313 | return $this; |
@@ -328,7 +328,7 @@ discard block |
||
328 | 328 | */ |
329 | 329 | public function setOwner($owner) |
330 | 330 | { |
331 | - $this->owner = (string)$owner; |
|
331 | + $this->owner = (string) $owner; |
|
332 | 332 | |
333 | 333 | return $this; |
334 | 334 | } |
@@ -414,7 +414,7 @@ discard block |
||
414 | 414 | try { |
415 | 415 | $functionElement = $function->writeXml($dom); |
416 | 416 | } catch (\Exception $e) { |
417 | - $errMsg = 'Ошибка сохранения workflow. Ошибка в post-function'; |
|
417 | + $errMsg = 'Ошибка сохранения workflow. Ошибка в post-function'; |
|
418 | 418 | throw new InvalidWriteWorkflowException($errMsg, $e->getCode(), $e); |
419 | 419 | } |
420 | 420 | |
@@ -444,7 +444,7 @@ discard block |
||
444 | 444 | try { |
445 | 445 | $functionElement = $function->writeXml($dom); |
446 | 446 | } catch (\Exception $e) { |
447 | - $errMsg = 'Ошибка сохранения workflow. Ошибка в pre-function'; |
|
447 | + $errMsg = 'Ошибка сохранения workflow. Ошибка в pre-function'; |
|
448 | 448 | throw new InvalidWriteWorkflowException($errMsg, $e->getCode(), $e); |
449 | 449 | } |
450 | 450 | $preFunctionsElements->appendChild($functionElement); |
@@ -572,7 +572,7 @@ discard block |
||
572 | 572 | $parent = $this->getParent(); |
573 | 573 | if ((null === $split) && (null === $join) && !($parent instanceof ActionDescriptor && ($parent->isFinish()))) { |
574 | 574 | $errMsg = ''; |
575 | - $id = (integer)$this->getId(); |
|
575 | + $id = (integer) $this->getId(); |
|
576 | 576 | if (is_numeric($id)) { |
577 | 577 | $errMsg .= sprintf('#%s:', $id); |
578 | 578 | } |
@@ -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; |
@@ -101,7 +101,7 @@ |
||
101 | 101 | $errMsg = 'Отсутствует атрибут id'; |
102 | 102 | throw new InvalidDescriptorException($errMsg); |
103 | 103 | } |
104 | - $id = $this->getId(); |
|
104 | + $id = $this->getId(); |
|
105 | 105 | $descriptor->setAttribute('id', $id); |
106 | 106 | |
107 | 107 | $results = $this->getResults(); |
@@ -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; |
@@ -248,7 +248,7 @@ discard block |
||
248 | 248 | */ |
249 | 249 | public function getAction($id) |
250 | 250 | { |
251 | - $id = (integer)$id; |
|
251 | + $id = (integer) $id; |
|
252 | 252 | foreach ($this->actions as $action) { |
253 | 253 | if ($id === $action->getId()) { |
254 | 254 | return $action; |
@@ -283,7 +283,7 @@ discard block |
||
283 | 283 | throw new ArgumentNotNumericException($errMsg); |
284 | 284 | } |
285 | 285 | |
286 | - $join = (integer)$join; |
|
286 | + $join = (integer) $join; |
|
287 | 287 | |
288 | 288 | $actions = $this->getActions(); |
289 | 289 | |
@@ -327,7 +327,7 @@ discard block |
||
327 | 327 | $hasActions = $this->hasActions; |
328 | 328 | |
329 | 329 | if ($hasActions && 0 === count($commonActions) && 0 === $actions->count()) { |
330 | - $stepName = (string)$this->getName(); |
|
330 | + $stepName = (string) $this->getName(); |
|
331 | 331 | $errMsg = sprintf('Шаг %s должен содержать одни действие или одно общее действие', $stepName); |
332 | 332 | throw new InvalidWorkflowDescriptorException($errMsg); |
333 | 333 | } |
@@ -357,12 +357,12 @@ discard block |
||
357 | 357 | $commonActionReference = $workflowDescriptor->getCommonAction($actionId); |
358 | 358 | |
359 | 359 | if (null === $commonActionReference) { |
360 | - $stepName = (string)$this->getName(); |
|
360 | + $stepName = (string) $this->getName(); |
|
361 | 361 | $errMsg = sprintf('Common-action %s указанное для шага %s не существует', $actionId, $stepName); |
362 | 362 | throw new InvalidWorkflowDescriptorException($errMsg); |
363 | 363 | } |
364 | 364 | } catch (\Exception $e) { |
365 | - $actionIdStr = (string)$actionId; |
|
365 | + $actionIdStr = (string) $actionId; |
|
366 | 366 | $errMsg = sprintf('Некорректный id для common-action: id %s', $actionIdStr); |
367 | 367 | throw new InvalidWorkflowDescriptorException($errMsg, $e->getCode(), $e); |
368 | 368 | } |
@@ -394,7 +394,7 @@ discard block |
||
394 | 394 | $id = $this->getId(); |
395 | 395 | $descriptor->setAttribute('id', $id); |
396 | 396 | |
397 | - $name = (string)$this->getName(); |
|
397 | + $name = (string) $this->getName(); |
|
398 | 398 | $name = trim($name); |
399 | 399 | if (strlen($name) > 0) { |
400 | 400 | $nameEncode = XmlUtil::encode($name); |
@@ -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\Traits; |
7 | 7 | |
8 | 8 | /** |
@@ -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\Loader\Traits; |
7 | 7 | |
8 | 8 | use DOMElement; |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | /** |
19 | 19 | * @var array |
20 | 20 | */ |
21 | - protected $args = []; |
|
21 | + protected $args = []; |
|
22 | 22 | |
23 | 23 | /** |
24 | 24 | * Возвращает аргументы |
@@ -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\Traits; |
7 | 7 | |
8 | 8 | use DOMElement; |
@@ -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\Traits; |
7 | 7 | |
8 | 8 | use DOMElement; |
@@ -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\Traits; |
7 | 7 | |
8 | 8 | /** |
@@ -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\Loader\Traits; |
7 | 7 | |
8 | 8 | use DOMElement; |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | /** |
19 | 19 | * @var string |
20 | 20 | */ |
21 | - protected $name; |
|
21 | + protected $name; |
|
22 | 22 | |
23 | 23 | |
24 | 24 | /** |