Code Duplication    Length = 9-9 lines in 2 locations

src/Client/Http/Feed/EventStreamFeedIterator.php 1 location

@@ 111-119 (lines=9) @@
108
        $this->readBackward();
109
    }
110
111
    private function readForward()
112
    {
113
        if ($this->currentFeed->hasPreviousLink() && !$this->currentFeed->isHeadOfStream()) {
114
            $this->currentFeed = $this->readEventStreamFeed($this->currentFeed->getPreviousLink()->getUri());
115
116
            return;
117
        }
118
        $this->currentFeed = null;
119
    }
120
121
    private function readBackward()
122
    {

src/Client/Http/Feed/EventStreamViaPersistentSubscriptionFeedIterator.php 1 location

@@ 103-111 (lines=9) @@
100
        $this->readForward();
101
    }
102
103
    private function readForward()
104
    {
105
        if ($this->currentFeed->hasPreviousLink() && !$this->currentFeed->isHeadOfStream()) {
106
            $this->currentFeed = $this->readEventStreamFeed($this->currentFeed->getPreviousLink()->getUri());
107
108
            return;
109
        }
110
        $this->currentFeed = null;
111
    }
112
113
    /**
114
     * @return int