@@ 360-371 (lines=12) @@ | ||
357 | * |
|
358 | * @SuppressWarnings(PHPMD.StaticAccess) |
|
359 | */ |
|
360 | private static function getBlocksWithStart(array $serializedBlocks): array |
|
361 | { |
|
362 | $blocksWithStart = BlockSerializer::unserializeBlocksWithStart($serializedBlocks); |
|
363 | ||
364 | // check result contain only block indexes and the blocks are procedures |
|
365 | assert( |
|
366 | is_array($blocks = static::getBlocks($serializedBlocks)) && |
|
367 | static::debugCheckBlocksExist($blocksWithStart, $blocks, BlockSerializer::TYPE__PROCEDURE) |
|
368 | ); |
|
369 | ||
370 | return $blocksWithStart; |
|
371 | } |
|
372 | ||
373 | /** |
|
374 | * @param array $serializedBlocks |
|
@@ 380-391 (lines=12) @@ | ||
377 | * |
|
378 | * @SuppressWarnings(PHPMD.StaticAccess) |
|
379 | */ |
|
380 | private static function getBlocksWithEnd(array $serializedBlocks): array |
|
381 | { |
|
382 | $blocksWithEnd = BlockSerializer::unserializeBlocksWithEnd($serializedBlocks); |
|
383 | ||
384 | // check result contain only block indexes and the blocks are procedures |
|
385 | assert( |
|
386 | is_array($blocks = static::getBlocks($serializedBlocks)) && |
|
387 | static::debugCheckBlocksExist($blocksWithEnd, $blocks, BlockSerializer::TYPE__PROCEDURE) |
|
388 | ); |
|
389 | ||
390 | return $blocksWithEnd; |
|
391 | } |
|
392 | ||
393 | /** |
|
394 | * @param array $block |