Code Duplication    Length = 14-14 lines in 2 locations

src/Items/TVEpisode.php 1 location

@@ 109-122 (lines=14) @@
106
     * Guests stars
107
     * @return \Generator|Results\Cast
108
     */
109
    public function getGuestStars()
110
    {
111
        if (isset($this->data->guest_stars))
112
        {
113
            foreach ($this->data->guest_stars as $gs)
114
            {
115
                $gs->gender = null;
116
                $gs->cast_id = null;
117
118
                $star = new Cast($this->tmdb, $gs);
119
                yield $star;
120
            }
121
        }
122
    }
123
124
    /**
125
     * Name

src/Results/TVEpisode.php 1 location

@@ 138-151 (lines=14) @@
135
     * Guests stars
136
     * @return \Generator|Results\Cast
137
     */
138
    public function getGuestStars()
139
    {
140
        if (isset($this->guest_stars))
141
        {
142
            foreach ($this->guest_stars as $gs)
143
            {
144
                $gs->gender = null;
145
                $gs->cast_id = null;
146
147
                $star = new Cast($this->tmdb, $gs);
148
                yield $star;
149
            }
150
        }
151
    }
152
153
    /**
154
     * Id