Code Duplication    Length = 10-10 lines in 2 locations

src/Webcreate/Conveyor/Conveyor.php 2 locations

@@ 532-541 (lines=10) @@
529
            ->addStage('deploy.final',       new Stage\DeployFinalStage($trDeployFinal, $io))
530
        ;
531
532
        if ($transporter instanceof TransactionalTransporterInterface) {
533
            $dispatcher->addListener(
534
                StageEvents::STAGE_PRE_EXECUTE,
535
                function (StageEvent $event) use ($transporter) {
536
                    if ('deploy.after' === $event->getStageName()) {
537
                        $transporter->commit();
538
                    }
539
                }
540
            );
541
        }
542
543
        $runnableStages = array();
544
        if (true === $options['deploy_after_only']) {
@@ 635-644 (lines=10) @@
632
            ->addStage('deploy.final',       new Stage\DeployFinalStage($trDeployFinal, $io))
633
        ;
634
635
        if ($transporter instanceof TransactionalTransporterInterface) {
636
            $dispatcher->addListener(
637
                StageEvents::STAGE_PRE_EXECUTE,
638
                function (StageEvent $event) use ($transporter) {
639
                    if ('deploy.after' === $event->getStageName()) {
640
                        $transporter->commit();
641
                    }
642
                }
643
            );
644
        }
645
646
        try {
647
            $result = $manager->execute();