Code Duplication    Length = 10-10 lines in 2 locations

src/Execution/BlockInterpreter.php 2 locations

@@ 451-460 (lines=10) @@
448
     *
449
     * @SuppressWarnings(PHPMD.StaticAccess)
450
     */
451
    private static function executeProcedureStart(array $procedureBlock, ContextInterface $context): array
452
    {
453
        assert(static::getBlockType($procedureBlock) === BlockSerializer::TYPE__PROCEDURE);
454
        $callable = $procedureBlock[BlockSerializer::PROCEDURE_START_CALLABLE];
455
        assert(is_callable($callable) === true);
456
        $errors = call_user_func($callable, $context);
457
        assert(is_array($errors));
458
459
        return $errors;
460
    }
461
462
    /**
463
     * @param array            $procedureBlock
@@ 470-479 (lines=10) @@
467
     *
468
     * @SuppressWarnings(PHPMD.StaticAccess)
469
     */
470
    private static function executeProcedureEnd(array $procedureBlock, ContextInterface $context): iterable
471
    {
472
        assert(static::getBlockType($procedureBlock) === BlockSerializer::TYPE__PROCEDURE);
473
        $callable = $procedureBlock[BlockSerializer::PROCEDURE_END_CALLABLE];
474
        assert(is_callable($callable) === true);
475
        $errors = call_user_func($callable, $context);
476
        assert(is_iterable($errors));
477
478
        return $errors;
479
    }
480
481
    /**
482
     * @param iterable                 $errorsInfo