Code Duplication    Length = 10-10 lines in 2 locations

src/Execution/BlockInterpreter.php 2 locations

@@ 425-434 (lines=10) @@
422
     *
423
     * @SuppressWarnings(PHPMD.StaticAccess)
424
     */
425
    private static function executeProcedureStart(array $procedureBlock, ContextInterface $context): array
426
    {
427
        assert(static::getBlockType($procedureBlock) === BlockSerializer::TYPE__PROCEDURE);
428
        $callable = $procedureBlock[BlockSerializer::PROCEDURE_START_CALLABLE];
429
        assert(is_callable($callable) === true);
430
        $errors = call_user_func($callable, $context);
431
        assert(is_array($errors));
432
433
        return $errors;
434
    }
435
436
    /**
437
     * @param array            $procedureBlock
@@ 444-453 (lines=10) @@
441
     *
442
     * @SuppressWarnings(PHPMD.StaticAccess)
443
     */
444
    private static function executeProcedureEnd(array $procedureBlock, ContextInterface $context): array
445
    {
446
        assert(static::getBlockType($procedureBlock) === BlockSerializer::TYPE__PROCEDURE);
447
        $callable = $procedureBlock[BlockSerializer::PROCEDURE_END_CALLABLE];
448
        assert(is_callable($callable) === true);
449
        $errors = call_user_func($callable, $context);
450
        assert(is_array($errors));
451
452
        return $errors;
453
    }
454
455
    /**
456
     * @param array                    $errorsInfo