Code Duplication    Length = 3-5 lines in 2 locations

src/PlaygroundCore/Module.php 2 locations

@@ 60-62 (lines=3) @@
57
                        if ($serviceManager->get('router')->match($serviceManager->get('request')) &&
58
                            strpos($serviceManager->get('router')->match($serviceManager->get('request'))->getMatchedRouteName(), 'admin') !==false
59
                        ) {
60
                            if ($e->getRequest()->getCookie() &&
61
                                $e->getRequest()->getCookie()->offsetExists('pg_locale_back')
62
                            ) {
63
                                $locale = $e->getRequest()->getCookie()->offsetGet('pg_locale_back');
64
                            }
65
                        } else {
@@ 65-69 (lines=5) @@
62
                            ) {
63
                                $locale = $e->getRequest()->getCookie()->offsetGet('pg_locale_back');
64
                            }
65
                        } else {
66
                            if ($e->getRequest()->getCookie() &&
67
                                $e->getRequest()->getCookie()->offsetExists('pg_locale_frontend')
68
                            ) {
69
                                $locale = $e->getRequest()->getCookie()->offsetGet('pg_locale_frontend');
70
                            }
71
                        }
72
                    }