Code Duplication    Length = 9-12 lines in 2 locations

src/NodalFlow.php 2 locations

@@ 570-581 (lines=12) @@
567
                    }
568
569
                    $param = $this->recurse($param, $nodeIdx + 1);
570
                    if ($this->continue) {
571
                        if ($this->continue = $this->interruptNode($node)) {
572
                            // since we want to bubble the continue upstream
573
                            // we break here waiting for next $param if any
574
                            $this->flowMap->increment($nodeHash, 'num_break');
575
                            break;
576
                        }
577
578
                        // we drop one iteration
579
                        $this->flowMap->increment($nodeHash, 'num_continue');
580
                        continue;
581
                    }
582
583
                    if ($this->break) {
584
                        // we drop all subsequent iterations
@@ 600-608 (lines=9) @@
597
            $value = $node->exec($param);
598
            $this->flowMap->increment($nodeHash, 'num_exec');
599
600
            if ($this->continue) {
601
                $this->flowMap->increment($nodeHash, 'num_continue');
602
                // a continue does not need to bubble up unless
603
                // it specifically targets a node in this flow
604
                // or targets an upstream flow
605
                $this->continue = $this->interruptNode($node);
606
607
                return $param;
608
            }
609
610
            if ($this->break) {
611
                $this->flowMap->increment($nodeHash, 'num_break');