Code Duplication    Length = 7-7 lines in 2 locations

src/Observers/UrlRewriteObserver.php 2 locations

@@ 276-282 (lines=7) @@
273
274
                } catch (\Exception $e) {
275
                    // query whether or not debug mode has been enabled
276
                    if ($this->getSubject()->isDebugMode()) {
277
                        $this->getSubject()
278
                            ->getSystemLogger()
279
                            ->warning($this->getSubject()->appendExceptionSuffix($e->getMessage()));
280
                    } else {
281
                        throw $e;
282
                    }
283
                }
284
            }
285
        }
@@ 343-349 (lines=7) @@
340
341
                } catch (\Exception $e) {
342
                    // query whether or not debug mode has been enabled
343
                    if ($this->getSubject()->isDebugMode()) {
344
                        $this->getSubject()
345
                            ->getSystemLogger()
346
                            ->warning($this->getSubject()->appendExceptionSuffix($e->getMessage()));
347
                    } else {
348
                        throw $e;
349
                    }
350
                }
351
            }
352
        }