Code Duplication    Length = 10-10 lines in 2 locations

src/Execution/BlockInterpreter.php 2 locations

@@ 441-450 (lines=10) @@
438
     *
439
     * @SuppressWarnings(PHPMD.StaticAccess)
440
     */
441
    private static function executeProcedureStart(array $procedureBlock, ContextInterface $context): array
442
    {
443
        assert(static::getBlockType($procedureBlock) === BlockSerializer::TYPE__PROCEDURE);
444
        $callable = $procedureBlock[BlockSerializer::PROCEDURE_START_CALLABLE];
445
        assert(is_callable($callable) === true);
446
        $errors = call_user_func($callable, $context);
447
        assert(is_array($errors));
448
449
        return $errors;
450
    }
451
452
    /**
453
     * @param array            $procedureBlock
@@ 460-469 (lines=10) @@
457
     *
458
     * @SuppressWarnings(PHPMD.StaticAccess)
459
     */
460
    private static function executeProcedureEnd(array $procedureBlock, ContextInterface $context): array
461
    {
462
        assert(static::getBlockType($procedureBlock) === BlockSerializer::TYPE__PROCEDURE);
463
        $callable = $procedureBlock[BlockSerializer::PROCEDURE_END_CALLABLE];
464
        assert(is_callable($callable) === true);
465
        $errors = call_user_func($callable, $context);
466
        assert(is_array($errors));
467
468
        return $errors;
469
    }
470
471
    /**
472
     * @param array                    $errorsInfo