| @@ 69-83 (lines=15) @@ | ||
| 66 | * |
|
| 67 | * @SuppressWarnings(PHPMD.StaticAccess) |
|
| 68 | */ |
|
| 69 | public static function executeStarts( |
|
| 70 | array $indexes, |
|
| 71 | array $blocks, |
|
| 72 | ContextStorageInterface $context, |
|
| 73 | ErrorAggregatorInterface $errors |
|
| 74 | ): void { |
|
| 75 | foreach ($indexes as $index) { |
|
| 76 | $context->setCurrentBlockId($index); |
|
| 77 | $block = $blocks[$index]; |
|
| 78 | $errorsInfo = static::executeProcedureStart($block, $context); |
|
| 79 | if (empty($errorsInfo) === false) { |
|
| 80 | static::addBlockErrors($errorsInfo, $context, $errors); |
|
| 81 | } |
|
| 82 | } |
|
| 83 | } |
|
| 84 | ||
| 85 | /** |
|
| 86 | * @param int[] $indexes |
|
| @@ 95-109 (lines=15) @@ | ||
| 92 | * |
|
| 93 | * @SuppressWarnings(PHPMD.StaticAccess) |
|
| 94 | */ |
|
| 95 | public static function executeEnds( |
|
| 96 | array $indexes, |
|
| 97 | array $blocks, |
|
| 98 | ContextStorageInterface $context, |
|
| 99 | ErrorAggregatorInterface $errors |
|
| 100 | ): void { |
|
| 101 | foreach ($indexes as $index) { |
|
| 102 | $context->setCurrentBlockId($index); |
|
| 103 | $block = $blocks[$index]; |
|
| 104 | $errorsInfo = static::executeProcedureEnd($block, $context); |
|
| 105 | if (empty($errorsInfo) === false) { |
|
| 106 | static::addBlockErrors($errorsInfo, $context, $errors); |
|
| 107 | } |
|
| 108 | } |
|
| 109 | } |
|
| 110 | ||
| 111 | /** |
|
| 112 | * @param mixed $input |
|