Code Duplication    Length = 10-10 lines in 2 locations

src/Channel/ChannelComposite.php 1 location

@@ 670-679 (lines=10) @@
667
    /**
668
     * @return int
669
     */
670
    protected function getNextSuffix()
671
    {
672
        if ($this->counter > 2e9)
673
        {
674
            $this->counter = 1e9;
675
            $this->seed = GeneratorSupport::genId($this->name);
676
        }
677
678
        return (string) $this->counter++;
679
    }
680
681
    /**
682
     * @param ProtocolInterface|null|string|string[] $message

src/Channel/Channel.php 1 location

@@ 707-716 (lines=10) @@
704
    /**
705
     * @return string
706
     */
707
    protected function getNextSuffix()
708
    {
709
        if ($this->counter > 2e9)
710
        {
711
            $this->counter = 1e9;
712
            $this->seed = GeneratorSupport::genId($this->name);
713
        }
714
715
        return (string) $this->counter++;
716
    }
717
718
    /**
719
     * @param string|string[] $message