|  | @@ 370-381 (lines=12) @@ | 
                                                            
                                    | 367 |  |      * | 
                                                            
                                    | 368 |  |      * @SuppressWarnings(PHPMD.StaticAccess) | 
                                                            
                                    | 369 |  |      */ | 
                                                            
                                    | 370 |  |     private static function getBlocksWithStart(array $serializedBlocks): array | 
                                                            
                                    | 371 |  |     { | 
                                                            
                                    | 372 |  |         $blocksWithStart = BlockSerializer::unserializeBlocksWithStart($serializedBlocks); | 
                                                            
                                    | 373 |  |  | 
                                                            
                                    | 374 |  |         // check result contain only block indexes and the blocks are procedures | 
                                                            
                                    | 375 |  |         assert( | 
                                                            
                                    | 376 |  |             is_array($blocks = static::getBlocks($serializedBlocks)) && | 
                                                            
                                    | 377 |  |             static::debugCheckBlocksExist($blocksWithStart, $blocks, BlockSerializer::TYPE__PROCEDURE) | 
                                                            
                                    | 378 |  |         ); | 
                                                            
                                    | 379 |  |  | 
                                                            
                                    | 380 |  |         return $blocksWithStart; | 
                                                            
                                    | 381 |  |     } | 
                                                            
                                    | 382 |  |  | 
                                                            
                                    | 383 |  |     /** | 
                                                            
                                    | 384 |  |      * @param array $serializedBlocks | 
                                                                                
                                |  | @@ 390-401 (lines=12) @@ | 
                                                            
                                    | 387 |  |      * | 
                                                            
                                    | 388 |  |      * @SuppressWarnings(PHPMD.StaticAccess) | 
                                                            
                                    | 389 |  |      */ | 
                                                            
                                    | 390 |  |     private static function getBlocksWithEnd(array $serializedBlocks): array | 
                                                            
                                    | 391 |  |     { | 
                                                            
                                    | 392 |  |         $blocksWithEnd = BlockSerializer::unserializeBlocksWithEnd($serializedBlocks); | 
                                                            
                                    | 393 |  |  | 
                                                            
                                    | 394 |  |         // check result contain only block indexes and the blocks are procedures | 
                                                            
                                    | 395 |  |         assert( | 
                                                            
                                    | 396 |  |             is_array($blocks = static::getBlocks($serializedBlocks)) && | 
                                                            
                                    | 397 |  |             static::debugCheckBlocksExist($blocksWithEnd, $blocks, BlockSerializer::TYPE__PROCEDURE) | 
                                                            
                                    | 398 |  |         ); | 
                                                            
                                    | 399 |  |  | 
                                                            
                                    | 400 |  |         return $blocksWithEnd; | 
                                                            
                                    | 401 |  |     } | 
                                                            
                                    | 402 |  |  | 
                                                            
                                    | 403 |  |     /** | 
                                                            
                                    | 404 |  |      * @param array $block |