@@ 344-355 (lines=12) @@ | ||
341 | * |
|
342 | * @SuppressWarnings(PHPMD.StaticAccess) |
|
343 | */ |
|
344 | private static function getBlocksWithStart(array $serializedBlocks): array |
|
345 | { |
|
346 | $blocksWithStart = BlockSerializer::unserializeBlocksWithStart($serializedBlocks); |
|
347 | ||
348 | // check result contain only block indexes and the blocks are procedures |
|
349 | assert( |
|
350 | is_array($blocks = static::getBlocks($serializedBlocks)) && |
|
351 | static::debugCheckBlocksExist($blocksWithStart, $blocks, BlockSerializer::TYPE__PROCEDURE) |
|
352 | ); |
|
353 | ||
354 | return $blocksWithStart; |
|
355 | } |
|
356 | ||
357 | /** |
|
358 | * @param array $serializedBlocks |
|
@@ 364-375 (lines=12) @@ | ||
361 | * |
|
362 | * @SuppressWarnings(PHPMD.StaticAccess) |
|
363 | */ |
|
364 | private static function getBlocksWithEnd(array $serializedBlocks): array |
|
365 | { |
|
366 | $blocksWithEnd = BlockSerializer::unserializeBlocksWithEnd($serializedBlocks); |
|
367 | ||
368 | // check result contain only block indexes and the blocks are procedures |
|
369 | assert( |
|
370 | is_array($blocks = static::getBlocks($serializedBlocks)) && |
|
371 | static::debugCheckBlocksExist($blocksWithEnd, $blocks, BlockSerializer::TYPE__PROCEDURE) |
|
372 | ); |
|
373 | ||
374 | return $blocksWithEnd; |
|
375 | } |
|
376 | ||
377 | /** |
|
378 | * @param array $block |