Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 53-60 (lines=8) @@
50
     *
51
     * @return mixed
52
     */
53
    private function validateEvents(array $events)
54
    {
55
        foreach ($events as $event) {
56
            if (!$event instanceof EventRecord) {
57
                throw new \InvalidArgumentException(sprintf('Expected EventRecord, got %s', get_class($event)));
58
            }
59
        }
60
    }
61
62
    /**
63
     * @param $link

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

@@ 46-53 (lines=8) @@
43
     *
44
     * @return mixed
45
     */
46
    private function validateEvents(array $events)
47
    {
48
        foreach ($events as $event) {
49
            if (!$event instanceof EventRecord) {
50
                throw new \InvalidArgumentException(sprintf('Expected EventRecord, got %s', get_class($event)));
51
            }
52
        }
53
    }
54
55
    /**
56
     * @param $link