Code Duplication    Length = 6-6 lines in 2 locations

src/Tmdb.php 2 locations

@@ 221-226 (lines=6) @@
218
219
            return $oTitle;
220
        } catch (\Exception $e) {
221
            if ($e instanceof TmdbApiException) {
222
                if ($e->getCode() === 34) {
223
                    throw new NotFound($e->getMessage());
224
                }
225
                throw new Exception(sprintf('TMDB Response Error: %s', $e->getMessage()));
226
            }
227
228
            throw new Exception($e->getMessage());
229
        }
@@ 304-309 (lines=6) @@
301
302
            return $oTitle;
303
        } catch (\Exception $e) {
304
            if ($e instanceof TmdbApiException) {
305
                if ($e->getCode() === 34) {
306
                    throw new NotFound($e->getMessage());
307
                }
308
                throw new Exception(sprintf('TMDB Response Error: %s', $e->getMessage()));
309
            }
310
311
            throw new Exception($e->getMessage());
312
        }