Code Duplication    Length = 7-7 lines in 2 locations

src/Observers/UrlRewriteObserver.php 2 locations

@@ 268-274 (lines=7) @@
265
266
                } catch (\Exception $e) {
267
                    // query whether or not debug mode has been enabled
268
                    if ($this->getSubject()->isDebugMode()) {
269
                        $this->getSubject()
270
                             ->getSystemLogger()
271
                             ->warning($this->getSubject()->appendExceptionSuffix($e->getMessage()));
272
                    } else {
273
                        throw $e;
274
                    }
275
                }
276
            }
277
        }
@@ 335-341 (lines=7) @@
332
333
                } catch (\Exception $e) {
334
                    // query whether or not debug mode has been enabled
335
                    if ($this->getSubject()->isDebugMode()) {
336
                        $this->getSubject()
337
                             ->getSystemLogger()
338
                             ->warning($this->getSubject()->appendExceptionSuffix($e->getMessage()));
339
                    } else {
340
                        throw $e;
341
                    }
342
                }
343
            }
344
        }